laptop and a wrench

不具合

The ArcPy 'layer.extrusion' method does not successfully extrude data.

ArcGIS Pro
不具合 ID 番号 BUG-000170010
送信されましたAugust 15, 2024
最終更新日May 26, 2025
適用対象ArcGIS Pro
見つかったバージョン3.3.1
オペレーティング システムWindows OS
オペレーティング システムのバージョン11.0 64 bit
ステータスAs Designed

参考情報

The issue is that the expression syntax does not match the expression language. For example, at some point the expression was written for VBScript, but the default language is Arcade. Here is a script that will iterate through layers and report the current expression language if an expression is present and a layer supports extrusion expressions.`#Use CIM properties to determine if there is Layer.extrusion expression# and if so, what language is being usedp = arcpy.mp.ArcGISProject('current')m = p.listMaps()[0]for l in m.listLayers(): l_cim = l.getDefinition('V3') if hasattr(l_cim, 'extrusion'): if (hasattr(l_cim.extrusion, 'extrusionExpressionInfo') and hasattr(l_cim.extrusion.extrusionExpressionInfo, 'expression') and len(l_cim.extrusion.extrusionExpressionInfo.expression) > 0): print(f"{l.name}: Language = Arcade") print(f" expression = {l_cim.extrusion.extrusionExpressionInfo.expression}") elif(hasattr(l_cim.extrusion, 'extrusionExpression') and len(l_cim.extrusion.extrusionExpression) > 0): print(f"{l.name}: Language = VBScript") print(f" expression = {l_cim.extrusion.extrusionExpression}") else: print(f"{l.name}: No extrusion expression, therefore no language") else: print(f"{l.name}: Does not support extrusion")'.

再現の手順

不具合 ID: BUG-000170010

ソフトウェア:

  • ArcGIS Pro

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

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

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

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

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

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

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