Create a new model and override some environment settings |
Spatial Analyst |
Segment 26 of 34 |
Top Previous Next |
You’ll create a new model, Find Best Route, inside your Site Analysis Tools toolbox. This model will calculate the best path through the landscape from the source (the school site) to the destination point, taking into consideration the slope of the land and the type of land use the path will cross.
To do so, right-click the Site Analysis Tools toolbox, point to New, and click Model, then click the Model menu and click Model Properties. Click the General tab and type “find_route” in the Name text box. Type “Find Best Route” in the Label text box. The name is used in scripting and at the command line. The label is the display name for the model. Check Store relative path names (instead of absolute paths) so that all paths for sources of information referenced by the tool are saved relative to the location of the toolbox. If the toolbox and its data are moved, paths to data sources will be altered accordingly.
Click the Environments tab and check the following environment settings to override for this model: General Settings section: Check Current Workspace, Extent, and Scratch Workspace. Raster Analysis Settings section: Check Cell Size.
Click Values. Expand the General Settings section of the Environment Settings dialog box and set the following parameters:
Current Workspace = C:\Spatial
Extent = Same as Layer “elevation”
Scratch Workspace = C:\Spatial\Results
Expand Raster Analysis Settings and set the Cell Size parameter value to be the same as the elevation layer.
Click OK on the Environment Settings dialog box. Click OK on the Model Properties dialog box.
Click the Model menu and click Save.