Setting environments for an entire model

Geoprocessing environments can be set so that all processes within a model use them. There are two ways to set environments for an entire model:

Setting model environments from Model Properties

Steps:
  1. In the Catalog window or ArcToolbox window, right-click the model tool and click Properties. Or do one of the following:
    • In the ModelBuilder menu, click Model > Model Properties.
    • Right-click anywhere on the model diagram and click Model Properties.
  2. Click the Environments tab.
  3. Expand the category in which the environment is located.
  4. Check the check box next to the environments you want to set. You can check multiple boxes in multiple categories.
  5. Click Values. The Environment Settings dialog box opens, showing the categories of the settings.
  6. Open each category by clicking the Down arrows.
  7. Provide a value for each environment. The values supplied will be used by all processes in the model.
  8. An unchecked environment setting means that the value of the setting will be the same as the passed-down environment.

Setting environments using model variables

A new stand-alone variable or existing variable can be designated for use as an environment setting. The contents or value of the variable will be used for the environment setting.

The steps and example below show how to set the Output Coordinate System environment.

Steps:
  1. In ModelBuilder, right-click the model canvas and click Create Variable.
  2. From the list of data types, select Coordinate System, then click OK.

    A new variable is added to the model.

  3. Right-click the variable and click Rename. Rename the variable Result Coordinate System.
  4. Right-click the ModelBuilder canvas and click Model Properties, then click the Environments tab.
  5. Expand the tree and check the Output Coordinate System environment.
  6. Click Values. The Environment Settings dialog box opens. Expand Output Coordinates.
  7. In the Output Coordinate System drop-down list, click As Specified Below.
  8. In the unlabeled drop-down list, choose Result Coordinate System (the model variable you created). Click OK.
  9. The value of the Result Coordinate System variable will now be used as the Output Coordinate System environment by all processes in the model.
  10. To expose the Result Coordinate System model variable as a model parameter, right-click the variable and click Model Parameter.
  11. The model below shows this technique using the Clip tool, along with the model's tool dialog box opened from the Catalog window.
    Model environment

Related Topics

10/29/2012