1

I would like to run two iterations. One assigning the respective attributes from the polygon file containing the cols and rows. And after that iteration another iteration that selects all of those attributes with the same name and saves them in a separate SHP file. However I have not been able to nest one iteration at the end of another iteration process?

Supposed parent iteration model:

enter image description here

The supposed sub model that should use the result of the parent model:

enter image description here

I haven't been able yet to find a way to connect them together, or to transfer the name of the main model's resulting file to the sub model's iteration.

1 Answer 1

2

In the second model, right-click on 'FeatureClass_SpatialJoin' and choose 'Model Parameter' to make this item into an input parameter for the model (it will then get a little 'P' next to it). Then save and close the model.

Now embed this second model within the first model - just drag the second model from the Catalog view into the first model's edit window. Then connect the output of your Spatial Join to the parameter of the second model. Ie, drag the connection to the second model itself, and choose the parameter from the pop-up list that appears.

You are already doing the right thing by having the two iterators in separate models. It's not possible to have more than one iterator in a single model, and this is ESRI's recommended way for using multiple iterators.

1
  • Thanks a million, that solved it! :) Only thing I had to struggle with for a short moment was that I needed to connect the Spatial Join result to the submodel directly. Connecting it to the parameter bubble that pops up when inserting the sub model doesn't work.
    – Brief
    Commented Sep 4, 2018 at 2:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.