laptop and a wrench

Bogue

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

Dernière publication: January 21, 2020 ArcGIS Pro
Numéro d’ID de bogue BUG-000127813
EnvoiJanuary 8, 2020
Dernière modificationJune 5, 2024
S’applique àArcGIS Pro
Version trouvée2.4.3
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction3.3
StatutFixed

Informations supplémentaires

This issue is addressed in ArcGIS Pro 3.3.

Solution de contournement

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)

Étapes pour reproduire

ID de bogue: BUG-000127813

Logiciel:

  • ArcGIS Pro

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement