<?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 Give warning or remove some GP tools in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/give-warning-or-remove-some-gp-tools/m-p/1612737#M12893</link>
    <description>&lt;P&gt;I have a few gp tools that I do not want the user to use or at least use with&amp;nbsp;caution.&lt;/P&gt;&lt;P&gt;So the first option is to remove some gp tools from Pro using the SDK - is there such an option?&lt;/P&gt;&lt;P&gt;If this is not possible I would like to pop a warning message.&lt;/P&gt;&lt;P&gt;I tried to get the&amp;nbsp;GPExecuteToolEvent. I see in the event parameters a lot of info but I could not find the name of the running tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 08 May 2025 10:50:16 GMT</pubDate>
    <dc:creator>ModyBuchbinder</dc:creator>
    <dc:date>2025-05-08T10:50:16Z</dc:date>
    <item>
      <title>Give warning or remove some GP tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/give-warning-or-remove-some-gp-tools/m-p/1612737#M12893</link>
      <description>&lt;P&gt;I have a few gp tools that I do not want the user to use or at least use with&amp;nbsp;caution.&lt;/P&gt;&lt;P&gt;So the first option is to remove some gp tools from Pro using the SDK - is there such an option?&lt;/P&gt;&lt;P&gt;If this is not possible I would like to pop a warning message.&lt;/P&gt;&lt;P&gt;I tried to get the&amp;nbsp;GPExecuteToolEvent. I see in the event parameters a lot of info but I could not find the name of the running tool.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 10:50:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/give-warning-or-remove-some-gp-tools/m-p/1612737#M12893</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-05-08T10:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Give warning or remove some GP tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/give-warning-or-remove-some-gp-tools/m-p/1612832#M12894</link>
      <description>&lt;P&gt;I am still looking at this, but this appears to be a bug in the API since the Path property is null when the tool is being executed.&amp;nbsp; It looks like when the event is triggered only the GPResult property is populated in GPExecuteToolEventArgs , but unfortunately GPResult doesn't contain the tool path or id either.&amp;nbsp; It looks like the Event is called twice, once with IsStarting set to 'true' before the tool runs and once with IsStarting set to 'false' after the tool completes.&amp;nbsp; There are no provisions to 'cancel' the tool, so once the Path property is set to a proper value you will be able to get the tool's name to display a warning in case a 'specific' tool is run.&amp;nbsp; I will report the issue to the GeoPrcoessing dev team.&amp;nbsp; &amp;nbsp;The 3.5 release contains a new GeoProcessing community sample called 'GPToolInspector' that contains the code to retrieve GPTool attributes from a given path.&amp;nbsp; The 3.5 release is available next week.&amp;nbsp; But unfortunately, you'll have to wait for the 'Path' property fix before you can implement a warning.&lt;/P&gt;</description>
      <pubDate>Thu, 08 May 2025 15:02:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/give-warning-or-remove-some-gp-tools/m-p/1612832#M12894</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2025-05-08T15:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Give warning or remove some GP tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/give-warning-or-remove-some-gp-tools/m-p/1613507#M12897</link>
      <description>&lt;P&gt;Hi Wolf&lt;/P&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;Do you see any way to remove any GPtools from Pro on startup time? Maybe with Configuration?&lt;/P&gt;&lt;P&gt;Maybe overwrite it with my own tool (that will make some tools before running the original tool)?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 04:42:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/give-warning-or-remove-some-gp-tools/m-p/1613507#M12897</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-05-11T04:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Give warning or remove some GP tools</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/give-warning-or-remove-some-gp-tools/m-p/1613511#M12898</link>
      <description>&lt;P&gt;It will also be nice if the event can return&amp;nbsp; something that will stop the tool (cancel code?)&lt;/P&gt;</description>
      <pubDate>Sun, 11 May 2025 05:11:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/give-warning-or-remove-some-gp-tools/m-p/1613511#M12898</guid>
      <dc:creator>ModyBuchbinder</dc:creator>
      <dc:date>2025-05-11T05:11:35Z</dc:date>
    </item>
  </channel>
</rss>

