Selecting polygons in Modelbuilder

Discussion created by vwyeth on Dec 18, 2013
Latest reply on Dec 18, 2013 by dhoneycutt-esristaff

I wonder if someone can help me please.

I have built a model in modelbuilder (please see attached) and I am now trying to select each polygon from the feature class for the first Select Layer by Attribute(4) and then select each polygon from the feature class of the Select Layer By Attribute(2).

What the model is doing, is selecting a polygon from a feature class and then selecting the lines which intersect that polygon. I then need to identify only the lines which intersect the selected polygon an another polygon from the same feature class, so I have added another Select Layer by Attribute action. I then need to do this for all polygons within the feature class so where polygon has ObjectID =1 this needs to be compared to where ObjectID=2 & 3 & 4 & 5 etc. So all pairs of polygons are selected together.

I hope this makes sense. I sure there must be some looping which is required.

Thanks in advance.