Issue in ArcGIS Pro python tool window

632
3
Jump to solution
04-28-2022 10:53 PM
NoraDiba
New Contributor

Hi,

I was recently trying to create a python tool in ArcGIS Pro but I don't know for what reason the tool creation window looks a bit odd!

I created a new toolbox and right clicked on toolbox and chose New -> Script. But the Options is greyed out

NoraDiba_0-1651211234172.png

and I cannot add any new parameter! 

NoraDiba_1-1651211269941.png

I've also tried with the Default toolbox, the only difference is the Options is turned on, but I still cannot add any parameter!

NoraDiba_2-1651211355749.png

Just wondering if anyone had any similar experience?!

 

 

 

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
DanPatterson
MVP Esteemed Contributor

That dialog is for the "Custom" tools which use a python script, and not for the confusingly named "python" toolbox, where you specify everything.

So assuming you are trying to create a "custom" python tool, then...

Fill in the General options first.

Next provide a Name for the tool parameter (which you generally, assign in your script using GetParameterAsText, or sys.argv)

Provide the type etc and move on to the next parameter.

Perhaps you didn't specify parameters for the script (?)

Comparing custom and Python toolboxes—ArcGIS Pro | Documentation

I use Custom toolboxes since I screengrab the dialogs for documentation and you can still edit validation code for the tool


... sort of retired...

View solution in original post

0 Kudos
3 Replies
DanPatterson
MVP Esteemed Contributor

That dialog is for the "Custom" tools which use a python script, and not for the confusingly named "python" toolbox, where you specify everything.

So assuming you are trying to create a "custom" python tool, then...

Fill in the General options first.

Next provide a Name for the tool parameter (which you generally, assign in your script using GetParameterAsText, or sys.argv)

Provide the type etc and move on to the next parameter.

Perhaps you didn't specify parameters for the script (?)

Comparing custom and Python toolboxes—ArcGIS Pro | Documentation

I use Custom toolboxes since I screengrab the dialogs for documentation and you can still edit validation code for the tool


... sort of retired...
0 Kudos
NoraDiba
New Contributor

Thanks Dan 🙂

 

 

0 Kudos
DanPatterson
MVP Esteemed Contributor

Report if it works out and the issue is solved


... sort of retired...
0 Kudos