laptop and a wrench

不具合

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

最後に公開された状態: January 19, 2022 ArcGIS Pro
不具合 ID 番号 BUG-000143717
送信されましたOctober 15, 2021
最終更新日June 5, 2024
適用対象ArcGIS Pro
見つかったバージョン2.8.3
オペレーティング システムWindows OS
オペレーティング システムのバージョン10.0 64 Bit
ステータスWill Not Be Addressed

参考情報

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

対処法

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)

再現の手順

不具合 ID: BUG-000143717

ソフトウェア:

  • ArcGIS Pro

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動