laptop and a wrench

Bug

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

Zuletzt veröffentlicht: January 21, 2020 ArcGIS Pro
Bug-ID-Nummer BUG-000127813
EingereichtJanuary 8, 2020
Zuletzt geändertJune 5, 2024
Gilt fürArcGIS Pro
Gefunden in Version2.4.3
BetriebssystemWindows OS
Betriebssystemversion10.0 64 Bit
Behoben in Version3.3
StatusFixed

Zusätzliche Informationen

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)

Schritte zur Reproduzierung

Bug-ID: BUG-000127813

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