laptop and a wrench

Bug

Using the Field Calculator to execute a Python codeblock to calculate sequential numbers on a selected set of features in a geodatabase feature class only calculates sequential values in groups of 250 features. After each group of 250 features the sequential numbering starts over again.

Zuletzt veröffentlicht: August 25, 2014 ArcGIS for Desktop
Bug-ID-Nummer NIM064043
EingereichtJanuary 10, 2011
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS for Desktop
Gefunden in Version10.0
BetriebssystemWindows OS
BetriebssystemversionXP
Behoben in Version10.1
StatusFixed

Workaround

Use python window and update cursor in a script similar to the following:import arcpydef autoIncrement(): global rec pStart = 1 # Adjust start value, if req'd pInterval = 1 # Adjust interval value, if req'd if (rec == 0): rec = pStart else: rec += pInterval return rec# ################################# ################################ ## ## Attention User!!! Please Specify Feature for Calculation below.. ## ## ################################# ################################ #inFeatures = "Dallas_poles" # Specify feature to use for calculations# Add AutoInc fieldtry: arcpy.AddField_management(inFeatures, "AutoInc", "LONG", "", "", "", "", "NULLABLE")except: arcpy.GetMessages(2)# Create UpdateCursor Objectrows = arcpy.UpdateCursor(inFeatures)rec=0 # Declare rec variablefor row in rows: autoIncrement() # Perform autoIncrement() module row.AutoInc = rec # Set current row equal to rec rows.updateRow(row) # Update the row to reflect the changedel row, rows # Delete cursor and row objects to remove locks on the data

Schritte zur Reproduzierung

Bug-ID: NIM064043

Software:

  • ArcGIS for Desktop

Benachrichtigung erhalten, wenn sich der Status eines Bugs ändert

Esri Support App herunterladen

Weitere Informationen zu diesem Thema erkunden

Unterstützung durch ArcGIS-Experten anfordern

An den technischen Support wenden

Esri Support App herunterladen

Zu Download-Optionen wechseln