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:

  1. Right-click the desired model in ArcToolbox and click Edit.
  2. On the Model menu, click Export > To Script, and select a script from the list.
    [o]export model to script
    At ArcGIS 10, only Python is supported; VBScript and JScript are not available from the Export menu in ModelBuilder.

  3. 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.

Related Information