I have created a simple Python toolbox at work for use in ArcMap 10.2. It is used by multiple members of staff so I'm hoping to make it as simple to use as possible. It currently only contains two scripts but I have others that I plan to add in the future. I am currently using the line below to load the two tools on startup, and whilst this is okay with only two scripts, it may become untidy as I add more.

self.tools = [opentemplatecsv, batchcsvtopdf]

Ideally it would be best to have one toolbox (i.e. "Dave's Tools") containing several sub-groups (e.g. "Mapping tools", "Modelling tools", "Hydrology tools"), each containing the appropriate scripts I've written.

Is there a way to place tools into sub-groups under the main toolbox, or is it best to simply add a few letters to the beginning of the scripts' names to alphabetically sort them?


MAP - tool #1

MAP - tool #2

MOD - tool #3

HYD - tool #4


1 Answer 1


Set the category attribute on your tool.

class MyTool(object):
    def __init__(self):
        self.label = "This Particular Tool"
        self.description = "This tool"
        self.category = "This tool's grouping"

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.