Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [modelbuilder]

An application of ArcGIS Pro and also of ArcGIS Desktop 10.x that is used to create, edit and manage models within its Geoprocessing Framework

7
votes
2answers
3k views

Does Calculate Value (Model Only Tool) work correctly in tools run in Batch?

Am I correct that if my model has a model-only tool (Calculate Value), and then I run the model as a batched process, it will not run the Calculate Value expression? I wrote a model to upload, ...
10
votes
2answers
26k views

Extracting by Attribute Using ModelBuilder with User Input?

Using ModelBuilder, I want to create a tool that will let a user choose the value or values that will be used to extract a shapefile. I have a parcel layer with a "Parcel_Type" field. I want the user ...
3
votes
1answer
4k views

Iterating through columns in table using ModelBuilder?

I am unable to find any info on how to use ModelBuilder to run a certain spatial analysis function on each column in a table. I have a table to sample locations and at each location there are a ...
10
votes
6answers
13k views

Moving / offsetting point locations using ArcPy or ModelBuilder?

I have a number non-georeferenced CAD layers (see this question) that have text annotation features. I have created a model to convert the text to points, but after converting the annotation to a ...
7
votes
3answers
17k views

Removing spatially duplicate features using ModelBuilder?

I am creating a model to remove features which are duplicated within a polygon feature class. Most of the features are duplicated once, but about a quarter have up to three or four exact copies. I do ...
11
votes
2answers
10k views

Exporting data from Collect Values output in ArcGIS ModelBuilder?

I'm currently playing with ModelBuilder. I've added a picture of the model I have at the moment. This model is currently iterating 6 shapefiles, so each of the 'output values' contain 6 figures in a ...
11
votes
2answers
8k views

Finding differences between shapefiles using ArcGIS for Desktop?

Every month I have to QA/QC some streets data for an entire county (over 47,000 records). The first step is to compare the two files. Currently, I'm using a tool that was created in house via VBA ...
11
votes
3answers
2k views

Adding arbitrary code to ArcGIS ModelBuilder?

Is there any way to add arbitrary code snippets to an ArcGIS model? I envision something similar to the "show code block" the expression builder in advanced labelling or field calculator. For ...
7
votes
2answers
11k views

Batch Clip in ModelBuilder of ArcGIS for Desktop?

I have multiple rasters and feature classes that I want to clip to a study area. I am pretty new to ModelBuilder. I know you can right click the clip tool to batch clip outside of ModelBuilder but ...
3
votes
5answers
14k views

ModelBuilder not adding output feature class to Table of Contents?

I'm trying to create a tool in ModelBuilder that will take a new point from a user, create a feature class for this point and display it on a map. What I've done is: I've created a feature class for ...
2
votes
3answers
626 views

Determining features which are Near By Group using ArcGIS Desktop?

I have two polyline layers with corresponding attributes. Each layer has 100,000+ rows. I need to calculate the distance between the corresponding features from each layer. E.g. Layer 1: FID | ...
33
votes
6answers
2k views

Sharing Open Source Python/ArcPy Code and Models for ArcGIS Desktop?

I will be writing scripts for ArcGIS Desktop in Python with ArcPy. Is there a community or open source project where code and models can be shared?
15
votes
5answers
2k views

Applying version control to ArcGIS Models

Version control is an indispensable tool for software development, allowing one to reliably and cleanly step back in time to the last time X did it's job exactly right, or to see what changed between ...
2
votes
3answers
2k views

How to Iterate through Bands of Raster using ArcGIS 10.1 ModelBuilder?

I have a large number of rasters with 3 bands (R,G,B). What I want to do is add all 3 bands of each raster together to end up with a single band image with the summed R,G,B values in each pixel but I'...
7
votes
6answers
18k views

Search if field exists in feature class

I have a few dozen feature classes, one of which contains the field I am looking for. They are stored in several different file geodatabases. Is there a quick way of searching each feature class to ...
3
votes
1answer
3k views

Debugging ERROR 000728: Field *fieldname* does not exist within table even though field exists?

I do some script for a shapefile's table. And this script works for 2 fields and do not for other ones, because of: ERROR 000728: Field FID_158_01 does not exist within table But this field is ...
5
votes
2answers
4k views

