Solved! Go to Solution.
Hi,
Solved this myself in the end if anyone may be interested..
Maybe not the slickest of models as no iterators involved but it works.
Select by attributes (analysis) set output to use in memory results
Input results to Calculate field tool
Repeat the select and calculate for the various group selections and finally merge all the calculate field results into a new feature class.
Mark
If IsNull([Route_ID] Then Output = [URL_Field] ' Don't change URL field value Else Select Case [Route_ID] Case "Mon1", "Mon2", "Mon3" Output = "The URL for Monday" Case "Tue1", "Tue2", Tue3" Output = "The URL for Tuesday" ' Etc. Case Else Output = [URL_Field] ' Don't change URL field value End Select End If
Hi,
I have a feature class where I wish to select various values from a field. Once those values are selected I wish to populate another field with a corresponding certain value using calculate field. How can I simply select attributes in a feature class without exporting to another feature class?
Thanks
Mark
Hi,
Solved this myself in the end if anyone may be interested..
Maybe not the slickest of models as no iterators involved but it works.
Select by attributes (analysis) set output to use in memory results
Input results to Calculate field tool
Repeat the select and calculate for the various group selections and finally merge all the calculate field results into a new feature class.
Mark
If IsNull([Route_ID] Then Output = [URL_Field] ' Don't change URL field value Else Select Case [Route_ID] Case "Mon1", "Mon2", "Mon3" Output = "The URL for Monday" Case "Tue1", "Tue2", Tue3" Output = "The URL for Tuesday" ' Etc. Case Else Output = [URL_Field] ' Don't change URL field value End Select End If