Creating a new model |
Geoprocessing |
Segment 6 of 16 |
Top Previous Next |
To create a new model, right-click your My_Analysis_Tools toolbox in the ArcToolbox window, point to New, and click Model.
An empty ModelBuilder window will open.
You’ll select from the vegetation feature class (vegtype) those vegetation types preferred by the gnatcatcher. You’ll use the Select tool to select all suitable vegetation types (polygons with a Habitat value of 1).
Expand the Extract toolset located inside the Analysis Tools toolbox. Click and drag the Select tool into the display window. An element that references the Select tool is created in the display window.
Right-click the Select tool element and click Open. Click the Input Features dropdown arrow and click the layer vegtype. Notice that layers from the ArcMap table of contents have a yellow layer icon to the left of them to identify them as layers.
Since the Scratch Workspace was set earlier, the default path given for the Output Feature Class parameter is set to this location. Leave the default location and type “select_output” for the name.
Type “"HABITAT" = 1” for the value of the Expression parameter, or click the Browse button next to the Expression parameter and use the Query Builder to build the expression.
When all parameters have valid values, the green circles to the left of each parameter will be removed, indicating that a valid value has been set for each parameter. If you have entered an invalid value for a parameter, a red cross icon will display to the left of the parameter. By placing the cursor over such icons, you can obtain information to help solve the problem with the current parameter value that is set.
Click OK.
Click Auto Layout then click Full Extent to apply the current diagram properties to the elements and to place the elements within the display window.
Notice that the process is now colored in, meaning it is ready to run.
Right-click the vegtype_Select derived data element and click Rename. Type “Suitable Vegetation” and click OK.
Right-click the Suitable Vegetation data element and click Add To Display.
With the Add To Display property checked, the derived data referenced by this element will be added to the display each time the model is run.
Right-click the Select tool element and click Run to run the process.
Notice that as the process runs, its progress is documented in the message section of the Command Line window, and the tool element that references the tool is highlighted in red. When the process has finished, the tool and its derived data element become shaded, indicating that the process has run and the derived data has been created on disk. Check Close this dialog when completed processing if the Select progress dialog box is present, then click Close.
Examine the layer select_output in your ArcMap display. All vegetation types that are preferable for the gnatcatcher, including areas of San Diego coastal sage scrub, have been selected from the vegetation data.