laptop and a wrench

Bug

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

ArcGIS Pro
Bug ID Number BUG-000170010
SubmittedAugust 15, 2024
Last ModifiedMay 26, 2025
Applies toArcGIS Pro
Version found3.3.1
Operating SystemWindows OS
Operating System Version11.0 64 bit
StatusAs Designed

Additional Information

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

Steps to Reproduce

Bug ID: BUG-000170010

Software:

  • ArcGIS Pro

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options