<?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: Get style of the layer using Arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017845#M59567</link>
    <description>&lt;P&gt;Thanks for your help, it looks like I have to use arcpy.mp (Python 3) instead of arcpy.mapping (Python 2) to read these properties like color, size, or font.&lt;/P&gt;&lt;P&gt;It means I have to use ArcGIS Pro instead of ArcGIS Desktop because of &lt;A href="https://support.esri.com/en/technical-article/000011186#:~:text=No%2C%20the%20version%20of%20Python,ArcGIS%20products%20cannot%20be%20upgraded." target="_self"&gt;this&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 05:03:11 GMT</pubDate>
    <dc:creator>PhongTrần</dc:creator>
    <dc:date>2021-01-19T05:03:11Z</dc:date>
    <item>
      <title>Get style of the layer using Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017827#M59563</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to extract the style from the selected layer using Arcpy; but, it seems like there are no properties like color, size, font, etc,...&lt;/P&gt;&lt;P&gt;I run this code on the Python console in ArcMap:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;mxd = arcpy.mapping.MapDocument("CURRENT")
layers = arcpy.mapping.ListLayers(mxd)

exampleLayer = layers[0] # This is Feature layer
# I want to get properties like color, size,... from the layer
# But it is not supported&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am hoping someone can help me out!&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many thank!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 02:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017827#M59563</guid>
      <dc:creator>PhongTrần</dc:creator>
      <dc:date>2021-01-19T02:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Get style of the layer using Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017830#M59564</link>
      <description>&lt;P&gt;Refer to the &lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/layer-class.htm" target="_self"&gt;arcpy documentation for the Layer class&lt;/A&gt;. You'll see that by calling various properties, like &lt;FONT face="courier new,courier"&gt;exampleLayer.symbology&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;exampleLayer.symbologyType&lt;/FONT&gt;, you can access the layer's properties you're looking for.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 03:08:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017830#M59564</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-01-19T03:08:25Z</dc:date>
    </item>
    <item>
      <title>Re: Get style of the layer using Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017836#M59565</link>
      <description>&lt;P&gt;Thanks for your quick response, but I have tried it before.&lt;/P&gt;&lt;P&gt;In my case, the &lt;SPAN&gt;&lt;FONT face="courier new,courier"&gt;exampleLayer.symbology&lt;/FONT&gt; is&amp;nbsp;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/analyze/arcpy-mapping/uniquevaluessymbology-class.htm" target="_self"&gt;UniqueValuesSymbology&lt;/A&gt;&amp;nbsp;. It has properties like description, labels, value, and the value field. But what I want is properties like &lt;STRONG&gt;color, size, font&lt;/STRONG&gt;,...&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 03:19:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017836#M59565</guid>
      <dc:creator>PhongTrần</dc:creator>
      <dc:date>2021-01-19T03:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get style of the layer using Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017842#M59566</link>
      <description>&lt;P&gt;It won't be easy if at all.... here is the path to follow in the help&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/uniquevaluerenderer-class.htm" target="_blank"&gt;UniqueValueRenderer—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/item-class.htm" target="_blank"&gt;Item—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/symbol-class.htm" target="_blank"&gt;Symbol—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 04:04:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017842#M59566</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-01-19T04:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get style of the layer using Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017845#M59567</link>
      <description>&lt;P&gt;Thanks for your help, it looks like I have to use arcpy.mp (Python 3) instead of arcpy.mapping (Python 2) to read these properties like color, size, or font.&lt;/P&gt;&lt;P&gt;It means I have to use ArcGIS Pro instead of ArcGIS Desktop because of &lt;A href="https://support.esri.com/en/technical-article/000011186#:~:text=No%2C%20the%20version%20of%20Python,ArcGIS%20products%20cannot%20be%20upgraded." target="_self"&gt;this&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 05:03:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017845#M59567</guid>
      <dc:creator>PhongTrần</dc:creator>
      <dc:date>2021-01-19T05:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Get style of the layer using Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017848#M59568</link>
      <description>&lt;P&gt;Thats right... CIM has only been recently introduced and not backported to ArcMap.&lt;/P&gt;&lt;P&gt;Time to move on, python 2.7 is done in any event and ArcMap will be terminal soon &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 05:47:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/get-style-of-the-layer-using-arcpy/m-p/1017848#M59568</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-01-19T05:47:41Z</dc:date>
    </item>
  </channel>
</rss>

