3

Using ArcGIS 10.2, I've put together a Model Builder model that counts the number of wind turbines in a buffer zone:

enter image description here

When I'm done, I can see how many turbines have been selected at the bottom of the attribute table panel like this:

enter image description here

How can I use Model Builder to capture this output (e.g., the number of turbines "1040") and save it to an existing (empty) field in my attribute table?

  • @Luke: I just clarified in the questions text per your request. I'd like to write the numerical value "1040" to an existing field in a shapefile attributed table. – Nick Cain May 20 '15 at 1:47
  • 1
    Not so much.. there is a GetCount tool resources.arcgis.com/en/help/main/10.1/index.html#//… which you could probably hack into a field calculation. You could do this easily in python, add it to a custom toolbox then incorporate that into your model... would that help? – Michael Stimson May 20 '15 at 2:33
3

Use the Get Count and Calculate Field tools. Make sure the output of Get Count is a precondition for Calculate Field. The output of Get Count is passed to Calculate Field via in-line variable substitution.

E.g. enter image description here

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.