The Apply Symbology From Layer tool does not apply symbology from a .lyrx file when running in a standalone script.
最後に公開された状態: December 24, 2020ArcGIS Pro
不具合 ID 番号
BUG-000131219
送信されました
May 28, 2020
最終更新日
June 5, 2024
適用対象
ArcGIS Pro
見つかったバージョン
2.5.1
オペレーティング システム
Windows OS
オペレーティング システムのバージョン
10.0
ステータス
Known Limit
開発チームによる確認後に、この問題が、Esri の管理の範囲外にあるソフトウェアの既知の制限に関するものであると判断されました。 問題の「参考情報」セクションに、さらに詳細な説明が示されていることがあります。
参考情報
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().