Hi all! I'm new to model building and I need help...
I want to select features in order to delete them. The selection is based on the values of a column in a csv table. The idea is to iterate over the csv table rows (ITERATE ROW SELECTION) and use the output value to select features in the feature class.
Is this something that can be done? If yes, how? If not, is there another way?
Thank you!
Solved! Go to Solution.
Good stuff @REDARiahi , if you think it's a satisfactory solution to your initial question, please 'Accept as solution'.
I don't use model builder unfortunately so this may be unnecessarily involved.
Iterate Row Selection ->
use row output (green) as input to Get Field Value (specify the field name in the properties) ->
rename the Get Field Value output to something like attribute ->
Insert Select Layer By Attribute tool ->
In the Select by Attribute tool properties, write an expression such as
youFieldName = '%attribute%'
Then connect your data to the Select by Attribute tool
Thank you David! That worked!
Good stuff @REDARiahi , if you think it's a satisfactory solution to your initial question, please 'Accept as solution'.