How To: Export a model to a script
Instructions provided describe how to export a model from ModelBuilder to a Python script, VBScript, or JScript.
Follow the steps below:
- Right-click the desired model in ArcToolbox and click Edit.
- On the Model menu, click Export > To Script, and select a script from the list.
At ArcGIS 10, only Python is supported; VBScript and JScript are not available from the Export menu in ModelBuilder.
- Browse to the desired location to save the script and type the file name. Click Save.
To view the script, navigate to the location of the script in Windows. Right click the script and click Edit.
The script opens with the default application set in the operating system.