To set a particular environment
- Expand the category in which the environment is located.
- Check the box next to the environments you want to set. You can check multiple boxes in multiple categories.
- Click Values.
- The Environment Settings dialog box opens, showing the categories of the settings. Open each category by clicking the Down arrows.
- Provide a value for each environment. The values supplied will be used by all processes in the model.
With this method, you create a stand-alone variable, or use an existing variable, and designate that the contents of the variable will be used for the environment setting. Since a model variable can be exposed as a model parameter, the user of the model can set the variable's value at run time using the model's tool dialog. The steps and example below show this technique by setting the Output Coordinate System environment found under General settings. The same technique applies to all environments.Learn more about model variablesLearn more about model parameters
- In ModelBuilder, right-click the model diagram and click Create Variable.
- From the list of data types, click Coordinate System, then click OK. A new variable is added to the model.
- Right-click the variable and click Rename. Rename the variable Result coordinate system.
- Open the Model Properties and click the Environments tab.
- Expand the General settings tree and check the Output Coordinate System environment.
- Click Values. The Environment settings dialog opens. Expand the General Settings. The Environment settings dialog should appear as follows:
- In the Output Coordinate System drop-down list, click As Specified Below.
- In the unlabeled drop-down list, choose Result coordinate system (the model variable), as shown below. Click OK. The value of the Result coordinate system variable will now be used by all processes in the model.
- To expose the Result coordinate system model variable as a model parameter, right-click the variable and click Model Parameter.