<?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: How to activate custom MapTool from a DockPane Button? in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1027274#M6189</link>
    <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt; and &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt; for the guidance. It works ok now.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 19:20:37 GMT</pubDate>
    <dc:creator>nita14</dc:creator>
    <dc:date>2021-02-16T19:20:37Z</dc:date>
    <item>
      <title>How to activate custom MapTool from a DockPane Button?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1026959#M6178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am struggling with activating a new MapTool item (point sketching on amap) from a button located in a custom Dockpane. Can you please direct me to some code samples or resources on how to do that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;adam&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 20:37:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1026959#M6178</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2021-02-15T20:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to activate custom MapTool from a DockPane Button?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1026962#M6179</link>
      <description>&lt;P&gt;Hi Adam,&lt;/P&gt;&lt;P&gt;Look here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Framework#set-the-current-tool" target="_self"&gt;https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Framework#set-the-current-tool&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Feb 2021 20:56:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1026962#M6179</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2021-02-15T20:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to activate custom MapTool from a DockPane Button?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1027092#M6181</link>
      <description>&lt;P&gt;Hi Gintautas,&lt;/P&gt;&lt;P&gt;Thank you for the answer. I believe that the link you mentioned is useful only to activate arcgis pro built-in MapTools. Is it correct?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Adam&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 07:01:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1027092#M6181</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2021-02-16T07:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to activate custom MapTool from a DockPane Button?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1027105#M6182</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If I understand your question right then you can activate Esri, your or third-party tools the same way. As described in link. One thing which you need to know it is tool ID. Here is link for Esri tools ID:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ArcGIS-Pro-DAML-ID-Reference" target="_self"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ArcGIS-Pro-DAML-ID-Reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you can find Esri sketch tool which is useful for your workflow you can activate it. Otherwise your can create your own sketch tool.&lt;/P&gt;&lt;P&gt;Here is the link to related thread:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-activate-deactivate-a-maptool/td-p/874112" target="_self"&gt;https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-activate-deactivate-a-maptool/td-p/874112&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 08:26:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1027105#M6182</guid>
      <dc:creator>GKmieliauskas</dc:creator>
      <dc:date>2021-02-16T08:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to activate custom MapTool from a DockPane Button?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1027207#M6186</link>
      <description>&lt;P&gt;When you implement a button (or tool) you have to define its 'id' in the config.daml file.&amp;nbsp; Usually the item template for buttons/tools will define an id for you.&amp;nbsp; It looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;tool id="CompReporter_AddCompBySelection" caption="AddCompBySelection" 							 
      className="AddCompBySelection" loadOnClick="true" ...&amp;gt;
          &amp;lt;tooltip ... &amp;lt;/tooltip&amp;gt;
&amp;lt;/tool&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;the 'id' in this case is:&amp;nbsp;&amp;nbsp;CompReporter_AddCompBySelection&lt;/P&gt;&lt;P&gt;In the 'code behind' for your dockpane you can then use your tool (or button) just like any other ArcGIS Pro button (built-in or not) by using this snippet:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;// use CompReporter_AddCompBySelection
IPlugInWrapper wrapper = FrameworkApplication.GetPlugInWrapper("CompReporter_AddCompBySelection");
if (wrapper is ICommand toolCmd)
{
  // if it is a tool, execute will set current tool
  toolCmd.Execute(null);
}&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Feb 2021 16:54:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1027207#M6186</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-02-16T16:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to activate custom MapTool from a DockPane Button?</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1027274#M6189</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/12882"&gt;@Wolf&lt;/a&gt; and &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/42133"&gt;@GKmieliauskas&lt;/a&gt; for the guidance. It works ok now.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 19:20:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-activate-custom-maptool-from-a-dockpane/m-p/1027274#M6189</guid>
      <dc:creator>nita14</dc:creator>
      <dc:date>2021-02-16T19:20:37Z</dc:date>
    </item>
  </channel>
</rss>

