Friday, 25 May 2018

arcgis 10.0 - 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: Model with iterator
The model runs Buffers and Intersect firstly, then iterate and create Single Object, and lastly Clip features. But in the next iteration it again runs Buffers and Intersect, what is not needed.


Is it possible to prevent running Buffers and Intersect in each iteration?
In other words, how to create Intersected buffers only once and then reuse it in each iteration?




EDIT:
Following blah's suggestion I managed to create desirable model. I enclose it, because it's slightly different than web-help example: enter image description here



Answer



Nest the iterated part in a sub-model. See the "Advanced Use of Model Iterators" section under Integrating a model within a model in the help.


Related question: Exporting data from Collect Values output in ArcGIS ModelBuilder?



No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...