laptop and a wrench

Erro

Request for the documentation to add Python code for the LegendItem properties.

Última Publicação: January 19, 2022 ArcGIS Pro
Número de ID do Erro BUG-000143717
EnviadoOctober 15, 2021
Última ModificaçãoJune 5, 2024
Aplica-se àArcGIS Pro
Versão encontrada2.8.3
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

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

Solução Provisória

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)

Etapas para Reproduzir

ID do Erro: BUG-000143717

Software:

  • ArcGIS Pro

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download