New answers tagged python26
2
When running something like this in a Toolbox Tool, you indeed want to use Tool Validation. For example:
class ToolValidator:
"""Class for validating a tool's parameter values and controlling
the behavior of the tool's dialog."""
def __init__(self):
"""Setup arcpy and the list of tool parameters."""
import arcpy
self.params = ...
Top 50 recent answers are included