mitchjbate

Auto Generate Sequential Asset IDs

Discussion created by mitchjbate on Sep 1, 2016
Latest reply on Sep 1, 2016 by CDow-esristaff

I am looking for a python script that will automatically assign a unique sequential value to a field every time a new feature (asset) is created. This ID will also need the abbreviated name prepended to the identifier.

So for example, if I add a new sign (SN) to the signs feature class, I'd like that sign to have an Asset ID of SN235.

Alternatively, I could field calculate each time a new asset or series of assets is added so long as the next feature is given the next sequential value.

I have seen scripts such as this: How can you auto-increment in a Python Script (not Field Calculator)?

But it isn't quite what I need.

Has anyone created or come across a script that will do this? Any insight on this is much appreciated!

Thanks!

Outcomes