I have two feature classes. Polyline and Point. Both feature classes have the field "NAME" with values populated.

I want to iterate (assuming by field value) with "NAME" field to select polyline and all corresponding points with same "NAME" value that are further than 3 feet from polyline.

I want to create a model in ModelBuilder that will iterate through the entire feature class so i can identify all points that are further than 3 feet away from their corresponding line.

I have successfully added the iterator and added the query in select tool to select both points and polyline by "NAME". However the select by feature tool will not allow the output from select tool to be used as the input feature layer for the select by location tool. It only allows either output to be used for the selection layer.

How do I get the output from the select tool to be used as input feature layer for the select by location tool?

  • 1
    What is your question? Please edit your question to outline a specific problem and ask a question about that specific problem. Give details on what it does or does not do when you try it, including any errors.
    – Midavalo
    Mar 2, 2017 at 18:22
  • I'm not sure my my question is still displayed as "On Hold" ?
    – huskersila
    Mar 2, 2017 at 18:52
  • 1
    You haven't asked a question. You have told us what you want to do, but haven't told us what you've tried, what happens when you try it, or where you are stuck. Please ask a specific question focused on what you are having trouble with.
    – Midavalo
    Mar 2, 2017 at 18:59
  • Can you please add a screenshot of your model? I had no problem connecting the output of 'Iterate Feature Selection' to 'Select Layer By Location'.
    – jbalk
    Mar 3, 2017 at 2:48

1 Answer 1


To create a feature layer from the selection, add 'Make Feature Layer' after the iterator and before the select by location:

enter image description here

Then set the output name of the layer to YourTextHere_%Value%. This will create a feature layer with the name YourTextHere_< group-by attribute value of current selection > In my example, I'm using the 'LABEL' field to group by, so my %Value% will be the LABEL of the current selection - e.g. Pipeline_Pt_Layer_Crossing7.

Here's the output settings for the make feature layer tool: enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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