Tuesday, August 4, 2015

Sharing Custom Tools in an ArcGIS Environment

When a custom script tool is created one measure of its intrinsic value may be its potential as something that can be shared with others.  Unsurprisingly, ArcGIS provides an easy method of doing so- with a custom script tool, created in ArcMap.  All this requires is a custom toolbox and a python script, and from there just a few modifications to the input variables and the script can be shared with others, and run from ArcMap.  



The above is a dialog box, which is for user input parameters, and must be populated before the script is run.  The parameters are set in the "Properties" of the script tool, and can be specified to a plethora of different requirements.  The text in the right pane of the dialog is customizable in the "Item Description" of the script tool, and can be modified to include specific information and instructions for not only the tool itself, but also the user input fields.  

  The output of the script is the above- as layer of random points with buffers of a specified distance.  The script can also be embedded in the actual script tool as well, so that a separate .py file isn't required if it's shared with someone else.

No comments:

Post a Comment