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
1 Answer 1
You're on the right track, you have two inputs:
Main_Lanes
Seg1_WZ
Which when you want to name other files based on those names, you would reference them as:
%Main_Lanes%
%Seg1_WZ%
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:
%Main_Lanes%_File
So what you'll end up with are features named:
Input1_File
Input2_File
Input3_File
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– Angela2014年11月14日 19:36:23 +00:00Commented Nov 14, 2014 at 19:36
-
@Angela i wonder if you need to use a different type of iterator... have you tried the "Field" iterator?Inactivated Account– Inactivated Account2014年11月14日 23:13:16 +00:00Commented Nov 14, 2014 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– Angela2014年11月17日 15:34:20 +00:00Commented Nov 17, 2014 at 15:34
-
@Angela you might need to use a field iterator and pull from a submodel that uses a feature class iterator...Inactivated Account– Inactivated Account2014年11月19日 15:54:56 +00:00Commented Nov 19, 2014 at 15:54
Explore related questions
See similar questions with these tags.