SlideShare a Scribd company logo
1 of 31
Download to read offline
Intro to ArcGIS ModelBuilder
Created for DUSPViz by Luke Mich | Spring 2016
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 2
What is ModelBuilder?
ModelBuilder is part of the ESRI ArcGIS suite. Accessible from either ArcMap or ArcCatalog, ModelBuilder allows you to combine a
series of geoprocessing tools in a flowchart-style visual model in order to streamline iterative mapping processes. In this tutorial, we’ll use
ModelBuilder to create a buffer around a feature and use that buffer to clip another feature.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 3
Getting Started
Let’s begin by extracting the files from the zipped folder and opening the ModelBuilder_Tutorial.mxd map file in ArcMap. We see that the
features we have loaded are the boundaries of Massachusetts and the Boston Metro Area as well as the state parks and rivers in and
around Boston. Let’s say you’re interested in finding all the rivers located within one mile of Boston metro area state parks. We can use
model builder to create a buffer around the state parks and use that to clip the rivers.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 4
Using the ArcCatalog Window
Open the ArcCatalog Window in ArcMap, either by clicking on the tab docked on the left side of the screen, or going to
Windows>ArcCatalog. Go ahead and pin it open by clicking on the thumbtack icon in the top right corner of the window. We’ll do most of
our model-building work by pulling files and processes from this window.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 5
Creating a New Toolbox
All ModelBuilder models need to be saved in a Toolbox (.tbx) file. Expand “Toolboxes” in the ArcCatalog window. If we expand “System
Toolboxes” we’ll see all of ArcGIS’s built-in functions. However, attempting to expand “My Toolboxes” reveals that we don’t have any. We
could create a toolbox here, but it will be saved into our default geodatabase, which is probably located in Documents>ArcGIS. Instead,
let’s create a new toolbox in our current working folder by right clicking on the “Home” folder and selecting New>Toolbox.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 6
Creating a New Model
You can rename the Toolbox.tbx file if you want. Then, right-click on the toolbox and select New>Model. This will automatically open the
ModelBuilder window. We can use this window to organize our input files and the processes we want to use. Let’s close this window for
now so we can rename our model. Right-click on the model you just created, and select Rename. Let’s call our model “CliptoBuffer” since
that’s what the model does (it’s good practice to give your models and your toolboxes descriptive names when you can).
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 7
Opening the Model
You’ll notice that if you double-click our model (or right-click and select Open) that a different window pops up than before, stating that
“This tool has no parameters.” This is the dialog box for our model. Later, we’ll use this to enter in certain parameters (such as input files or
geoprocessing properties) to run our model. For now, let’s close this window.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 8
Editing the Model - adding a file
Right-click on the CliptoBuffer model and select Edit. Now we can start adding files and processes to the model. We can do this by
selecting Insert>Add Data or Tool from the menu, clicking the Add Data button (plus sign in a yellow diamond) in the menu toolbar, or
by dragging and dropping. Let’s start by adding the file to create the buffer around. Click and drag the Bos_StateParks.shp file from the
Home folder in the ArcCatalog window to the ModelBuilder window.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 9
Editing the Model - adding the buffer tool
Now let’s add the buffer tool. Expand the System Toolboxes in the ArcCatalog window, then select Analysis Tools>Proximity>Buffer
and drag it into the ModelBuilder window. Great! Now we have an input file and a tool. Next we’ll tell ModelBuilder to use the input file when
running the tool.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 10
Editing the Model - connecting the file and tool
Great! Now we can link the input file to the buffer tool. Click the Connect button (small blue square and green square connected with a
line) to bring up the magic wand tool. Then click and drag a connection arrow from the Bos_StateParks.shp file to the buffer tool and select
Input Features from the pop-up window.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 11
Editing the Model - adjusting the buffer properties
Next, using the Select tool (the black arrow) from the menu toolbar, double click the Buffer tool to edit the tool properties. The Input
Features are already set from the last step. Now let’s set the Output Features to save our buffer as StatePark_Buffer.shp in our Home
folder (ModelBuilder Tutorial). Next, set the Distance to 1 Mile and set the Dissolve Type to ALL to remove any overlaps. Click OK, and
the buffer tool will turn yellow indicating it’s ready to run. Next we’ll add the clipping process.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 12
Editing the Model - adding the clipping components
Repeat the steps above to add the Bos_Rivers.shp file and the Clip tool (Analysis Tools>Extract>Clip) to the ModelBuilder window.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 13
Editing the Model - connecting the input feature
Connect the Bos_Rivers.shp file to the clip tool using the Connect Button (magic wand) and select Input Features, as this will be the item
that we want to clip.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 14
Editing the Model - connecting the clip feature
Repeat the connection process for the StatePark_Buffer.shp file, but select Clip Features as this will be the file we use to clip the rivers.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 15
Editing the Model - adjusting the clip tool properties
Using the Select tool (black arrow), double click on the Clip tool to change the properties. Again, the Input Features and Clip Features.
We’ll just need to set our Output Feature to save in the correct location. Let’s name it Rivers_StateParks_Clip.shp and save it in the
ModelBuilder Tutorial folder.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 16
Editing the Model - adjusting the layout, saving the output
By clicking the Auto Layout button in the menu toolbar, ModelBuilder will rearrange our model to clean it up. This will come in handy as we
start adding additional files and tools.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 17
Testing the Model
Okay, so now we have a model that takes our State Parks file, creates a 1-mile buffer, and uses that buffer to clip our Rivers file. We can
run the file from the ModelBuilder window to make sure our output is created correctly. Click the Run button (the blue “play” symbol) in the
menu toolbar to cycle through our model. Once the process is completed, you can close the Run dialog box. If the Run fails, the text in the
dialog box will explain why.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 18
Testing the Model - viewing the results
The StatePark_Buffer.shp and Rivers_StatePark_Clip.shp files have been added to our Home folder in the ArcCatalog window. Close the
ModelBuilder window (don’t forget to save!) and drag our new files over to our map (we can also add them automatically by right-clicking
the output components in the ModelBuilder window and selecting Add to Display prior to running). Adjust your Table of Contents panel
to match mine. The model worked! Next, we’ll adjust the model to allow users to select their own files and tool parameters.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 19
Resetting the Model
Next, remove our buffer and clip output files from the map document and delete them from the ArcCatalog window. This way there won’t be
any conflicts when we try to save over them in future steps. Also, you’ll notice that several components now have drop shadows indicating
that the model has been run. If we were to attempt to run it again from within the ModelBuilder window, it would tell us the process has
already been completed (even after we delete the output files). To reset, click Model>Validate Entire Model.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 20
Creating Parameters - input files
Right-click the Bos_StateParks.shp component and select Model Parameter. This will allow anyone who uses our CliptoBuffer tool to
select the file around which they’d like to create a buffer. Do the same for the Bos_StateParks.shp to allow them to select the feature they’d
like to clip.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 21
Creating Parameters - renaming files
You’ll see that the letter “P” has appeared next to each of our input components, indicating that they are now model parameters. Next,
right-click the Bos_StateParks.shp component and select Rename. This will set the name for the prompt users will see in the dialog box.
Let’s call it “Buffer Input.” We’ll do the same thing for the Bos_Rivers.shp component and call it “Clip Input.”
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 22
Creating Parameters - tool variables
Now we can create model parameters for our tools. This will allow users to change various settings when they run our model. Right-click on
the Buffer tool and select Make Variable> From Parameter>Distance to let users enter the buffer distance they want to use. Once it’s
been added, right-click and select Make Variable. Repeat this step for the Dissolve Type parameter. There aren’t any parameters we need
users to adjust on the Clip tool, so we’ll leave it alone for now. Once you’ve added the parameter variables, click Auto Layout.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 23
Parsing Paths - inserting the parse paths tool
Right now, our model is set up to save our output file as Rivers_StatePark_Clip.shp. This won’t make much sense if someone chooses to
use different files for the inputs. We could double-click on the output component and change it’s name to take the names of the input files
as variables, but first we need to parse the paths, which means pulling just the file name from the full file path (if we don’t, the model won’t
run correctly). Select Insert>Model Only Tools>Parse Path to bring in the tool.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 24
Parsing Paths - connecting the tool, renaming the outputs
Drag the Parse Paths tool near the Buffer Input component, and connect the two with the Connection tool (select Input Data Element).
Next, right click on the Value component with the Selector tool (black arrow) and rename the component something more descriptive
(such as Buffer Input Name). Repeat the same steps to bring in a Parse Path tool for the Clip Input. Then click Auto Layout to clean up the
model.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 25
Parsing Paths - adjusting the tool settings
Now double-click on the Parse Path tool connected to the Buffer Input component to change its settings. Select Name from the Parse
Type drop-down menu to save only the portion of the filename before the “.shp” as a value. Repeat this step for the Parse Path (2) tool
connected to the Clip Input component.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 26
Renaming the Output File
Double-click on the Rivers_StatePark_Clip.shp output file component to rename it. We’ll use the “%” symbol to indicate that the filename
should be based on the filenames of our inputs. Type in the parsed filenames from the inputs, surround each with % symbols and separate
them with an underscore: “%Buffer Input Name%_%Clip Input Name%”. Be sure to type everything just as you did when you named the
variables - including spaces. We can repeat a similar process for the intermediate Buffer output component if we want.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 27
Closing the ModelBuilder Window
Great! Make sure all of our components are named correctly, click Auto Layout one last time, then Save and Close the ModelBuilder
window. We won’t run our model from here. Instead we’ll use the model’s dialog box to select our parameters. But first, let’s add some
metadata.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 28
Adding Metadata
Metadata provides information about the files and tools you use in ArcGIS. Since we’ve just created a model that we might share with
others, it’s good practice to add metadata to explain what our tool does. Right-click on the CliptoBuffer model in the ArcCatalog window
and select Item Description. In the pop up window, click Edit at the top, and add some keyword tags and a short description. We can
also add descriptions of specific variables and creation credits. Then save and close this window.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 29
Running the Model
Double-click on the CliptoBuffer model from the ArcCatalog window to bring up the model’s dialog box. Now it looks like the dialog box
we expect to see when we open any other geoprocessing tool from ArcToolbox (including our newly added metadata). Since we built the
model using the specific files we’re interested in analyzing, everything is already set, but we could navigate to other files on our computer to
use those as inputs instead. Click OK to run the model.
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 30
Viewing the Results
Once the model has run, we can close the run dialog box and bring our resulting output files into the map to review. It looks great! In the
future, not only can we add other geoprocessing tools to our model if we wish, we can also automate other tasks, such as saving the
outputs in various folders, deleting intermediate data (like our buffer output), and loading the outputs directly into our open map document.
You can explore more advanced ModelBuilder options on the ESRI website (or your favorite search engine).
Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 31
Exporting to Python
ModelBuilder is a great tool for automating our geoprocessing work, but it can be a bit limited and clunky if we want to do more
complicated tasks. This is where Python scripting comes in. We’ll learn more about what Python is and how to use it in a different session,
but for now, let’s simply export our CliptoBuffer model as a Python script. Right-click on our CliptoBuffer model from the ArcCatalog window
and select Edit. Then, in the ModelBuilder window menu, select Model>Export>To Python Script. Save the script as CliptoBuffer.py.

