<?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>idea Add ArcGIS Pro Layer Properties Class to Python in ArcGIS Pro Ideas</title>
    <link>https://community.esri.com/t5/arcgis-pro-ideas/add-arcgis-pro-layer-properties-class-to-python/idi-p/1587249</link>
    <description>&lt;P&gt;We need to update python library for ArcGIS API to support properties for each layer in the Table of Contents.&amp;nbsp; For example, I want to set a display field to a common field for every layer within the Table of Contents within the ArcGIS Pro Map.&amp;nbsp; if I have a variable that looks at listLayers called lyr.&amp;nbsp; We should be able to get to the properties of each item for that layer and update the values.&amp;nbsp; lyr.Properties.Display.DisplayField('uid') or lyr.Properties.Display.Scalesymbols('True')&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 21:24:27 GMT</pubDate>
    <dc:creator>STrimble</dc:creator>
    <dc:date>2025-02-19T21:24:27Z</dc:date>
    <item>
      <title>Add ArcGIS Pro Layer Properties Class to Python</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-arcgis-pro-layer-properties-class-to-python/idi-p/1587249</link>
      <description>&lt;P&gt;We need to update python library for ArcGIS API to support properties for each layer in the Table of Contents.&amp;nbsp; For example, I want to set a display field to a common field for every layer within the Table of Contents within the ArcGIS Pro Map.&amp;nbsp; if I have a variable that looks at listLayers called lyr.&amp;nbsp; We should be able to get to the properties of each item for that layer and update the values.&amp;nbsp; lyr.Properties.Display.DisplayField('uid') or lyr.Properties.Display.Scalesymbols('True')&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 21:24:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-arcgis-pro-layer-properties-class-to-python/idi-p/1587249</guid>
      <dc:creator>STrimble</dc:creator>
      <dc:date>2025-02-19T21:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add ArcGIS Pro Layer Properties Class to Python</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-arcgis-pro-layer-properties-class-to-python/idc-p/1587502#M33901</link>
      <description>&lt;P&gt;You can update the layer properties with &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm" target="_blank" rel="noopener"&gt;Python CIM access&lt;/A&gt;. All of the layer's properties are accessible through the &lt;A href="https://github.com/esri/cim-spec" target="_blank" rel="noopener"&gt;Cartographic Information Model&lt;/A&gt; (CIM), and you can use the arcpy.mp &lt;FONT face="courier new,courier"&gt;Layer&lt;/FONT&gt; class' &lt;FONT face="courier new,courier"&gt;getDefinition()&lt;/FONT&gt; method to retrieve the layer's CIM definition, make changes, then push the changes back to the layer using the &lt;FONT face="courier new,courier"&gt;setDefinition()&lt;/FONT&gt; method.&lt;/P&gt;&lt;P&gt;Here's an example of setting the 2 properties you noted:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;aprx = arcpy.mp.ArcGISProject("CURRENT")
map = aprx.listMaps('Map')[0]               #Get first Map named Map
lyr = map.listLayers('Point')[0]            #Get first layer in the map named Point

l_cim = lyr.getDefinition('V3')             #Get Layer CIM definition

#Update some CIM properties:
l_cim.scaleSymbols = True                   #'Scale symbols when a reference scale is set' property
l_cim.featureTable.displayField = "Notes"   #'Display field' property

lyr.setDefinition(l_cim)                    #Set the Layer's updated CIM definition&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 20 Feb 2025 15:20:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-arcgis-pro-layer-properties-class-to-python/idc-p/1587502#M33901</guid>
      <dc:creator>JesseWickizer</dc:creator>
      <dc:date>2025-02-20T15:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add ArcGIS Pro Layer Properties Class to Python - Status changed to: Already Offered</title>
      <link>https://community.esri.com/t5/arcgis-pro-ideas/add-arcgis-pro-layer-properties-class-to-python/idc-p/1607173#M34527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/867492"&gt;@STrimble&lt;/a&gt;, thank you for submitting this idea - I've closed the idea as already offered given the information my colleague provided in the post above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2025 21:57:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-ideas/add-arcgis-pro-layer-properties-class-to-python/idc-p/1607173#M34527</guid>
      <dc:creator>HannesZiegler</dc:creator>
      <dc:date>2025-04-17T21:57:44Z</dc:date>
    </item>
  </channel>
</rss>

