Select to view content in your preferred language

Custom GP tool (script) setting parameters correctly before publishing

171
1
03-21-2025 06:26 PM
Labels (1)
EmmaButzler
Emerging Contributor

I apologize, I  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. 

 

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.  used arcpy.GetParameterAsText(#) 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.

EmmaButzler_0-1742606543582.png

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. 

 

EmmaButzler_1-1742606671894.png

 

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? 

 

0 Kudos
1 Reply
Wei_Ying
Esri Regular Contributor

Hi,

As you are saying basically the tool is copying the route section user selected, when the output should be a feature class type, right? 
But why you need to "get a feature class to show up as an output without marking it as a parameter within the arcGIS tool."? 

0 Kudos