-1

enter image description hereI have a Geodatabase containing each county as its own feature (~60 features). I have another Geodatabase containing data in the form of points, lines, and polygons for the entire state. What I need to do is clip all the data to each county. I created an Iterator for the data and then just had a single county as the input for the clip tool. This created the clipped files I want, however, I have to repeat this process for every county. Is there way to have the data iterate and the counties iterate into the clip tool so that the output will be the clipped data for every county?

  • 1
    Have a look at the help file and search for sub-models, you need to embed a model within a model that is the only way you can achieve a loop within a loop using modelbuilder. – Hornbydd Jun 20 '16 at 19:16
  • Once I embed a model how can I get the output of the clip tool to be unique? Such that the the output name is "county name is listed then the data clipped." This is where im confused because when you embed the iterator model the teal box that contains the values disappears. – thirstygiraffe Jun 20 '16 at 20:09
  • I added a picture of the model I have right now. Everything fails when it gets to the output. – thirstygiraffe Jun 20 '16 at 20:12
  • 1
    You need to have a master model with one iterator feeding into a sub model. Your current configuration will not work as one sub model will run to completion then the other. – Hornbydd Jun 21 '16 at 7:50
  • @Hornbydd I think your comment has just enough content to be copy/pasted into an answer. – PolyGeo Aug 24 '16 at 21:31
2

As commented by @Hornbydd:

Have a look at the help file and search for sub-models, you need to embed a model within a model that is the only way you can achieve a loop within a loop using ModelBuilder.

and:

You need to have a master model with one iterator feeding into a sub model. Your current configuration will not work as one sub model will run to completion then the other.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.