More Related Content

What's hot

Intro to Adobe Illustrator
Intro to Adobe IllustratorIntro to Adobe Illustrator
Intro to Adobe IllustratorDUSPviz
 
Adobe Illustrator CS6 Primer
Adobe Illustrator CS6 PrimerAdobe Illustrator CS6 Primer
Adobe Illustrator CS6 PrimerNYCCTfab
 
Autocad 2016-tips-and-tricks-booklet-1
Autocad 2016-tips-and-tricks-booklet-1Autocad 2016-tips-and-tricks-booklet-1
Autocad 2016-tips-and-tricks-booklet-1Somanathan M
 
Latest Autocad 2015 tips-and-tricks
 Latest Autocad 2015 tips-and-tricks  Latest Autocad 2015 tips-and-tricks
Latest Autocad 2015 tips-and-tricks Hashim Hasnain Hadi
 
Adobe illustrator 1
Adobe illustrator 1Adobe illustrator 1
Adobe illustrator 1ilaazmil2
 
Adobe Photoshop I Primer
Adobe Photoshop I PrimerAdobe Photoshop I Primer
Adobe Photoshop I PrimerNYCCTfab
 
Adobe illustrator cs6
Adobe illustrator cs6Adobe illustrator cs6
Adobe illustrator cs6Ila Azmil
 
