<?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 Re: Who Loves the Python CIM (Cartographic Information Model) Access? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/who-loves-the-python-cim-cartographic-information/m-p/1407236#M81589</link>
    <description>&lt;P&gt;I was having an otherwise good day until you mentioned accursed Field Mappings.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Apr 2024 17:45:17 GMT</pubDate>
    <dc:creator>Brian_Wilson</dc:creator>
    <dc:date>2024-04-08T17:45:17Z</dc:date>
    <item>
      <title>Who Loves the Python CIM (Cartographic Information Model) Access?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/who-loves-the-python-cim-cartographic-information/m-p/1407211#M81584</link>
      <description>&lt;P&gt;Seems&amp;nbsp;&lt;A title="Python CIM Access)" href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/python-cim-access.htm" target="_self"&gt;Python CIM Access&lt;/A&gt;&amp;nbsp;is a continuation of potentially productive Python automation in the ArcGIS workflow that will eventually flame out because the API design failed to abstract xml hierarchical file manipulation into classes, methods, and attributes that were generalized coherently.&amp;nbsp; Look no further than these highly ranked Stack Exchange GIS Pros who essentially advise those interested in the FieldMapping classes to...brute force it ( &lt;A title="Field Mapping Alternatives" href="https://gis.stackexchange.com/questions/328425/using-field-mapping-with-arcpy" target="_self"&gt;Field Mapping Alternatives&lt;/A&gt;&amp;nbsp;).&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The last line is my Case In Point.&amp;nbsp; Accessing symbology on layers symbolized by unique values should not involve drilling down 7 times; particularly&amp;nbsp;&lt;STRONG&gt;symbol.symbol&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import copy
p = arcpy.mp.ArcGISProject('current')
m = p.listMaps('Map')[0]
l = m.listLayers('COS_basin_minor_2024')[0]
cim_lyr = l.getDefinition('V3')
# Change or View Colors
cim_lyr.renderer.groups[0].classes[0].symbol.symbol.symbolLayers[1].color.values
&amp;gt;&amp;gt;&amp;gt; [348, 29, 99, 100]&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2024-04-08 104826.png" style="width: 179px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/100374iD303A52BB9A8D95C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2024-04-08 104826.png" alt="Screenshot 2024-04-08 104826.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If anybody has advice on taming the CIM from a productivity and reproducibility standpoint, &lt;STRONG&gt;I'd love to hear YOUR successful applications&lt;/STRONG&gt;.&amp;nbsp; It seems accessing attributes like symbology, labels, etc. vary based on whether there is a color ramp applied, symbology from field values, and of course no continuity between rasters and vectors.&amp;nbsp; Very reminiscent of the difficulty in manipulating Field Mappings i.e. merging data.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More to be Desired,&lt;/P&gt;&lt;P&gt;Zach&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 17:12:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/who-loves-the-python-cim-cartographic-information/m-p/1407211#M81584</guid>
      <dc:creator>ZacharyUhlmann1</dc:creator>
      <dc:date>2024-04-08T17:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: Who Loves the Python CIM (Cartographic Information Model) Access?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/who-loves-the-python-cim-cartographic-information/m-p/1407236#M81589</link>
      <description>&lt;P&gt;I was having an otherwise good day until you mentioned accursed Field Mappings.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2024 17:45:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/who-loves-the-python-cim-cartographic-information/m-p/1407236#M81589</guid>
      <dc:creator>Brian_Wilson</dc:creator>
      <dc:date>2024-04-08T17:45:17Z</dc:date>
    </item>
  </channel>
</rss>

