<?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 Running a custom tool from a DockPanel in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/running-a-custom-tool-from-a-dockpanel/m-p/1141029#M7738</link>
    <description>&lt;P&gt;I want to put some custom maptools into a dockpanel addin. I have found how to do this and run it from an RelayCommand and it works using the little bit of code below, but I was wondering about the parameter that you can pass to the tool. Can this be anything? If so, how do I get at it from within my maptool?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;      IPlugInWrapper pWrapper = FrameworkApplication.GetPlugInWrapper("PukaWai_GetFeatTool");
      if (pWrapper is ICommand toolCmd)
      {
       // toolCmd.Execute(null);
        toolCmd.Execute("parameter");
      }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 06 Feb 2022 04:34:26 GMT</pubDate>
    <dc:creator>BerndtNording</dc:creator>
    <dc:date>2022-02-06T04:34:26Z</dc:date>
    <item>
      <title>Running a custom tool from a DockPanel</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/running-a-custom-tool-from-a-dockpanel/m-p/1141029#M7738</link>
      <description>&lt;P&gt;I want to put some custom maptools into a dockpanel addin. I have found how to do this and run it from an RelayCommand and it works using the little bit of code below, but I was wondering about the parameter that you can pass to the tool. Can this be anything? If so, how do I get at it from within my maptool?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;      IPlugInWrapper pWrapper = FrameworkApplication.GetPlugInWrapper("PukaWai_GetFeatTool");
      if (pWrapper is ICommand toolCmd)
      {
       // toolCmd.Execute(null);
        toolCmd.Execute("parameter");
      }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Feb 2022 04:34:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/running-a-custom-tool-from-a-dockpanel/m-p/1141029#M7738</guid>
      <dc:creator>BerndtNording</dc:creator>
      <dc:date>2022-02-06T04:34:26Z</dc:date>
    </item>
  </channel>
</rss>