Illustrator assignment 1
Illustrator assignment 1Illustrator assignment 1
Illustrator assignment 1rgosselin
 
Meet The Vector Superhero - Seminar on Adobe Illustrator by RapidValue Solutions
Meet The Vector Superhero - Seminar on Adobe Illustrator by RapidValue SolutionsMeet The Vector Superhero - Seminar on Adobe Illustrator by RapidValue Solutions
Meet The Vector Superhero - Seminar on Adobe Illustrator by RapidValue SolutionsRapidValue
 
Designing with illustrator
Designing with illustratorDesigning with illustrator
Designing with illustratorLesley Baumann
 
Adobe Illustrator Basics
Adobe Illustrator BasicsAdobe Illustrator Basics
Adobe Illustrator BasicsChris Maxwell
 
Adobe Illustrator for beginners
Adobe Illustrator for beginners Adobe Illustrator for beginners
Adobe Illustrator for beginners suniltalekar1
 
Adobe Illustrator CS6 - Magic paintbrush howto
Adobe Illustrator CS6 - Magic paintbrush howtoAdobe Illustrator CS6 - Magic paintbrush howto
Adobe Illustrator CS6 - Magic paintbrush howtoRafael Felipe Santos
 
Photoshop CS5 Tutorial
Photoshop CS5 TutorialPhotoshop CS5 Tutorial
Photoshop CS5 TutorialZaxapias
 
Corel draw 14 hindi notes
Corel draw 14 hindi notesCorel draw 14 hindi notes
Corel draw 14 hindi notesSirajRock
 

What's hot (20)

Intro to Adobe Illustrator
Intro to Adobe IllustratorIntro to Adobe Illustrator
Intro to Adobe Illustrator
 
Adobe Illustrator CS6 Primer
Adobe Illustrator CS6 PrimerAdobe Illustrator CS6 Primer
Adobe Illustrator CS6 Primer
 
Sketch 3 manual
Sketch 3 manualSketch 3 manual
Sketch 3 manual
 
Autocad 2016-tips-and-tricks-booklet-1
Autocad 2016-tips-and-tricks-booklet-1Autocad 2016-tips-and-tricks-booklet-1
Autocad 2016-tips-and-tricks-booklet-1
 
Latest Autocad 2015 tips-and-tricks
 Latest Autocad 2015 tips-and-tricks  Latest Autocad 2015 tips-and-tricks
Latest Autocad 2015 tips-and-tricks
 
Adobe illustrator 1
Adobe illustrator 1Adobe illustrator 1
Adobe illustrator 1
 
Adobe Photoshop I Primer
Adobe Photoshop I PrimerAdobe Photoshop I Primer
Adobe Photoshop I Primer
 
Inkscape - A brief
Inkscape - A briefInkscape - A brief
Inkscape - A brief
 
Adobe illustrator cs6
Adobe illustrator cs6Adobe illustrator cs6
Adobe illustrator cs6
 
Illustrator assignment 1
Illustrator assignment 1Illustrator assignment 1
Illustrator assignment 1
 
