PROCÉDURE
Instructions provided describe how to create sequential numbers in a field in ArcMap using Python in the Field Calculator.
Note: The code in this article generates sequential numbers for unsorted data based on the OID or FID order. If the data is sorted on a field, the generated numbers are not sequential.
rec=0 def autoIncrement(): global rec pStart = 1 pInterval = 1 if (rec == 0): rec = pStart else: rec += pInterval return rec
autoIncrement()
Obtenir de l’aide auprès des experts ArcGIS
Télécharger l’application Esri Support