O'Reilly logo

ArcPy and ArcGIS – Geospatial Analysis with Python by Silas Toms

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Script tool

Creating a script tool is a powerful combination of the power of ArcPy and the ease of use of the tools in ArcToolbox.

The first step is to create a custom toolbox to hold the script tool. To achieve this, do the following:

  1. Open up ArcCatalog and right click in the SanFrancisco.gdb File Geodatabase.
  2. Select New and then Toolbox from the menu.
  3. Call the toolbox Chapter8Tools.
  4. Right click on Chapter8Tools, select Add, and then select Script.

The following menu will appear allowing you to set up the script tool. Add a title with no spaces and a label, as well as a description. I prefer to run script tools in the foreground to see the messages it passes, but it is not necessary and can be annoying when needing to start a script and ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required