laptop and a wrench

Error

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

Última publicación: January 21, 2020 ArcGIS Pro
Número de ID del error BUG-000127813
EnviadoJanuary 8, 2020
Última modificaciónJune 5, 2024
Relacionado conArcGIS Pro
Versión encontrada2.4.3
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
Versión corregida3.3
EstadoFixed

Información adicional

This issue is addressed in ArcGIS Pro 3.3.

Solución alternativa

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)

Pasos para reproducir

ID del error: BUG-000127813

Software:

  • ArcGIS Pro

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga