Hi,
I've been coding a python toolbox for use in a data conversion process. I would like the tools to be presented in the order in which they need to be run as opposed to alphabetical which seems to be default way the tool are listed. I have tried placing the tools in the order I want in the list for the tools for example:
So other than naming the tools step 1, step 2 etc. is there a way to overide the default listing of the tools in a python toolbox?
Cheers!
I've been coding a python toolbox for use in a data conversion process. I would like the tools to be presented in the order in which they need to be run as opposed to alphabetical which seems to be default way the tool are listed. I have tried placing the tools in the order I want in the list for the tools for example:
class Toolbox(object): def __init__(self): """Define the toolbox (the name of the toolbox is the name of the .pyt file).""" self.label = "My Toolbox" self.alias = "" # List of tool classes associated with this toolbox self.tools = [Importdata,Convertdata, CalculateMeasures, StationLine, CreatePoints,ExtractPoint,CreateDataPackage]
So other than naming the tools step 1, step 2 etc. is there a way to overide the default listing of the tools in a python toolbox?
Cheers!
Direct from the help:
Toolset and tool display order
Toolsets and tools are always displayed alphabetically. You cannot change this alphabetical ordering.
If there is some implied order to using tools within a toolbox or toolset, such as "use this tool first, then this tool," you should consider creating models, since models are the way you create and use a sequence of tools.
so, what about a tool that runs all of these in the appropriate order, in addition to the individual stand-alone tools?
Regards,
Jim