NOTE: A command is either a tool name or the name of an environment setting.
NOTE: A command line is a command followed by the values for each of its parameters.
Why use commands and the Command Line window?
Infrequent users of geoprocessing will almost always use the tool dialog. Such users find the parameter controls easy to use and they like the immediate feedback of the warning and error icons placed next to the parameters.But if you are a frequent user of geoprocessing, you'll like the Command Line window for many reasons.- You can type multiple commands and have them execute, as shown in the above illustration.
- In the message section of the window, you can recall commands you've already executed to the command line section and re-execute the command, changing a few of its parameters if necessary. You can also open the tool's dialog from the message section.
- You can save the commands you've typed to a text file and reload it later. This allows you to do simple scripting.
- You can create variables and re-use them in other commands.
- When you execute a tool using the tool dialog, tool messages will go to the message section where you can recall them, execute them, and save them to a text file.
- Opening and filling out a tool's dialog is time-consuming, especially if you are familiar with the tool and you can type with any skill. You'll find that typing in a command line is actually quicker and easier than using the tool dialog.
NOTE: Tools can only be run from the Command Line window if they are first added to the ArcToolbox window.