Using ArcGIS ModelBuilder to perform In-line variable substitution for input data path? [duplicate]

Does anyone know how/if you can use in-line variable substitution for an input path name in ModelBuilder for ArcGIS 10? I used "get field value" to retrieve a code from one feature class, and I ...
4
votes
2answers
1k views

Automatically emailing interim results from ModelBuilder?

I want to get ModelBuilder to email me the results of processes at certain stages so that if there are issues I can remotely login and deal with them as I do with python scripts. I have a python based ...
3
votes
3answers
5k views

Using Feature Class “Name” from Iterate Feature Classes to Calculate Field with ModelBuilder?

I am using ArcGIS 10.1 for Desktop. My goal is to create shapefile that contains merged feature classes from a geodatabase. I would like for there to be a new field in the resulting shapefile that ...
9
votes
1answer
4k views

Passing variable from ArcPy script to ModelBuilder?

I have a model that passes a variable to a python script. The script uses that variable to query some directories and return a list of paths. What I want to know is: How can I then use each of those ...
4
votes
1answer
5k views

Using count points in polygon tool in ModelBuilder?

I have two layers: one point and one polygon grid layer. Trying to count the number of points in each grid polygon and have it become an attribute in the polygon layer. Currently using ArcGIS 10 with ...
4
votes
1answer
3k views

Pass a variable from Modelbuilder into a Python script

I'm new to modelbuilder and python. I have used modelbuilder to iterate through all rows in a shapefile (Points), process them, and produce a seperate output shapefile for each row. The filename is ...
3
votes
1answer
1k views

How to separate raster bands in ModelBuilder?

I have a simple model that iterates through folders to collect imagery, mosaics them and clips the mosaic to a study area boundary. I need to produce an NDVI from the clipped 4-band mosaic "...
3
votes
1answer
649 views

Specifying LAS dataset filters in ArcGIS ModelBuilder?

I'm trying to create a tool in the ArcMap ModelBuilder to extract a canopy height raster from LiDAR data. I need to create rasters for ground elevation and first return. I've got my LAS dataset, and ...
3
votes
2answers
7k views

Using Value from Iterate Feature Selection to Calculate Field in ArcMap 10.1 ModelBuilder

I have two polygon feature classes, an alignment layer and a parcels layer. I am trying to use ModelBuilder to create a tool that will do the follow: iterate through groups in a single field of a ...
2
votes
2answers
3k views

Using gdal functions from OSGeo4W out of their shell?

I would like to use some gdal functions from OSGeo4W (gdal2xyz, and gdal_merge) for my work. I can use them in the OsGeo4W shell provided after installing the package. But I want to use them in ...
9
votes
3answers
9k views

Why is it important to use feature layers in ModelBuilder?

I am trying to understand creation of a geoprocess with ModelBuilder, but I don't know why it's important to use feature layers instead of feature classes when creating a geoprocess with ModelBuilder. ...
9
votes
1answer
4k views

Generating multivalue choice list in ArcGIS using Tool Validation without using Frequency?

I'm trying to adapt a model and script combination found on ESRI's blog site titled 'Generating a multivalue choice list'. However, I've concluded that part of the validation used in the embedded ...
5
votes
1answer
2k views

Stop ArcGIS model until all values are collected and then merge?

This is similar to Using If precondition is false, continue iterating next input in ModelBuilder? but I want the iterate tool to run to collect all the values and only then continue to the merge. Any ...
4
votes
1answer
2k views

How to prevent running part of a model when iterator is used?

My process is to run Buffer on two feature layers, intersect the buffers and then Clip intersected buffers with polygon object from Iterate Feature Selection iterator. Here's my model: The model runs ...
4
votes
2answers
2k views

Specifying pixel depth in ModelBuilder?

I have a simple model that calculates the NDVI from bands 3 and 4 of a raster dataset. The input bands are 8-bit unsigned, whereas the default output NDVI is signed 32 bit. How can I specify the ...
4
votes
1answer
962 views

Raster Calculator dynamic map algebra expression

Is it possible to dynamically construct a Map Algebra expression that is dependent on the output of another tool, either using model builder or arcpy? For example, say I have a model that performs a ...
2
votes
1answer
90 views

Automated mapping of cost paths from multiple origin points

