laptop and a wrench

不具合

Discrepancy: arcpy.da.Describe does not return all properties (such as checkParameters like minimumAngle) for certain rules (e.g., Cutbacks), whereas the Export Attribute Rules tool outputs them correctly.

ArcGIS Pro
不具合 ID 番号 BUG-000173844
送信されましたJanuary 24, 2025
最終更新日July 14, 2025
適用対象ArcGIS Pro
見つかったバージョン3.3.2
オペレーティング システムWindows OS
オペレーティング システムのバージョンN/A
ステータスIn Review

対処法

Here are two possible workarounds to handle the issue while waiting for a resolution:

Workaround 1: Use the "Description" Field for Missing Parameters

If certain parameters (like Minimum Angle for the Cutbacks Rule) are not visible in the ArcPy output, you can manually enter the parameter value into the rule’s Description field during rule creation.

  • For example:
    • If the Minimum Angle is 6 degrees, add the text "6 degrees" into the Description field for the Cutbacks Rule.
    • This description will then be accessible via ArcPy using the description property.

Workaround 2: Use the Export Attribute Rules GP Tool with Python

The Export Attribute Rules geoprocessing tool includes all parameters when exporting to a CSV file. You can use this tool programmatically via Python and read the exported CSV to extract complete information.

Here’s an example script:

python

CopyEdit

import arcpy

import pandas as pd # Pandas comes pre-installed in the ArcGIS Pro Python environment

# Path to the feature class and output CSV

feature_class = r"path_to_your_feature_class" # Replace with actual feature class path

output_csv = r"path_to_exported_csv.csv" # Replace with the desired CSV file path

# Run the Export Attribute Rules GP Tool

arcpy.ExportAttributeRules_management(feature_class, output_csv)

# Read the CSV file using Pandas

df = pd.read_csv(output_csv)

# Print the exported attribute rules with all parameters

print(df)

# Optional: Save specific parameters to another file or process as needed

df.to_csv(r"path_to_processed_csv.csv", index=False)

Benefits of Each Workaround:

  • Workaround 1 is simple but manual. It ensures all critical parameters are available in the description field.
  • Workaround 2 automates the process and provides a programmatic way to extract all details, including the missing ones, from the CSV export.

再現の手順

不具合 ID: BUG-000173844

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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