1

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

2
  • 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
    Commented Feb 1, 2016 at 6:41
  • Thx. I added a screenshot.
    – val
    Commented Feb 1, 2016 at 6:46

1 Answer 1

3

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
  • 1
    thx, got it to work with your input. It also seems that I first need to convert my .csv to a dbf.
    – val
    Commented Feb 3, 2016 at 2:16

Your Answer

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

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