laptop and a wrench

Erro

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.

Última Publicação: August 25, 2014 ArcGIS for Desktop
Número de ID do Erro NIM064043
EnviadoJanuary 10, 2011
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS for Desktop
Versão encontrada10.0
Sistema OperacionalWindows OS
Versão do Sistema OperacionalXP
Versão Fixa10.1
StatusFixed

Solução Provisória

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

Etapas para Reproduzir

ID do Erro: NIM064043

Software:

  • ArcGIS for Desktop

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download