Hi
I'm developing a model which uses the select data tool and am trying to find a way to use this to iterate through a feature dataset. I'm stuck because the child data element does not seem to accept a variable such as %Name% only accepting a single feature class in the feature dataset.
Is there a simple way of performing this procedure or is it not possible to do this?
I've attached a jpg of the model to this message which hopefully shows what I am trying to do - iterate through a feature dataset to
a) select adjacent polygons
b) merge the adjacent polygons to the original feature class
The %name% variable is used so that the same feature class is selected for each iteration.
Hopefully someone can help!
Thanks
Solved! Go to Solution.
The iterate feature classes tool iterates though feature classes in a workspace. It sounds like you want iterate feature selection.
The iterate feature classes tool iterates though feature classes in a workspace. It sounds like you want iterate feature selection.
You will probably find this useful also: selecting adjacent features within a layer...
One thing that you need to realize about model iteration is that the entire model is iterated. If you want use iterators to create a list and merge, you need to do that in a submodel. The submodel would have an iterator in it and use Collect Values to create a multivalue that would be returned as a parameter to Merge in the parent model. This is the only way to nest iteration in ModelBuilder.
Desktop 10.3 Help: Integration a model within a model > Advanced use of Model iterators