laptop and a wrench

Bug

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

ArcGIS Pro
Bug-ID-Nummer BUG-000170010
EingereichtAugust 15, 2024
Zuletzt geändertMay 26, 2025
Gilt fürArcGIS Pro
Gefunden in Version3.3.1
BetriebssystemWindows OS
Betriebssystemversion11.0 64 bit
StatusAs Designed

Zusätzliche Informationen

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")'.

Schritte zur Reproduzierung

Bug-ID: BUG-000170010

Software:

  • ArcGIS Pro

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