Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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. Thanks for any assistance.

Screenshot

share|improve this question
    
title should have been "Feature Class Iterator." Sorry about that. –  BDee Jul 10 '12 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. –  nagytech Jul 11 '12 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. –  BDee Jul 11 '12 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 –  nagytech Jul 11 '12 at 23:30

1 Answer 1

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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