Bug-ID-Nummer |
BUG-000143717 |
Eingereicht | October 15, 2021 |
Zuletzt geändert | June 5, 2024 |
Gilt für | ArcGIS Pro |
Gefunden in Version | 2.8.3 |
Betriebssystem | Windows OS |
Betriebssystemversion | 10.0 64 Bit |
Status | Will Not Be Addressed
Das Entwicklungsteam hat das Problem bzw. die Anforderung sorgfältig geprüft und ist zu dem Schluss gekommen, es nicht zu beheben bzw. keine weiteren Schritte zu unternehmen. Weitere Erläuterungen finden Sie ggf. im Abschnitt "Zusätzliche Informationen" des jeweiligen Problems.
|
Zusätzliche Informationen
Python CIM access was made available specifically to provide finer grained access to properties not exposed in the
managed API. Until we get enough requests for it, we will leave it as is. Another option to encourage other user's support, consider adding an IDEA to the Esri ideas page. See useful links below:
https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm
https://community.esri.com/t5/custom/page/page-id/arcgis-ideas
Workaround
Using Python CIM access as below:
aprx.listLayouts()[0]
lyt_cim = lyt.getDefinition("V2")
for item in lyt_cim.elements:
if item.name == "Legend":
for element in item.items:
if element.name == "<layer>":
element.showHeading = False
element.showGroupLayerName = False
element.showLayerName = False
lyt.setDefinition(lyt_cim)
Schritte zur Reproduzierung