Select to view content in your preferred language

Difficutly Batch Processing a Model

914
2
04-03-2010 07:47 PM
NolanNoble
New Contributor
I have designed a model that uses the following tools:  "Make Route Event Layer" and "Feature Class To Shapefile (multiple)".  I need to run this model across 60 different routes, indexed by %r%, and each route has five different years.  I create a parameter, r, to indicate the route number.  For the "Make Route Event Layer" tool, the only entries that change across the different routes are "Input Route Event Features", "Input Event Table", and "Layer Name or Table View".  These entries need to change across the years as well.  For "Input Event Features" my entry is "Route%r%".  I have "Input Event Table" as a list variable, where the entries are:  C:\int\int_%r%_91.csv ; C:\int\int_%r%_94.csv ; C:\int\int_%r%_97.csv ; C:\int\int_%r%_01.csv ; and C:\int\int_%r%_05.csv .  The entries for "Layer Name or Table View" are as per the default.  Since everything in the model except the route number is identical, my only parameter is the route number, r.

I attempt to batch process this model across the different route numbers, %r%.  However, when I attempt to do this the batch processing only runs for the first route number, r, that I input.  I was wondering why the batch processing is not working correctly, and for suggestions on how to get it to work correctly.
0 Kudos
2 Replies
KatsuraIizuka
Emerging Contributor
I recommend to re-post your question to the link below:

http://forums.arcgis.com/forums/31-Geoprocessing

Hope it helps,
Katsura
0 Kudos
MattDavis
Deactivated User
Hi Nolan,

I think the problem is that you haven't set the number of iterations that this model to run.  Setting up the variable is most of the work but that doesn't tell the model it needs to run more than once.

In the toolbox, navigate to the model you created and right-click it.  Click on "Properties" and in the new Properties dialog hit the "Iterations" tab. In there you can base the number of iterations on a number you already know or base it off the routes variable you created.

I hope this helps!
0 Kudos