Select to view content in your preferred language

What's wrong with this model?

4122
5
Jump to solution
03-12-2015 12:43 PM
alexbullen
Deactivated User

Check this out and see what's wrong. I'm working on a model and have the workflow down; I get the result I'm looking for. However my iterator is not kicking in. I've Run the Model, Validated the Model, and Run the Entire Model.NewModelXY.png

How do I change this to make the iterator kick in? My inputs are multipoint feature classes.

0 Kudos
1 Solution

Accepted Solutions
DarrenWiens2
MVP Alum

Since you never make use of the changing Name variable, all of your output is saved to the same final feature class ("N2E100_MinimumBoundingGeomet2"). If you name it using in-line variable substitution something like, "%Name%_output", different outputs will be created.

View solution in original post

0 Kudos
5 Replies
DarrenWiens2
MVP Alum

Since you never make use of the changing Name variable, all of your output is saved to the same final feature class ("N2E100_MinimumBoundingGeomet2"). If you name it using in-line variable substitution something like, "%Name%_output", different outputs will be created.

0 Kudos
JayantaPoddar
MVP Alum

Hi Alex,

Just a workaround. Try storing the feature classes in a feature dataset instead of a GDB directly. Then give the path of the feature dataset in Iterate Feature class.

Thanks,

Jay



Think Location
0 Kudos
DarrenWiens2
MVP Alum

Can you explain the difference that storing the feature classes in a feature dataset would make?

0 Kudos
alexbullen
Deactivated User

ArcGIS Help 10.1  is ESRI's help article that explains the different in-line variable substitutions. That plus Darren's reply helped me get the iterator running properly. Thanks!

I'm not convinced that doing this in ModelBuilder was any faster or easier than scripting it out with a loop; in fact, I accidentally sabotaged the Model when I started poking around in the workspace the Model was working in.

0 Kudos
DarrenWiens2
MVP Alum

IMO, if you're already scripting there is absolutely no reason to use ModelBuilder.

0 Kudos