I am trying to create a model that will select each feature within a feature class, then perform an intersect between that selection and another layer. The model setup seems rather straightforward, but I run into a problem with the output file name. I want the file name to be the same as the input for the selected layer (the one on which I am performing the iteration), so I originally tried %NAME%; however, this function is supposed to cause it to be named after the input file and in this case, there are two inputs since I performing an intersect.

Here is the model I have drafted below for clarity. I want to select each feature in Main_Lanes separately and intersect it with the Seg1_WZ layer to get an ouput point intersect named after the Main_Lanes selected feature. enter image description here


You're on the right track, you have two inputs:


Which when you want to name other files based on those names, you would reference them as:


However, you want your output to have the same name as your Main_Lanes input, but the issue is you're appending _File to your output parameter name, when you should be naming it like so:


So what you'll end up with are features named:

etc, etc...

Let me know if that makes sense...

  • This may have answered my question, but I should have clarified about the _File. I am iterating the feature class based on the field "File". The result that I would like would be to have a final points file (from the intersect) with the same name as is in the File field for each feature. Does that make sense?
    – Angela
    Nov 14 '14 at 19:36
  • @Angela i wonder if you need to use a different type of iterator... have you tried the "Field" iterator? Nov 14 '14 at 23:13
  • The field that I want the file to be named after is a text field, so I don't think this will work.
    – Angela
    Nov 17 '14 at 15:34
  • @Angela you might need to use a field iterator and pull from a submodel that uses a feature class iterator... Nov 19 '14 at 15:54

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.