<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Labelling using python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/labelling-using-python/m-p/1484837#M73488</link>
    <description>&lt;P&gt;Hello everyone!&lt;BR /&gt;&lt;BR /&gt;I am working on python automation for a project and I need to show the labelling for one of the features on the map based on one of the fields.&lt;BR /&gt;&lt;BR /&gt;I am not sure what functions is used usually to show the labeling.&lt;/P&gt;&lt;P&gt;Appreciate your support!&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2024 22:08:02 GMT</pubDate>
    <dc:creator>HusamOqer</dc:creator>
    <dc:date>2024-06-04T22:08:02Z</dc:date>
    <item>
      <title>Labelling using python</title>
      <link>https://community.esri.com/t5/python-questions/labelling-using-python/m-p/1484837#M73488</link>
      <description>&lt;P&gt;Hello everyone!&lt;BR /&gt;&lt;BR /&gt;I am working on python automation for a project and I need to show the labelling for one of the features on the map based on one of the fields.&lt;BR /&gt;&lt;BR /&gt;I am not sure what functions is used usually to show the labeling.&lt;/P&gt;&lt;P&gt;Appreciate your support!&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 22:08:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/labelling-using-python/m-p/1484837#M73488</guid>
      <dc:creator>HusamOqer</dc:creator>
      <dc:date>2024-06-04T22:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Labelling using python</title>
      <link>https://community.esri.com/t5/python-questions/labelling-using-python/m-p/1484852#M73489</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import arcpy
import os

# Place in ArcGIS Project Folder
path = os.getcwd()
aprx = arcpy.mp.ArcGISProject(os.path.join(path, 'APRX_File_Name.aprx'))
for map in aprx.listMaps():
    print(' Map: ' + map.name)
    for lyr in map.listLayers():
        print('  Layer: ' + lyr.name)

        if lyr.name == 'The Layer Name whose Labels youd like to enable':
            lyr.showLabels = True

aprx.save()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Give this a shot&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2024 22:48:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/labelling-using-python/m-p/1484852#M73489</guid>
      <dc:creator>ChrisCowin_dhs</dc:creator>
      <dc:date>2024-06-04T22:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Labelling using python</title>
      <link>https://community.esri.com/t5/python-questions/labelling-using-python/m-p/1485435#M73490</link>
      <description>&lt;P&gt;It works thank you!&lt;BR /&gt;Now I can implement it and move on.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jun 2024 15:37:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/labelling-using-python/m-p/1485435#M73490</guid>
      <dc:creator>HusamOqer</dc:creator>
      <dc:date>2024-06-05T15:37:21Z</dc:date>
    </item>
  </channel>
</rss>

