1

I am using the ModelBuilder to apply some analysis on some feature classes(shape files). I have to apply the same model for different feature classes and of course the output naming would be according to the input data naming.I would like to know whether it is possible to define a loop in ModelBuilder to apply the model over a group of shapefiles and differentiate it based on the input data name.

I have heard that there is a possibility to use ArcPy to define loop but as I am not a pro in ArcPy , would rather to do it in ModelBuilder.

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked May 8, 2017 at 13:34
2
  • Can you clarify more what you mean by this, "differenciate it based on the input data name"? Commented May 8, 2017 at 13:41
  • you can do this with arcpy (python). export your model to a python snippet and use a 'for' loop to get all feature classes analysis. cant be more specific than that without seeing your model. Commented May 8, 2017 at 13:44

1 Answer 1

4

You can use the Iterate Feature Classes tool within ModelBuilder. This will iterate through your feature classes as long as they are all within the same workspace. It is a ModelBuilder only tool that can be accessed through the menu within ModelBuilder.

answered May 8, 2017 at 14:14
0

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.