An overview of creating script tools
Last modified June 3, 2010
Print all topics in : "Creating script tools"
This topic was updated for 9.3.1.
Scripts that you create can be executed with one of two basic methods, outside ArcGIS and within ArcGIS.
|Geoprocessing framework||This is a broad overview topic that discusses how the geoprocessing framework is designed so that the script (and model) tools you create become integral parts of a complete system to automate your work.|
|Getting started with scripting||To create a script tool, you first need to create a script. This topic introduces you to the process of script writing.|
|Basic toolbox management||This topic shows you how to create a custom toolbox to contain your script tool.|
|Understanding script tool parameters||The parameters of your script tool need to be precisely defined. This topic is all about how you define parameters.|
|Adding a script tool||This topic explains the Add Script Tool wizard and what it requires.|
|Editing script tool code||Describes how to open your script for editing.|
|Setting script tool parameters||After using the Add Script tool wizard to create a script tool, you can modify its properties.|
|Writing messages in script tools||Because your script will be executed from an ArcGIS application, such as ArcMap and ArcCatalog, you can write messages to the progress dialog.|
|Running a script in process||You can make your script tools run faster by running them in process. This topic describes in process execution.|
Customizing script tool behavior
Programming a ToolValidator class
Debugging a ToolValidator class
|You can customize how your script tool dialog appearance changes based on user input. For example, you can enable (gray-out) parameters, provide default values, and restrict parameter values to be only certain types (for example, only allow point feature classes to be input). You can also define properties of your tool output for use in ModelBuilder. These three topics show you how this is done using a special Python class called ToolValidator.|
|Setting output symbology in scripts||You can associate a layer file (.lyr) with an output parameter to define the symbology used to display the output. This topic shows you how this is done from a script.|
|An overview of documenting tools and toolboxes||A script tool without documentation is of little use to other users in your organization. This topic shows you how to document your tools and toolboxes.|
|An overview of sharing tools and toolboxes||This topic shows you how to distribute your tools to other users within or outside your organization.|