Iteration using Incrementing Input Variables

Discussion created by tomaraya on Nov 14, 2012
Hi all,

I am putting together a geoprocessing task in ModelBuilder which requires the following:

1. Select feature classes in a gdb whose name ends with "_1"
2. Merge them
3. Add/Calculate fields
4. Dissolve to a calculated field
5. Union the result of step 4 with a feature class from another gdb, whose name also ends with "_1"
6. Repeat the process, but this time using feature classes whose names end with "_2" for inputs in steps 1 & 5

My problem is with the iteration (Step 6).  I can get everything else to work, no problem, but starting the process over with the inputs automatically advancing to the "_2" feature classes is stumping me.  Any advice would be greatly appreciated!