I am currently working on a python script, that i want to convert to a tool. I have managed to set it up in Arcgis as a tool, but it does not behave exactly as i want it to:
What i want it to do is: if the first checkmark box is not checked, the next input parameters need to be greyed out (not available for the user to specify), and if the first box is checked, parameters will be enabled, indicated by the purple arrows. and then, if the first checkmark box is checked, (which then enables the second checkmark box), it should enable the last parameter only if the 2. checkmark is checked. Basically creating a "dependency" hierarchy of some sort.
I have tested out the tool-validation, but with very little luck and was hoping someone had some more experience with customizing a tool like this! right now my validation script looks like this:
def updateParameters(self): if not self.params.hasBeenValidated: self.params.enabled = True self.params.enabled = True if not self.params.hasBeenValidated: self.params.enabled = True else: self.params.enabled = False else: self.params.enabled = False self.params.enabled = False return
(edit: the above script does not behave properly: when you open the tool, all input parameter fields are NOT greyed out, but when you click on the first checkmark, the last field [what is the offset above floor level?] is greyed out. then if you click the last check mark, both the last checkmark and the field [Height field] is greyed out. and if you uncheck the first checkmark, the field [Height field] and the last checkmark is un-greyed out. )