I have a table (value.csv) with two fields (Expression, Name) that I would like to iterate through within a model.

I want the model to iterate through a series of SQL expressions (e.g. Value > 1, Value > 2, etc.). I think this part is working.

How do I get the iterator to rename each new shapefile according to the Name field in my table (i.e. Name1, Name2, etc.)

EDIT: I've added a screenshot for the set null parameters (which I am currently doing manually).

enter image description here

enter image description here

enter image description here

UPDATE: Added the Iterate Row Selection and Get Field Value to my model and after some tinkering it eventually worked. Here is the full model:

enter image description here

  • What parameter values do you have configured on your Set Null tool? A screenshot may be the best way to show that. What happens when you run your model?
    – PolyGeo
    Feb 1 '16 at 6:41
  • Thx. I added a screenshot.
    – val
    Feb 1 '16 at 6:46

What you will need to use is Iterate Row Selection instead. See the ArcGIS help page for more information.

If you then use Get Field Value you will be able to use the Name/Expression in other tools.

  • 1
    thx, got it to work with your input. It also seems that I first need to convert my .csv to a dbf.
    – val
    Feb 3 '16 at 2:16

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.