I am currently mapping Lahar flows on Montserrat Island (as many have done before!). I have the Cost Distance analysis below, the circle is the origin and the triangle the destination. With a known ...
2
votes
1answer
848 views

Relative paths not working in model builder

I checked "Store relative path names" in my model, but ArcGIS seems to ignore the settings - the paths are always the same as on my computer. Plus, the "Store relative path names" unchecks ...
8
votes
1answer
1k views

Using wildcard to Append multiple feature classes in ModelBuilder?

I have a folder of shapefiles and each one starts with a code. There are multiple shapefiles that start with each code, and I would like to create a model in ModelBuilder that will select the ...
7
votes
4answers
612 views

Do you use a proven workflow to edit and document ArcGIS ModelBuilder models?

Do you have any reference to best practice examples , or can you share your expertise on how to keep track of edits to ModelBuilder models , track changes between model/tool versions and maintain ...
6
votes
1answer
2k views

Creating generic tool with ModelBuilder in ArcGIS Desktop?

We are working on the creation of a tool with ModelBuilder in ArcGIS Desktop 10.1. We want to build a generic tool that can be launched from any computer. In order to do so, we have set the input ...
5
votes
2answers
1k views

Compound variables in Model Builder?

I'm trying to create a model wherein one of the parameters is a compound variable, that is made of multiple variables joined together. How can this be done? For example: create an insider buffer ...
4
votes
1answer
4k views

If statement in ModelBuilder to check if field exists

I'm trying to create the following in ModelBuilder: Set input feature class if field1 exists execute the processes in branch1 else add field1 execute the processes in branch2 ...
3
votes
2answers
2k views

Populate cross street name at intersections

Just a follow up of an older post seen here: Python script/Model to populate cross street names at intersections I need to create a shapefile of Road segments with a "To_Road/s" and "From_Road/s" as ...
3
votes
2answers
3k views

How to create a folder in HOME Folder with ModelBuilder in ArcGis 10?

I am just getting started with ModelBuilder and I would like to create a folder in the same folder where the respective mxd is located. The tool have to be usable in different projects, so setting ...
2
votes
1answer
6k views

How to merge output shapefiles in model builder

I have a layer with several polygons and a road map. I need to take each polygon and use it to clip the road map, dissolve all of the road records into one, and then merge the polygons into one ...
2
votes
2answers
7k views

Joining Fields from Multiple Tables to One Table in ModelBuilder?

I have 40 tables with about 2000 row with a shared ID that I want to merge into 1 table with 2000 rows. I only want to retain a distance field calculated within each table. The distance field is ...
1
vote
1answer
157 views

Fixing Model with Iterate selected feature?

I have a Shapefile with point features representing pour points. I need to delineate their watersheds individually, because many of them overlap. I'm using the following model to select a point from ...
0
votes
2answers
54 views

Using Append Parameter in the Add Locations Network Analyst Tool in ModelBuilder?

I am trying to get ModelBuilder to create a route for each row in a csv file. Each row has one start and stop locations (Point A and Point B). I need to add both start and stop locations to a network ...
5
votes
1answer
632 views

Using Collect Values Tool with Union in ModelBuilder?

I would like to feed a list of feature classes (only one polygon per feature class, but up to 150 feature classes) into the Union tool in ModelBuilder by using a Feature Class Iterator and the Collect ...
4
votes
2answers
2k views

Arcpy remove invalid character

I've built a model that takes the name of the Excel worksheet containing xy data, and uses that name as the name of the output shapefile. ( Worksheet "massachusetts_sightings" in an xlsx becomes "...
4
votes
1answer
2k views

Using only part of inline variable substitution string in ModelBuilder?

I am using an inline variable substiution to alter a field name. I do this within an iteration model in model builder. The inline variable is the name of the feature class which I use as my input for ...
3
votes
1answer
845 views

Using Python script as precondition in ArcGIS ModelBuilder?

I have a model that has two preconditions, in which I need to figure out if there is a way to prioritize one precondition to 'run' prior to the second. Is anyone aware of any built-in ability to do so ...
3
votes
2answers
144 views

Unexpected result using ModelBuilder in batch?

I am running a model which I created with ModelBuilder at 10.3. The model is supposed to make a selection by attribute on a feature layer, and use that layer to clip a raster. The model is working ...