<?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 Custom GP tool (script) setting parameters correctly before publishing in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-gp-tool-script-setting-parameters-correctly/m-p/1598280#M18066</link>
    <description>&lt;P&gt;I apologize, I&amp;nbsp; don't really know how to ask my question well....I created a custom GP tool that allows user to trace a route over an existing transportation route, then the end lines split the existing route, a buffer is created to then select the features that are within the route chosen and copy the features.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I want the user to choose any section of a route (routes are typically random lines segments) and it will copy that section. The tool run successfully in ArcGIS when things were hardcoded.&amp;nbsp; used&amp;nbsp;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GetParameterAsText&lt;/SPAN&gt;&lt;SPAN&gt;(#&lt;/SPAN&gt;&lt;SPAN&gt;) for spots that had hard code but I don't necessarily want my user to be naming things that are intermediate steps. I attached my code and here is how i set up my parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EmmaButzler_0-1742606543582.png" style="width: 506px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128504i7EC4557378889FC1/image-dimensions/506x117?v=v2" width="506" height="117" role="button" title="EmmaButzler_0-1742606543582.png" alt="EmmaButzler_0-1742606543582.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I publish my GP tool on my ArcServer and I add my custom tool to an analysis widget, I have the necessary data within the web map to run the tool. i get this error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EmmaButzler_1-1742606671894.png" style="width: 212px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128505i03273CA11C6429DE/image-dimensions/212x288?v=v2" width="212" height="288" role="button" title="EmmaButzler_1-1742606671894.png" alt="EmmaButzler_1-1742606671894.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Overall, I only want my input to be a route that the user selects and everything else to be coded so it shows up with the name I choose so that it is clear for the next steps. I am not sure how to get a feature class to show up as an output without marking it as a parameter within the arcGIS tool. Any tips on how to set my parameters so that it will run within my web tool?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 22 Mar 2025 01:26:12 GMT</pubDate>
    <dc:creator>EmmaButzler</dc:creator>
    <dc:date>2025-03-22T01:26:12Z</dc:date>
    <item>
      <title>Custom GP tool (script) setting parameters correctly before publishing</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-gp-tool-script-setting-parameters-correctly/m-p/1598280#M18066</link>
      <description>&lt;P&gt;I apologize, I&amp;nbsp; don't really know how to ask my question well....I created a custom GP tool that allows user to trace a route over an existing transportation route, then the end lines split the existing route, a buffer is created to then select the features that are within the route chosen and copy the features.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically, I want the user to choose any section of a route (routes are typically random lines segments) and it will copy that section. The tool run successfully in ArcGIS when things were hardcoded.&amp;nbsp; used&amp;nbsp;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;GetParameterAsText&lt;/SPAN&gt;&lt;SPAN&gt;(#&lt;/SPAN&gt;&lt;SPAN&gt;) for spots that had hard code but I don't necessarily want my user to be naming things that are intermediate steps. I attached my code and here is how i set up my parameters.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EmmaButzler_0-1742606543582.png" style="width: 506px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128504i7EC4557378889FC1/image-dimensions/506x117?v=v2" width="506" height="117" role="button" title="EmmaButzler_0-1742606543582.png" alt="EmmaButzler_0-1742606543582.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I publish my GP tool on my ArcServer and I add my custom tool to an analysis widget, I have the necessary data within the web map to run the tool. i get this error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EmmaButzler_1-1742606671894.png" style="width: 212px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128505i03273CA11C6429DE/image-dimensions/212x288?v=v2" width="212" height="288" role="button" title="EmmaButzler_1-1742606671894.png" alt="EmmaButzler_1-1742606671894.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Overall, I only want my input to be a route that the user selects and everything else to be coded so it shows up with the name I choose so that it is clear for the next steps. I am not sure how to get a feature class to show up as an output without marking it as a parameter within the arcGIS tool. Any tips on how to set my parameters so that it will run within my web tool?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2025 01:26:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-gp-tool-script-setting-parameters-correctly/m-p/1598280#M18066</guid>
      <dc:creator>EmmaButzler</dc:creator>
      <dc:date>2025-03-22T01:26:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom GP tool (script) setting parameters correctly before publishing</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-gp-tool-script-setting-parameters-correctly/m-p/1600243#M18197</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As you are saying basically the tool is copying the route section user selected, when the output should be a feature class type, right?&amp;nbsp;&lt;BR /&gt;But why you need to "&lt;SPAN&gt;get a feature class to show up as an output without marking it as a parameter within the arcGIS tool.&lt;/SPAN&gt;"?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Mar 2025 23:19:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/custom-gp-tool-script-setting-parameters-correctly/m-p/1600243#M18197</guid>
      <dc:creator>Wei_Ying</dc:creator>
      <dc:date>2025-03-27T23:19:53Z</dc:date>
    </item>
  </channel>
</rss>

