laptop and a wrench

Bogue

The Apply Symbology From Layer tool does not apply symbology from a .lyrx file when running in a standalone script.

Dernière publication: December 24, 2020 ArcGIS Pro
Numéro d’ID de bogue BUG-000131219
EnvoiMay 28, 2020
Dernière modificationJune 5, 2024
S’applique àArcGIS Pro
Version trouvée2.5.1
Système d’exploitationWindows OS
Version du système d’exploitation10.0
StatutKnown Limit

Informations supplémentaires

This is as designed. It is not something designed to work from a standalone script (as the standalone script does not run within the context of Pro, and doesn't know what layers are available in a Project map unless explicitly told). For this reason, when calling the layer by name in script, it does not apply symbology, but in Python Window it does. The namespace of available layers in the map project map is accessed using the list of layers retrieved from .listLayers().

Étapes pour reproduire

ID de bogue: BUG-000131219

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