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?
-
geodatabase? or shapefile?– Mapperz ♦Commented Mar 15, 2016 at 16:56
-
3Exporting to a another feature class will renumber the Objectid column.– klewisCommented Mar 15, 2016 at 17:01
-
can't you just add a new column with FID?– RutgerHCommented Mar 15, 2016 at 17:47
-
It is a shapefile and thank you for the suggestions– Larry MillerCommented Mar 15, 2016 at 17:52
-
Please expand on your answer. As it stands, it doesn't really answer the question.– MaryBethCommented Mar 15, 2016 at 18:34
|
Show 2 more comments
1 Answer
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.