laptop and a wrench

不具合

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.

最後に公開された状態: August 25, 2014 ArcGIS for Desktop
不具合 ID 番号 NIM064043
送信されましたJanuary 10, 2011
最終更新日June 5, 2024
適用対象ArcGIS for Desktop
見つかったバージョン10.0
オペレーティング システムWindows OS
オペレーティング システムのバージョンXP
修正されたバージョン10.1
ステータスFixed

対処法

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

再現の手順

不具合 ID: NIM064043

ソフトウェア:

  • ArcGIS for Desktop

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動