Meet The Vector Superhero - Seminar on Adobe Illustrator by RapidValue Solutions
Meet The Vector Superhero - Seminar on Adobe Illustrator by RapidValue SolutionsMeet The Vector Superhero - Seminar on Adobe Illustrator by RapidValue Solutions
Meet The Vector Superhero - Seminar on Adobe Illustrator by RapidValue Solutions
 
Adobe illustrator basics
Adobe illustrator basicsAdobe illustrator basics
Adobe illustrator basics
 
Designing with illustrator
Designing with illustratorDesigning with illustrator
Designing with illustrator
 
Adobe Illustrator Basics
Adobe Illustrator BasicsAdobe Illustrator Basics
Adobe Illustrator Basics
 
Adobe Illustrator for beginners
Adobe Illustrator for beginners Adobe Illustrator for beginners
Adobe Illustrator for beginners
 
Adobe Illustrator CS6 - Magic paintbrush howto
Adobe Illustrator CS6 - Magic paintbrush howtoAdobe Illustrator CS6 - Magic paintbrush howto
Adobe Illustrator CS6 - Magic paintbrush howto
 
Acad2014 tipsntricks web
Acad2014 tipsntricks webAcad2014 tipsntricks web
Acad2014 tipsntricks web
 
Photoshop CS5 Tutorial
Photoshop CS5 TutorialPhotoshop CS5 Tutorial
Photoshop CS5 Tutorial
 
Acad12 tips online
Acad12 tips onlineAcad12 tips online
Acad12 tips online
 
Corel draw 14 hindi notes
Corel draw 14 hindi notesCorel draw 14 hindi notes
Corel draw 14 hindi notes
 

Similar to Intro to ArcGIS ModelBuilder

Publishing geoprocessing-services-tutorial
Publishing geoprocessing-services-tutorialPublishing geoprocessing-services-tutorial
Publishing geoprocessing-services-tutorialSebastian Correa Gimenez
 
Executing tools-in-modelbuilder-tutorial
Executing tools-in-modelbuilder-tutorialExecuting tools-in-modelbuilder-tutorial
Executing tools-in-modelbuilder-tutorialaskar_gila
 
Basic commands of ArcGIS
Basic commands of ArcGISBasic commands of ArcGIS
Basic commands of ArcGISKU Leuven
 
Cis407 a ilab 3 web application development devry university
Cis407 a ilab 3 web application development devry universityCis407 a ilab 3 web application development devry university
Cis407 a ilab 3 web application development devry universitylhkslkdh89009
 
Getting started with code composer studio v3.3 for tms320 f2812
Getting started with code composer studio v3.3 for tms320 f2812Getting started with code composer studio v3.3 for tms320 f2812
Getting started with code composer studio v3.3 for tms320 f2812Pantech ProLabs India Pvt Ltd
 
Getting Started with the Ribbon library - MUGUKI User Group Meeting 2016
Getting Started with the Ribbon library - MUGUKI User Group Meeting 2016Getting Started with the Ribbon library - MUGUKI User Group Meeting 2016
Getting Started with the Ribbon library - MUGUKI User Group Meeting 2016Peter Horsbøll Møller
 
A. Lab # BSBA BIS245A-7B. Lab 7 of 7 Database Navigation.docx
A. Lab #  BSBA BIS245A-7B. Lab 7 of 7  Database Navigation.docxA. Lab #  BSBA BIS245A-7B. Lab 7 of 7  Database Navigation.docx
A. Lab # BSBA BIS245A-7B. Lab 7 of 7 Database Navigation.docxransayo
 
My First Report slide support
My First Report slide supportMy First Report slide support
My First Report slide supportSpagoWorld
 
Solid Modeling Assignment EGR 201-100 Spring 2018 .docx
Solid Modeling Assignment EGR 201-100 Spring 2018 .docxSolid Modeling Assignment EGR 201-100 Spring 2018 .docx
Solid Modeling Assignment EGR 201-100 Spring 2018 .docxwhitneyleman54422
 
Fr net programmermanual-en
Fr net programmermanual-enFr net programmermanual-en
Fr net programmermanual-enMorenita Batista
 
IntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfIntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfDavid Harrison
 
IntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfIntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfDavid Harrison
 
First steps with Scilab
First steps with ScilabFirst steps with Scilab
First steps with ScilabScilab
 

Similar to Intro to ArcGIS ModelBuilder (20)

Publishing geoprocessing-services-tutorial
Publishing geoprocessing-services-tutorialPublishing geoprocessing-services-tutorial
Publishing geoprocessing-services-tutorial
 
Executing tools-in-modelbuilder-tutorial
Executing tools-in-modelbuilder-tutorialExecuting tools-in-modelbuilder-tutorial
Executing tools-in-modelbuilder-tutorial
 
Basic commands of ArcGIS
Basic commands of ArcGISBasic commands of ArcGIS
Basic commands of ArcGIS
 
Cis407 a ilab 3 web application development devry university
Cis407 a ilab 3 web application development devry universityCis407 a ilab 3 web application development devry university
Cis407 a ilab 3 web application development devry university
 
Getting started with code composer studio v3.3 for tms320 f2812
Getting started with code composer studio v3.3 for tms320 f2812Getting started with code composer studio v3.3 for tms320 f2812
Getting started with code composer studio v3.3 for tms320 f2812
 
