2

is there a way to reset the numbering in an attribute table in ARC 10.4? as in if features are deleted can the numbers be reordered in the new sequence left after deleting selections?

7
  • geodatabase? or shapefile?
    – Mapperz
    Commented Mar 15, 2016 at 16:56
  • 3
    Exporting to a another feature class will renumber the Objectid column.
    – klewis
    Commented Mar 15, 2016 at 17:01
  • can't you just add a new column with FID?
    – RutgerH
    Commented Mar 15, 2016 at 17:47
  • It is a shapefile and thank you for the suggestions Commented Mar 15, 2016 at 17:52
  • Please expand on your answer. As it stands, it doesn't really answer the question.
    – MaryBeth
    Commented Mar 15, 2016 at 18:34

1 Answer 1

3

Assuming you aren't trying to re-order the object id, you could just run this python script inside the field calculator:

#Pre-Logic Script Code:
rec=0
def autoIncrment()
  global rec
  pStart = 1
  pInterval = 1
  if (rec == 0):
    rec = pStart
  else:
    rec += pInterval
  return rec

#your field =
autoIncrement()

This will populate the field with new sequential numbering.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.