<?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 Programmatically start the (Edit) Annotation Tool in Modify Features? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-start-the-edit-annotation-tool-in/m-p/856942#M4543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;How can I programmatically start the (Edit) Annotation Tool in Modify Features?&amp;nbsp; I have not&amp;nbsp; been able to find a combination of a DAML id and Framework method that launches the&amp;nbsp;Annotation Tool in the Tools section of the Edit tab.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Feb 2018 20:45:37 GMT</pubDate>
    <dc:creator>LesSears</dc:creator>
    <dc:date>2018-02-27T20:45:37Z</dc:date>
    <item>
      <title>Programmatically start the (Edit) Annotation Tool in Modify Features?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-start-the-edit-annotation-tool-in/m-p/856942#M4543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;How can I programmatically start the (Edit) Annotation Tool in Modify Features?&amp;nbsp; I have not&amp;nbsp; been able to find a combination of a DAML id and Framework method that launches the&amp;nbsp;Annotation Tool in the Tools section of the Edit tab.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 20:45:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-start-the-edit-annotation-tool-in/m-p/856942#M4543</guid>
      <dc:creator>LesSears</dc:creator>
      <dc:date>2018-02-27T20:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically start the (Edit) Annotation Tool in Modify Features?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-start-the-edit-annotation-tool-in/m-p/856943#M4544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Les,&lt;/P&gt;&lt;P&gt;I'm assuming that the problem you are running into is because of your assumption that the annotation "tool" as you call it is. in fact, a "Tool" - as in Framework.Contracts.Tool.....which it isn't &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a button (or "ICommand" as we would have called it if we were in ArcObjects).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add this code I provide below to a button and set a breakpoint on the "if (plugin is Tool)" line...notice it returns false....meaning "SetCurrentToolAsync", if you were to call it, will be a no-op - it will do nothing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead, the code will drop down to "plugin.Execute" which will do what I think you want....it will show the Annotation dockpane and activate the underlying annotation text tool. Note: ICommand is a System.Windows.Input.ICommand - you will need a "using" statement accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;var&lt;/SPAN&gt; plugin &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; FrameworkApplication&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetPlugInWrapper&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"esri_editing_EditVerticesText"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;plugin&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Enabled&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;plugin &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; Tool&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FrameworkApplication&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;SetCurrentToolAsync&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"esri_editing_EditVerticesText"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="keyword token"&gt;else&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;ICommand&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;plugin&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;Execute&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;null&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:35:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-start-the-edit-annotation-tool-in/m-p/856943#M4544</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2021-12-12T10:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Programmatically start the (Edit) Annotation Tool in Modify Features?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-start-the-edit-annotation-tool-in/m-p/856944#M4545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks so much!.&amp;nbsp; I had tried that DAML id as you mentioned as a "tool" with SetCurrentToolAsync().&amp;nbsp; I had also tried using an ICommand at one point but must have had the wrong DAML id.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 13:21:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programmatically-start-the-edit-annotation-tool-in/m-p/856944#M4545</guid>
      <dc:creator>LesSears</dc:creator>
      <dc:date>2018-02-28T13:21:25Z</dc:date>
    </item>
  </channel>
</rss>

