<?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 Dockable  Window Button as Tool in ArcGIS Solutions Questions</title>
    <link>https://community.esri.com/t5/arcgis-solutions-questions/dockable-window-button-as-tool/m-p/417495#M476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have dockable window with textbox and a button. The button run click event but need this button as a tool to capture polygon then update the attribute value in the polygon featureclass field.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 May 2019 14:21:29 GMT</pubDate>
    <dc:creator>M_DJohnson</dc:creator>
    <dc:date>2019-05-31T14:21:29Z</dc:date>
    <item>
      <title>Dockable  Window Button as Tool</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/dockable-window-button-as-tool/m-p/417495#M476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have dockable window with textbox and a button. The button run click event but need this button as a tool to capture polygon then update the attribute value in the polygon featureclass field.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 14:21:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/dockable-window-button-as-tool/m-p/417495#M476</guid>
      <dc:creator>M_DJohnson</dc:creator>
      <dc:date>2019-05-31T14:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dockable  Window Button as Tool</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/dockable-window-button-as-tool/m-p/417496#M477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per another forum discussion created a class 'Draw Tool : ESRI.ArcGIS.Desktop.AddIns.Tool' added 'Draw Tool' in 'Config.esriaddinx' under&amp;nbsp;commands&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: blue;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #a31515;"&gt;Button&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="color: blue;"&gt;DataCapture_DrawTool&lt;/SPAN&gt;"&lt;SPAN style="color: blue;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: red;"&gt;class&lt;/SPAN&gt;&lt;SPAN style="color: blue;"&gt;=&lt;/SPAN&gt;"&lt;SPAN style="color: blue;"&gt;DrawTool&lt;/SPAN&gt;"...&amp;gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Then get the IDs.DrawTool

button click event code:
Snippet&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #2b91af;"&gt;UIDClass&lt;/SPAN&gt;&amp;nbsp;uid&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: blue;"&gt;new&lt;/SPAN&gt;&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;UIDClass&lt;/SPAN&gt;(); uid.Value&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;ThisAddIn&lt;/SPAN&gt;.&lt;SPAN style="color: #2b91af;"&gt;IDs&lt;/SPAN&gt;.DrawTool; &lt;SPAN style="color: #2b91af;"&gt;ICommandItem&lt;/SPAN&gt;&amp;nbsp;commandItem&amp;nbsp;=&amp;nbsp;&lt;SPAN style="color: #2b91af;"&gt;ArcMap&lt;/SPAN&gt;.Application.Document.CommandBars.Find(uid,&amp;nbsp;&lt;SPAN style="color: blue;"&gt;false&lt;/SPAN&gt;,&amp;nbsp;&lt;SPAN style="color: blue;"&gt;false&lt;/SPAN&gt;); &lt;SPAN style="color: #2b91af;"&gt;ArcMap&lt;/SPAN&gt;.Application.CurrentTool&amp;nbsp;=&amp;nbsp;commandItem;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/PRE&gt;&lt;P&gt;At last line it thrown an error.&lt;/P&gt;&lt;P&gt;Error description:&amp;nbsp;An unhandled exception of type 'System.ArgumentException' occurred in DataCapture.dll&lt;BR /&gt;Additional information: Value does not fall within the expected range&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate&amp;nbsp;your help in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:53:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/dockable-window-button-as-tool/m-p/417496#M477</guid>
      <dc:creator>M_DJohnson</dc:creator>
      <dc:date>2021-12-11T18:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dockable  Window Button as Tool</title>
      <link>https://community.esri.com/t5/arcgis-solutions-questions/dockable-window-button-as-tool/m-p/417497#M478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No one here &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2019 10:45:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-solutions-questions/dockable-window-button-as-tool/m-p/417497#M478</guid>
      <dc:creator>M_DJohnson</dc:creator>
      <dc:date>2019-06-04T10:45:33Z</dc:date>
    </item>
  </channel>
</rss>

