Creating unique logical IDS

Discussion created by yeel on Jul 10, 2012
Latest reply on Jul 10, 2012 by curtvprice
Hi there,

I've been tasked with creating unique IDs for a street light layer for a municipality, the client wants the unique IDs to be logical and sequential.
I've found scripts on how to make IDs with python based on FIDs, but this won't work in my case.
For example, I'd like to have sequential IDs for street lights that are on the same street (close to eachother) rather than having streetlight #1 be in the East corner of the map and streetlight # 2 being at an opposite corner.

So far I've created X and Y fields, but it still isn't AS logical as I'd like.

Does anyone know of a script I can use in Field Calculator that would work for something like this, or does more geoprocessing have to be done?