How to make a model loop with different input files?

492
1
07-25-2011 07:36 AM
paoloburrini
New Contributor
I need to perform simple geoprocessing tasks on several files and would like to automate the process. I can build the model to perform the tasks on just one input file and I would like this model to run the on all files in a given directory, and put the output files in a different directory (preserving the name of the input file). Is there a way to do this in model builder?
0 Kudos
1 Reply
MatthewCieri
Occasional Contributor
I think you can add loops to models but the easiest way would be in python.

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/What_is_Python/002z00000001000000/

You can either build a pyton script to do the loop or do it all in the python script.

Matt
0 Kudos