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.
Last Published: 5/5/2016
Article ID: 000008633
Software: ArcGIS-ArcEditor 9.3.1, 9.3, 9.2, 9.1, 9.0, 10 ArcGIS-ArcInfo 9.3.1, 9.3, 9.2, 9.1, 9.0, 10 ArcGIS-ArcView 9.3.1, 9.3, 9.2, 9.1, 9.0, 10