Orcad Capture - Schematic Design Tutorial
Orcad Capture - Schematic Design TutorialOrcad Capture - Schematic Design Tutorial
Orcad Capture - Schematic Design Tutorial
 
Mca 504 dotnet_unit5
Mca 504 dotnet_unit5Mca 504 dotnet_unit5
Mca 504 dotnet_unit5
 
Orcad layout
Orcad layoutOrcad layout
Orcad layout
 
Getting Started with the Ribbon library - MUGUKI User Group Meeting 2016
Getting Started with the Ribbon library - MUGUKI User Group Meeting 2016Getting Started with the Ribbon library - MUGUKI User Group Meeting 2016
Getting Started with the Ribbon library - MUGUKI User Group Meeting 2016
 
Pruexx User's guide for beta testing
Pruexx User's guide for beta testingPruexx User's guide for beta testing
Pruexx User's guide for beta testing
 
A. Lab # BSBA BIS245A-7B. Lab 7 of 7 Database Navigation.docx
A. Lab #  BSBA BIS245A-7B. Lab 7 of 7  Database Navigation.docxA. Lab #  BSBA BIS245A-7B. Lab 7 of 7  Database Navigation.docx
A. Lab # BSBA BIS245A-7B. Lab 7 of 7 Database Navigation.docx
 
My First Report slide support
My First Report slide supportMy First Report slide support
My First Report slide support
 
Solid Modeling Assignment EGR 201-100 Spring 2018 .docx
Solid Modeling Assignment EGR 201-100 Spring 2018 .docxSolid Modeling Assignment EGR 201-100 Spring 2018 .docx
Solid Modeling Assignment EGR 201-100 Spring 2018 .docx
 
GIS Modeling
GIS ModelingGIS Modeling
GIS Modeling
 
Ex32018.pdf
Ex32018.pdfEx32018.pdf
Ex32018.pdf
 
Fr net programmermanual-en
Fr net programmermanual-enFr net programmermanual-en
Fr net programmermanual-en
 
Photoshop by Shannon
Photoshop by ShannonPhotoshop by Shannon
Photoshop by Shannon
 
IntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfIntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdf
 
IntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdfIntoTheNebulaArticle.pdf
IntoTheNebulaArticle.pdf
 
First steps with Scilab
First steps with ScilabFirst steps with Scilab
First steps with Scilab
 

More from DUSPviz

Intro to Microsoft Access
Intro to Microsoft AccessIntro to Microsoft Access
Intro to Microsoft AccessDUSPviz
 
Intro to Adobe Photoshop
Intro to Adobe PhotoshopIntro to Adobe Photoshop
Intro to Adobe PhotoshopDUSPviz
 
Intro to AutoCAD
Intro to AutoCADIntro to AutoCAD
Intro to AutoCADDUSPviz
 
Google Fusion Tables
Google Fusion TablesGoogle Fusion Tables
Google Fusion TablesDUSPviz
 
Habits of Effective Designers - Handout
Habits of Effective Designers - HandoutHabits of Effective Designers - Handout
Habits of Effective Designers - HandoutDUSPviz
 
Habits of Effective Designers
Habits of Effective DesignersHabits of Effective Designers
Habits of Effective DesignersDUSPviz
 
Intro to Adobe Photoshop
Intro to Adobe PhotoshopIntro to Adobe Photoshop
Intro to Adobe PhotoshopDUSPviz
 
Introduction to InDesign
Introduction to InDesignIntroduction to InDesign
Introduction to InDesignDUSPviz
 
Python Programming for ArcGIS: Part II
Python Programming for ArcGIS: Part IIPython Programming for ArcGIS: Part II
Python Programming for ArcGIS: Part IIDUSPviz
 
Python Programming for ArcGIS: Part I
Python Programming for ArcGIS: Part IPython Programming for ArcGIS: Part I
Python Programming for ArcGIS: Part IDUSPviz
 
The DUSP GIS Data Drive
The DUSP GIS Data DriveThe DUSP GIS Data Drive
The DUSP GIS Data DriveDUSPviz
 
GIS Orientation 2015
GIS Orientation 2015GIS Orientation 2015
GIS Orientation 2015DUSPviz
 
Setting up your DUSP ArcGIS Environment
Setting up your DUSP ArcGIS EnvironmentSetting up your DUSP ArcGIS Environment
Setting up your DUSP ArcGIS EnvironmentDUSPviz
 
AFS Connection Instructions
AFS Connection InstructionsAFS Connection Instructions
AFS Connection InstructionsDUSPviz
 
DUSPviz Rhino 3D Workshop
DUSPviz Rhino 3D WorkshopDUSPviz Rhino 3D Workshop
DUSPviz Rhino 3D WorkshopDUSPviz
 
Drawing for planners_ivanov
Drawing for planners_ivanovDrawing for planners_ivanov
Drawing for planners_ivanovDUSPviz
 
Review presentation for Orientation 2014
Review presentation for Orientation 2014Review presentation for Orientation 2014
Review presentation for Orientation 2014DUSPviz
 
Art of-presentations
Art of-presentationsArt of-presentations
Art of-presentationsDUSPviz
 
Easy Steps to Better Maps
Easy Steps to Better MapsEasy Steps to Better Maps
Easy Steps to Better MapsDUSPviz
 
Video Production
Video ProductionVideo Production
Video ProductionDUSPviz
 

