To define the Buffer Distance and XY Tolerance parameters, you need to create model variables for them.Īdd a tool to a model, model variables are automatically created for input and output datasets, but not for any other tool parameters. The remaining steps will expose model variables as parameters so they appear on the model tool dialog box as shown above. An added advantage of running a model from its tool dialog box is that a result in the Results window is created running a model within ModelBuilder does not create a result in the Results window. You don't have to open ModelBuilder each time you want to run the model-you can use the tool dialog box instead. Once the model parameters have been created, you can execute the model from its tool dialog box, supplying different values for the Input Roads, Buffer Distance, Input Vegetation, Output Clipped Feature Class, and XY Tolerance parameters. To add the output to the display, you must make the output variable a model parameter.Īnother reason for creating model parameters is that you want to run the model with different inputs without having to open ModelBuilder every time, as illustrated below. The reason is that when a model is run from its tool dialog box, the Add To Display setting is ignored. The output of the model ( ClippedFC) will not be added to the ArcMap table of contents, even though Add To Display was checked for the output variable. If you run the tool by clicking OK, the model will run. The tool dialog box opens but shows no parameters, as illustrated below. To remove the drop shadows, validate the entire model by clicking the Validate Entire Model button on the ModelBuilder toolbar.ĭouble-click the example model from the Catalog window. If this model was saved after the model was run in the "Executing tools in ModelBuilder tutorial," the model elements may have a drop shadow around them. If the model was saved previously, open the model by right-clicking the model and selecting Edit. The same model is used in this tutorial as the starting point. On the ArcMap - Getting Started dialog box, click Existing Maps > Browse for more.įollow the steps in Executing tools in ModelBuilder.
This will start ArcMap and open the map document, or If you are copying the data to another drive or location, make sure to use that drive for all the steps below.īrowse to the C:\ModelBuilder folder in Windows Explorer and double click the Extract Vegetation.mxd. To avoid corrupting the original data, copy the ModelBuilder folder from C:\arcgis\ArcTutor to the C drive on your computer. The tutorial scenario is fictitious, and the original data has been adapted for the tutorial.
The data required for this tutorial (included on the ArcGIS Desktop CD) by default is installed in C:\arcgis\ArcTutor. It is assumed that you have installed ArcGIS Desktop ( ArcGIS Desktop Basic, ArcGIS Desktop Standard, or ArcGIS Desktop Advanced) before you begin this tutorial. In this tutorial, the model built in the Executing tools in ModelBuilder tutorial is made into a useful tool by exposing model variables as model parameters.įor a broad overview of creating model tools, see A quick tour of creating tools with ModelBuilder. This tutorial takes you step-by-step through the process of creating a model tool. Complexity: Beginner Data Requirement: ArcGIS Tutorial Data for Desktop Goal: Learn how to create a model tool.