3 Replies Latest reply on Apr 30, 2012 8:53 AM by BrokenLegMike

    Calculate Field on Records Selected by Location in Modelbuilder not Calculating

    BrokenLegMike
      I have created a model and I have added a 'Select by Location' query to select records from a polygon feature class that lies outside of another polygon feature class.

      [ATTACH=CONFIG]13900[/ATTACH]

      So, I set the selection to choose all feature from the first polygon feature class 'WITHIN' the second polygon feature class and then set the 'Selection Type' to 'SWITCH_SELECTION' to get the feature outside.

      [ATTACH=CONFIG]13899[/ATTACH]

      I then use the 'Calculate Field' using the output of the select by location above, as an input to calculate a field called 'Comment' with the string 'Area2 outside of Area1' in hopes that it will only calculate the selected features.

      [ATTACH=CONFIG]13901[/ATTACH]

      It is not doing this. It's calculating all the records. How to I only calculate the selected records?

      Thanks,
      Mike