More from DUSPviz (20)

Intro to Microsoft Access
Intro to Microsoft AccessIntro to Microsoft Access
Intro to Microsoft Access
 
Intro to Adobe Photoshop
Intro to Adobe PhotoshopIntro to Adobe Photoshop
Intro to Adobe Photoshop
 
Intro to AutoCAD
Intro to AutoCADIntro to AutoCAD
Intro to AutoCAD
 
Google Fusion Tables
Google Fusion TablesGoogle Fusion Tables
Google Fusion Tables
 
Habits of Effective Designers - Handout
Habits of Effective Designers - HandoutHabits of Effective Designers - Handout
Habits of Effective Designers - Handout
 
Habits of Effective Designers
Habits of Effective DesignersHabits of Effective Designers
Habits of Effective Designers
 
Intro to Adobe Photoshop
Intro to Adobe PhotoshopIntro to Adobe Photoshop
Intro to Adobe Photoshop
 
Introduction to InDesign
Introduction to InDesignIntroduction to InDesign
Introduction to InDesign
 
Python Programming for ArcGIS: Part II
Python Programming for ArcGIS: Part IIPython Programming for ArcGIS: Part II
Python Programming for ArcGIS: Part II
 
Python Programming for ArcGIS: Part I
Python Programming for ArcGIS: Part IPython Programming for ArcGIS: Part I
Python Programming for ArcGIS: Part I
 
The DUSP GIS Data Drive
The DUSP GIS Data DriveThe DUSP GIS Data Drive
The DUSP GIS Data Drive
 
GIS Orientation 2015
GIS Orientation 2015GIS Orientation 2015
GIS Orientation 2015
 
Setting up your DUSP ArcGIS Environment
Setting up your DUSP ArcGIS EnvironmentSetting up your DUSP ArcGIS Environment
Setting up your DUSP ArcGIS Environment
 
AFS Connection Instructions
AFS Connection InstructionsAFS Connection Instructions
AFS Connection Instructions
 
DUSPviz Rhino 3D Workshop
DUSPviz Rhino 3D WorkshopDUSPviz Rhino 3D Workshop
DUSPviz Rhino 3D Workshop
 
Drawing for planners_ivanov
Drawing for planners_ivanovDrawing for planners_ivanov
Drawing for planners_ivanov
 
Review presentation for Orientation 2014
Review presentation for Orientation 2014Review presentation for Orientation 2014
Review presentation for Orientation 2014
 
Art of-presentations
Art of-presentationsArt of-presentations
Art of-presentations
 
Easy Steps to Better Maps
Easy Steps to Better MapsEasy Steps to Better Maps
Easy Steps to Better Maps
 
Video Production
Video ProductionVideo Production
Video Production
 

Recently uploaded

1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfJohn Sterrett
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...ThinkInnovation
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfLars Albertsson
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxFurkanTasci3
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdfHuman37
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024thyngster
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改atducpo
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...soniya singh
 

Recently uploaded (20)

1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
DBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdfDBA Basics: Getting Started with Performance Tuning.pdf
DBA Basics: Getting Started with Performance Tuning.pdf
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
Predictive Analysis - Using Insight-informed Data to Determine Factors Drivin...
 
Schema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdfSchema on read is obsolete. Welcome metaprogramming..pdf
Schema on read is obsolete. Welcome metaprogramming..pdf
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
Data Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptxData Science Jobs and Salaries Analysis.pptx
Data Science Jobs and Salaries Analysis.pptx
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 
20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf20240419 - Measurecamp Amsterdam - SAM.pdf
20240419 - Measurecamp Amsterdam - SAM.pdf
 
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
(PARI) Call Girls Wanowrie ( 7001035870 ) HI-Fi Pune Escorts Service
 
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
Consent & Privacy Signals on Google *Pixels* - MeasureCamp Amsterdam 2024
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
代办国外大学文凭《原版美国UCLA文凭证书》加州大学洛杉矶分校毕业证制作成绩单修改
 
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
High Class Call Girls Noida Sector 39 Aarushi 🔝8264348440🔝 Independent Escort...
 
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
Deep Generative Learning for All - The Gen AI Hype (Spring 2024)
 

