4

There is plenty of documentation on how to add parameters to a category in a Python Toolbox i.e. see the bottom of http://resources.arcgis.com/en/help/main/10.1/index.html#/Defining_parameters_in_a_Python_toolbox/001500000028000000/)

But I haven't found a way to do this for a Python Script Tool. Can this be done?

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Mar 11, 2013 at 18:23

1 Answer 1

10

Yup, you need to use the Tool Validator. See this help link: http://resources.arcgis.com/en/help/main/10.1/index.html#/Programming_a_ToolValidator_class/00150000000v000000/

def initializeParameters(self):
 self.params[4].category = "Options"
 self.params[5].category = "Options"
 self.params[6].category = "Advanced"
 self.params[7].category = "Advanced"
answered Mar 11, 2013 at 21:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.