4

I had posted this on the ArcGIS forums, but thought I may get some further input here.

Having issues acquiring the appropriate input and erase features during the iteration process.

Please see below linked ModelBuilder image. The model is currently not functional as the inner nested model does not currently send each erase feature class to the Erase function. It merely iterates all of them and then sends the last feature iteration class to the outer model. Hence if I run the model on the three files with the wildcard 040112 and three dates with wildcard 100111 (both recursively through folders), I get one correct erased output, but two incorrect ones.

I can't figure out how to send the feature class along for each iteration of the inner nested model. Clearly I am missing something, but I am unsure what at the moment.

I could be barking up the wrong tree as I am relatively new at advanced modelbuilder stuff. For all I know maybe this is more of a python thing, but I am just starting to get into that and it is over my head at the moment.

Screenshot

PolyGeo
65.5k29 gold badges115 silver badges349 bronze badges
asked Jul 10, 2012 at 21:34
4
  • title should have been "Feature Class Iterator." Sorry about that. Commented Jul 10, 2012 at 21:37
  • From what I recall model builder doesn't easily implement iteration, if at all (someone else can confirm this). What I used to do was create the script for what I wanted to do in MB, then export it to python and finish the iteration from there. Commented Jul 11, 2012 at 5:04
  • Okay. I was anticipating that that might be the case. Anyone else confirm? I will try to find some iteration by python examples since i am a noob. Thanks for editing that image blah238. Commented Jul 11, 2012 at 16:29
  • Check my thread here where I try to explain how to loop through each layer in a mxd. That gives you a basic idea of the syntax, but your case will be different. Alternatively, there's a simpler example using a search cursor here Commented Jul 11, 2012 at 23:30

1 Answer 1

4

In the sub model, insert "Collect Values" after the iterator. You find it in the model builder menu "Insert" -> "Model Only Tools"

answered Nov 14, 2012 at 13:25

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.