laptop and a wrench

Bug

The ArcPy 'layer.extrusion' method does not correctly apply 3D display properties.

Last Published: January 21, 2020 ArcGIS Pro
Bug ID Number BUG-000127813
SubmittedJanuary 8, 2020
Last ModifiedJune 5, 2024
Applies toArcGIS Pro
Version found2.4.3
Operating SystemWindows OS
Operating System Version10.0 64 Bit
Version Fixed3.3
StatusFixed

Additional Information

This issue is addressed in ArcGIS Pro 3.3.

Workaround

The IsFlattened property must be manually changed from True to False. The layer object's Cartographic Information Model (CIM) can be overwritten to modify this property. As soon as the IsFlattened property is changed from True to False, the layer is moved from 2D layers to 3D layers in the Contents pane for the Scene.

lyr = m.listLayers('<Polygon Layer Name Here>')[0]

lyr.extrusion('BASE_HEIGHT', 150)

lyrCIM = lyr.getDefinition('V2')

lyrCIM.isFlattened = False

lyr.setDefinition(lyrCIM)

Steps to Reproduce

Bug ID: BUG-000127813

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