alantoms

Increment Numbers with Sort Field

Discussion created by alantoms on Jun 4, 2012
Latest reply on Jun 6, 2012 by alantoms
Hello All,

I would like to create code to calculate a field with increment numbers, similar to this code, but with an option of a sort order.  I�??m thinking I could use an UpdateCursor with a sort and loop through the records, but I assume the performance would suffer vs a strait up field calculation.  Another option I was considering was a SearchCursor then calling the Calculate Field geoprocess for each record.  I don't think this would improve performance though.

Are there any suggestions or thoughts?


Thank you
Alan

Outcomes