Hello all,
I am wondering if I can do something to automate this process. Currently I add a point to my feature class and I manually type in "N" + the OBJECTID in my "UniqueID" field. Is there a way I can code the field default value to be "N" + !OBJECTID! so it just adds that value when I create the point?
Thanks!
Solved! Go to Solution.
With python this would involve post processing (i.e. after you add features you'd need to run a script to update these values). If you wanted to execute this as you create features you would need either an editor extension (Python or ArcObjects) or a feature class extension (ArcObjects). In the editor extension you would need to listen for the on create event.
An easier option may be to use the Attribute Assistant to automate this task. You could leverage the Dynamic Table functionality within it that could automate populating your fields with the needed values.
Dynamic Value Table
With python this would involve post processing (i.e. after you add features you'd need to run a script to update these values). If you wanted to execute this as you create features you would need either an editor extension (Python or ArcObjects) or a feature class extension (ArcObjects). In the editor extension you would need to listen for the on create event.
An easier option may be to use the Attribute Assistant to automate this task. You could leverage the Dynamic Table functionality within it that could automate populating your fields with the needed values.
Dynamic Value Table
Brilliant! This Attribute Assistant is Awesome! I had heard about it briefly in the past but never took the time to learn it or implement it. I did that yesterday and it's a dream come true.
Thank you so much for reminding me about it.
Cheers!