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
and I cannot add any new parameter!
I've also tried with the Default toolbox, the only difference is the Options is turned on, but I still cannot add any parameter!
Just wondering if anyone had any similar experience?!
Solved! Go to Solution.
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
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
Thanks Dan 🙂
Report if it works out and the issue is solved