Sunday 8 January 2017

arcpy - Permanently add a python toolbox to ArcToolbox


I've written a python toolbox for my company containing several scripts to speed up various repetitive tasks. Each time we want to use it we have to open ArcToolbox, right click and select "Add Toolbox...", then find the toolbox. If the mxd had previously been saved with the toolbox open, it remains open as part of the mxd.


I've tried the right click > "Save Settings" > "To Default" option with no luck - toolbox is missing next time I open ArcMap.


Is there a way to open the python toolbox by default every time ArcMap is opened, regardless of which mxd is opened or who's logged on etc?



Answer



This help topic should get you started -- basically you embed your toolbox in a Python package and install it in your local Python installation. Then your tool should show up automatically under system toolboxes.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...