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]
Solved! Go to Solution.
Lorne,
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
Any chance that this has changed in the intervening years? I would also like to set a specific display order for the tools in my python toolbox file. A user may not need or want to use every tool in my toolbox, so wrapping them into a model or a single tool doesn't really suit my purposes. I would like the users to see the tools available in the order that they might become useful. In the past I've gone with starting the label with a step number, but it would be tidier if I could just designate the order in the code for the toolbox.
no change alphabetical still,