Exporting a model

A model can be exported to a graphic or a Python script.

Exporting a model to a graphic

A model can be exported to a graphic that can be used in documentation, reports, and posters. To export a model to a graphic, follow the steps below:

Steps:
  1. From the menu in ModelBuilder, point to and click Model > Export > To Graphic.
  2. Set the desired options in the Save As dialog box. Graphics can be saved to .bmp, .jpg, or Windows enhanced metafile (.emf) formats.
  3. Click OK.

Exporting a model to a Python script

An easy way to start writing scripts is to export a model you have created to a script, then modify the exported script. The script can be added to a toolbox or model as a script tool and run as any other tool. To export a model to a script, follow the steps below:

Steps:
  1. From the menu in ModelBuilder, point to and click Model > Export > To Python Script.
  2. Click the Save in drop-down arrow and navigate to the location where you want to save your script.
  3. Type a file name for the script.
  4. Click Save.
LegacyLegacy:

Functionality to export models to JScript and VBScript has been removed from ModelBuilder at version 10.

Editing exported Python script

Any model created in ModelBuilder can be exported to a script. This can be one technique for furthering your model as well as seeing how tools and environments are used in a scripting environment.

Take the following points under consideration when exporting a model to a script:


9/13/2011