<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Where did the Sketch tool go? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646133#M17364</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to add my experience to this thread I tried to set the current tool to the default constructor but every time I tried to set the UID.Value property to&amp;nbsp; "{8F79967B-66A0-4A1C-B884-F44BC7E26921}" it kept saying it was a value out of range. I am using ArcGIS 10.2.1. I do not know if this is a bug but I got around it by using the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; pUID &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;New&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;UID
&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;pUID.Value = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2; font-family: Consolas;"&gt;"esriEditor.PolygonFeatureTool"
&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;m_App.CurrentTool = m_App.Document.CommandBars.Find(pUID, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;)&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 03:25:39 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2021-12-12T03:25:39Z</dc:date>
    <item>
      <title>Where did the Sketch tool go?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646124#M17355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to convert my ArcObjects 9.3.1 code to 10. I have a simple button that when clicked creates a new shapefile &amp;amp; adds it to the TOC. It then starts the editor &amp;amp; selects the Sketch Tool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The user then draws a polygon and the OnSketchEventHanlder then calculates the selected area the user just drew on the new shapefile. This is simple stuff but it wont work in ArcMap 10. Now I have to contend with what looks like templates &amp;amp; shapeconstructors. Ive managed to create a new template &amp;amp; add it to the template array, but I have no idea how to specifiy the editor to use the polygon construtor tool. The editor starts but the new shapefile is not selected &amp;amp; the polygon tools is not selected. How do I get it to use my template &amp;amp; use the polygon tool? Do i even need to do it this way with version 10? I see you can create a temporary feature within a template so I may not even need to create the new shapefile to use for editing???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what I have so far&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;internal static IEditor get_Editor(IApplication application)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; IEditor editor = null;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; UID uidEditor = new UIDClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uidEditor.Value = "esriEditor.Editor";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; editor =&amp;nbsp; application.FindExtensionByCLSID(uidEditor) as IEditor;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return editor;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;internal static void StartEditing(IApplication application, string layerName)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IEditor3 editor = get_Editor(application) as IEditor3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //find the layer to edit&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IMxDocument mxDocument = (IMxDocument)application.Document;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IFeatureLayer featureLayer = (IFeatureLayer)get_Layer(mxDocument, layerName);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //check for existing templates &amp;amp; remove&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editor.RemoveAllTemplatesInLayer(featureLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //create a single template for the editable layer&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IEditTemplateFactory editTemplateFactory = new EditTemplateFactoryClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IEditTemplate editTemplate = editTemplateFactory.Create("PolygonAreaTemplate", featureLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Add the template&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IArray templateArray = new ArrayClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; templateArray.Add(editTemplate);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editor.AddTemplates(templateArray);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt; //Need some more code here use my template &amp;amp; use the polygon constructor tool&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IDataset dataset = (IDataset)featureLayer.FeatureClass;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; editor.StartEditing(dataset.Workspace);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;} &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 00:45:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646124#M17355</guid>
      <dc:creator>ITSupport</dc:creator>
      <dc:date>2010-09-14T00:45:44Z</dc:date>
    </item>
    <item>
      <title>Re: Where did the Sketch tool go?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646125#M17356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please take a look at the following documentation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000049t000000"&gt;Migrating desktop editing customizations to ArcGIS 10&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000029r000000"&gt;Creating features in the editor&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000002nq000000"&gt;Editor framework customizations&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Sep 2010 18:29:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646125#M17356</guid>
      <dc:creator>JohnHauck</dc:creator>
      <dc:date>2010-09-14T18:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Where did the Sketch tool go?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646126#M17357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi John&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yep, I read all that but it still hasn't helped. I can't find any examples either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll just have to wait until others have the same problem which I'm guessing wont take&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;long as the editor workflow is just so different now as to what it was in 9.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tony&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Sep 2010 22:53:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646126#M17357</guid>
      <dc:creator>ITSupport</dc:creator>
      <dc:date>2010-09-16T22:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Where did the Sketch tool go?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646127#M17358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//0001000002sr000000"&gt;Using feature templates&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Sep 2010 03:42:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646127#M17358</guid>
      <dc:creator>JohnHauck</dc:creator>
      <dc:date>2010-09-17T03:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Where did the Sketch tool go?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646128#M17359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been able to create an editTemplate and start the editor but have not for the life of me been able to get the polygon contruction tool to start. On the editor toolbar I have to manually click the "Create Features" button which shows my editTemplate, I then have to manually click my editTemplate which then selects the Polygon construction tool. As to how you do this in code I'm unsure. I have tried IEditSketch &amp;amp; the StraightConstructor but still no joy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IEditSketch3 editSketch3 = editor as IEditSketch3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editSketch3.GeometryType = esriGeometryType.esriGeometryPolygon;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IShapeConstructor shapeConstructor = new StraightConstructorClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shapeConstructor.Initialize(editor);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editSketch3.ShapeConstructor = shapeConstructor;&amp;nbsp;&amp;nbsp; //This line throws an error "Item not found in collection"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;shapeConstructor.Activate();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 18:56:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646128#M17359</guid>
      <dc:creator>ITSupport</dc:creator>
      <dc:date>2010-10-12T18:56:43Z</dc:date>
    </item>
    <item>
      <title>Re: Where did the Sketch tool go?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646129#M17360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tony,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your original code was on the right track, i'll try and fill in the blanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have created the template you may want to set some default attributes for it via the methods on IEditTemplate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also set the default tool this template uses via IEditTemplate.Tool&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Setting the current template for the editor is done through IEditor3.CurrentTemplate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the template has a default tool set then arcmap will activate that tool, otherwise you can always set it later via IApplication.CurrentTool.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Once a construction tool is active (presumably esriEditor.PolygonFeatureTool aka {8F79967B-66A0-4A1C-B884-F44BC7E26921}) you can activate a different shape constructor if you dont want the straight constructor by default.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This can all be done as an add-in button. Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 21:05:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646129#M17360</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2010-10-12T21:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Where did the Sketch tool go?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646130#M17361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Sean that helped a lot. I have finally got the editor going.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my code to help anyone else.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IEditor3 editor = get_Editor(application) as IEditor3;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IEditTemplateFactory editTemplateFactory = new EditTemplateFactoryClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IEditTemplate editTemplate = editTemplateFactory.Create("PolygonAreaTemplate", featureLayer);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Guid polygonFeatureTool = new Guid("{8F79967B-66A0-4A1C-B884-F44BC7E26921}");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editTemplate.Tool = polygonFeatureTool;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;IArray templateArray = new ArrayClass();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;templateArray.Add(editTemplate);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editor.AddTemplates(templateArray);&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;editor.StartEditing(dataset.Workspace);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editor.CurrentTemplate = editTemplate;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Oct 2010 20:50:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646130#M17361</guid>
      <dc:creator>ITSupport</dc:creator>
      <dc:date>2010-10-13T20:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Where did the Sketch tool go?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646131#M17362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I can't see anywhere to edit my post so I will reply to my own thread.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A tip: You need to set the current template AFTER you start the editor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you set the current template before starting the editor the editTemplate tool will not activate.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//FAIL: the tool will not activate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editor.CurrentTemplate = editTemplate;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editor.StartEditing(dataset.Workspace);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//PASS: the tool will activate&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editor.StartEditing(dataset.Workspace);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;editor.CurrentTemplate = editTemplate; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps others, I was setting the current template before starting the editor &amp;amp; the tool would not activate, I was pulling my hair out all due to the order of my code!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Oct 2010 19:20:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646131#M17362</guid>
      <dc:creator>ITSupport</dc:creator>
      <dc:date>2010-10-18T19:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Where did the Sketch tool go?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646132#M17363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Here's my code to help anyone else.&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the follow-up on your post, Tony!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 17:30:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646132#M17363</guid>
      <dc:creator>JonHall</dc:creator>
      <dc:date>2010-10-19T17:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: Where did the Sketch tool go?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646133#M17364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just to add my experience to this thread I tried to set the current tool to the default constructor but every time I tried to set the UID.Value property to&amp;nbsp; "{8F79967B-66A0-4A1C-B884-F44BC7E26921}" it kept saying it was a value out of range. I am using ArcGIS 10.2.1. I do not know if this is a bug but I got around it by using the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; pUID &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;New&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-size: 2; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: 2; font-family: Consolas;"&gt;UID
&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;pUID.Value = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: 2; font-family: Consolas;"&gt;"esriEditor.PolygonFeatureTool"
&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;m_App.CurrentTool = m_App.Document.CommandBars.Find(pUID, &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 2; font-family: Consolas;"&gt;True&lt;/SPAN&gt;&lt;SPAN style="font-size: 2; font-family: Consolas;"&gt;)&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 03:25:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/where-did-the-sketch-tool-go/m-p/646133#M17364</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2021-12-12T03:25:39Z</dc:date>
    </item>
  </channel>
</rss>