Intro to ArcGIS ModelBuilder

  • 1. Intro to ArcGIS ModelBuilder Created for DUSPViz by Luke Mich | Spring 2016
  • 2. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 2 What is ModelBuilder? ModelBuilder is part of the ESRI ArcGIS suite. Accessible from either ArcMap or ArcCatalog, ModelBuilder allows you to combine a series of geoprocessing tools in a flowchart-style visual model in order to streamline iterative mapping processes. In this tutorial, we’ll use ModelBuilder to create a buffer around a feature and use that buffer to clip another feature.
  • 3. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 3 Getting Started Let’s begin by extracting the files from the zipped folder and opening the ModelBuilder_Tutorial.mxd map file in ArcMap. We see that the features we have loaded are the boundaries of Massachusetts and the Boston Metro Area as well as the state parks and rivers in and around Boston. Let’s say you’re interested in finding all the rivers located within one mile of Boston metro area state parks. We can use model builder to create a buffer around the state parks and use that to clip the rivers.
  • 4. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 4 Using the ArcCatalog Window Open the ArcCatalog Window in ArcMap, either by clicking on the tab docked on the left side of the screen, or going to Windows>ArcCatalog. Go ahead and pin it open by clicking on the thumbtack icon in the top right corner of the window. We’ll do most of our model-building work by pulling files and processes from this window.
  • 5. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 5 Creating a New Toolbox All ModelBuilder models need to be saved in a Toolbox (.tbx) file. Expand “Toolboxes” in the ArcCatalog window. If we expand “System Toolboxes” we’ll see all of ArcGIS’s built-in functions. However, attempting to expand “My Toolboxes” reveals that we don’t have any. We could create a toolbox here, but it will be saved into our default geodatabase, which is probably located in Documents>ArcGIS. Instead, let’s create a new toolbox in our current working folder by right clicking on the “Home” folder and selecting New>Toolbox.
  • 6. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 6 Creating a New Model You can rename the Toolbox.tbx file if you want. Then, right-click on the toolbox and select New>Model. This will automatically open the ModelBuilder window. We can use this window to organize our input files and the processes we want to use. Let’s close this window for now so we can rename our model. Right-click on the model you just created, and select Rename. Let’s call our model “CliptoBuffer” since that’s what the model does (it’s good practice to give your models and your toolboxes descriptive names when you can).
  • 7. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 7 Opening the Model You’ll notice that if you double-click our model (or right-click and select Open) that a different window pops up than before, stating that “This tool has no parameters.” This is the dialog box for our model. Later, we’ll use this to enter in certain parameters (such as input files or geoprocessing properties) to run our model. For now, let’s close this window.
  • 8. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 8 Editing the Model - adding a file Right-click on the CliptoBuffer model and select Edit. Now we can start adding files and processes to the model. We can do this by selecting Insert>Add Data or Tool from the menu, clicking the Add Data button (plus sign in a yellow diamond) in the menu toolbar, or by dragging and dropping. Let’s start by adding the file to create the buffer around. Click and drag the Bos_StateParks.shp file from the Home folder in the ArcCatalog window to the ModelBuilder window.
  • 9. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 9 Editing the Model - adding the buffer tool Now let’s add the buffer tool. Expand the System Toolboxes in the ArcCatalog window, then select Analysis Tools>Proximity>Buffer and drag it into the ModelBuilder window. Great! Now we have an input file and a tool. Next we’ll tell ModelBuilder to use the input file when running the tool.
  • 10. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 10 Editing the Model - connecting the file and tool Great! Now we can link the input file to the buffer tool. Click the Connect button (small blue square and green square connected with a line) to bring up the magic wand tool. Then click and drag a connection arrow from the Bos_StateParks.shp file to the buffer tool and select Input Features from the pop-up window.
  • 11. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 11 Editing the Model - adjusting the buffer properties Next, using the Select tool (the black arrow) from the menu toolbar, double click the Buffer tool to edit the tool properties. The Input Features are already set from the last step. Now let’s set the Output Features to save our buffer as StatePark_Buffer.shp in our Home folder (ModelBuilder Tutorial). Next, set the Distance to 1 Mile and set the Dissolve Type to ALL to remove any overlaps. Click OK, and the buffer tool will turn yellow indicating it’s ready to run. Next we’ll add the clipping process.
  • 12. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 12 Editing the Model - adding the clipping components Repeat the steps above to add the Bos_Rivers.shp file and the Clip tool (Analysis Tools>Extract>Clip) to the ModelBuilder window.
  • 13. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 13 Editing the Model - connecting the input feature Connect the Bos_Rivers.shp file to the clip tool using the Connect Button (magic wand) and select Input Features, as this will be the item that we want to clip.
  • 14. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 14 Editing the Model - connecting the clip feature Repeat the connection process for the StatePark_Buffer.shp file, but select Clip Features as this will be the file we use to clip the rivers.
  • 15. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 15 Editing the Model - adjusting the clip tool properties Using the Select tool (black arrow), double click on the Clip tool to change the properties. Again, the Input Features and Clip Features. We’ll just need to set our Output Feature to save in the correct location. Let’s name it Rivers_StateParks_Clip.shp and save it in the ModelBuilder Tutorial folder.
  • 16. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 16 Editing the Model - adjusting the layout, saving the output By clicking the Auto Layout button in the menu toolbar, ModelBuilder will rearrange our model to clean it up. This will come in handy as we start adding additional files and tools.
  • 17. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 17 Testing the Model Okay, so now we have a model that takes our State Parks file, creates a 1-mile buffer, and uses that buffer to clip our Rivers file. We can run the file from the ModelBuilder window to make sure our output is created correctly. Click the Run button (the blue “play” symbol) in the menu toolbar to cycle through our model. Once the process is completed, you can close the Run dialog box. If the Run fails, the text in the dialog box will explain why.
  • 18. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 18 Testing the Model - viewing the results The StatePark_Buffer.shp and Rivers_StatePark_Clip.shp files have been added to our Home folder in the ArcCatalog window. Close the ModelBuilder window (don’t forget to save!) and drag our new files over to our map (we can also add them automatically by right-clicking the output components in the ModelBuilder window and selecting Add to Display prior to running). Adjust your Table of Contents panel to match mine. The model worked! Next, we’ll adjust the model to allow users to select their own files and tool parameters.
  • 19. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 19 Resetting the Model Next, remove our buffer and clip output files from the map document and delete them from the ArcCatalog window. This way there won’t be any conflicts when we try to save over them in future steps. Also, you’ll notice that several components now have drop shadows indicating that the model has been run. If we were to attempt to run it again from within the ModelBuilder window, it would tell us the process has already been completed (even after we delete the output files). To reset, click Model>Validate Entire Model.
  • 20. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 20 Creating Parameters - input files Right-click the Bos_StateParks.shp component and select Model Parameter. This will allow anyone who uses our CliptoBuffer tool to select the file around which they’d like to create a buffer. Do the same for the Bos_StateParks.shp to allow them to select the feature they’d like to clip.
  • 21. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 21 Creating Parameters - renaming files You’ll see that the letter “P” has appeared next to each of our input components, indicating that they are now model parameters. Next, right-click the Bos_StateParks.shp component and select Rename. This will set the name for the prompt users will see in the dialog box. Let’s call it “Buffer Input.” We’ll do the same thing for the Bos_Rivers.shp component and call it “Clip Input.”
  • 22. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 22 Creating Parameters - tool variables Now we can create model parameters for our tools. This will allow users to change various settings when they run our model. Right-click on the Buffer tool and select Make Variable> From Parameter>Distance to let users enter the buffer distance they want to use. Once it’s been added, right-click and select Make Variable. Repeat this step for the Dissolve Type parameter. There aren’t any parameters we need users to adjust on the Clip tool, so we’ll leave it alone for now. Once you’ve added the parameter variables, click Auto Layout.
  • 23. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 23 Parsing Paths - inserting the parse paths tool Right now, our model is set up to save our output file as Rivers_StatePark_Clip.shp. This won’t make much sense if someone chooses to use different files for the inputs. We could double-click on the output component and change it’s name to take the names of the input files as variables, but first we need to parse the paths, which means pulling just the file name from the full file path (if we don’t, the model won’t run correctly). Select Insert>Model Only Tools>Parse Path to bring in the tool.
  • 24. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 24 Parsing Paths - connecting the tool, renaming the outputs Drag the Parse Paths tool near the Buffer Input component, and connect the two with the Connection tool (select Input Data Element). Next, right click on the Value component with the Selector tool (black arrow) and rename the component something more descriptive (such as Buffer Input Name). Repeat the same steps to bring in a Parse Path tool for the Clip Input. Then click Auto Layout to clean up the model.
  • 25. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 25 Parsing Paths - adjusting the tool settings Now double-click on the Parse Path tool connected to the Buffer Input component to change its settings. Select Name from the Parse Type drop-down menu to save only the portion of the filename before the “.shp” as a value. Repeat this step for the Parse Path (2) tool connected to the Clip Input component.
  • 26. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 26 Renaming the Output File Double-click on the Rivers_StatePark_Clip.shp output file component to rename it. We’ll use the “%” symbol to indicate that the filename should be based on the filenames of our inputs. Type in the parsed filenames from the inputs, surround each with % symbols and separate them with an underscore: “%Buffer Input Name%_%Clip Input Name%”. Be sure to type everything just as you did when you named the variables - including spaces. We can repeat a similar process for the intermediate Buffer output component if we want.
  • 27. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 27 Closing the ModelBuilder Window Great! Make sure all of our components are named correctly, click Auto Layout one last time, then Save and Close the ModelBuilder window. We won’t run our model from here. Instead we’ll use the model’s dialog box to select our parameters. But first, let’s add some metadata.
  • 28. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 28 Adding Metadata Metadata provides information about the files and tools you use in ArcGIS. Since we’ve just created a model that we might share with others, it’s good practice to add metadata to explain what our tool does. Right-click on the CliptoBuffer model in the ArcCatalog window and select Item Description. In the pop up window, click Edit at the top, and add some keyword tags and a short description. We can also add descriptions of specific variables and creation credits. Then save and close this window.
  • 29. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 29 Running the Model Double-click on the CliptoBuffer model from the ArcCatalog window to bring up the model’s dialog box. Now it looks like the dialog box we expect to see when we open any other geoprocessing tool from ArcToolbox (including our newly added metadata). Since we built the model using the specific files we’re interested in analyzing, everything is already set, but we could navigate to other files on our computer to use those as inputs instead. Click OK to run the model.
  • 30. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 30 Viewing the Results Once the model has run, we can close the run dialog box and bring our resulting output files into the map to review. It looks great! In the future, not only can we add other geoprocessing tools to our model if we wish, we can also automate other tasks, such as saving the outputs in various folders, deleting intermediate data (like our buffer output), and loading the outputs directly into our open map document. You can explore more advanced ModelBuilder options on the ESRI website (or your favorite search engine).
  • 31. Intro to ModelBuilder | DUSPViz | Spring 2016 | Page 31 Exporting to Python ModelBuilder is a great tool for automating our geoprocessing work, but it can be a bit limited and clunky if we want to do more complicated tasks. This is where Python scripting comes in. We’ll learn more about what Python is and how to use it in a different session, but for now, let’s simply export our CliptoBuffer model as a Python script. Right-click on our CliptoBuffer model from the ArcCatalog window and select Edit. Then, in the ModelBuilder window menu, select Model>Export>To Python Script. Save the script as CliptoBuffer.py.