<?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 Manipulate Symbol Layer Drawing in Arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/manipulate-symbol-layer-drawing-in-arcpy/m-p/1201311#M65266</link>
    <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;Is there a way using Arcpy, to change symbol layer drawing settings for a layer that uses the UniqueValueRenderer. I am looking to adjust settings in the menu in the screenshot programmatically to ensure that the map layers draw in the correct order. Specifically, it would be nice if there is an arcpy method that I can use to programmatically reset the Symbol layer drawing settings. I can provide additional details if necessary. Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Symbol Layer Drawing.PNG" style="width: 414px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48250iE62600FAA397F247/image-size/large?v=v2&amp;amp;px=999" role="button" title="Symbol Layer Drawing.PNG" alt="Symbol Layer Drawing.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Symbol Layer Drawing Reset Button.PNG" style="width: 431px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48254i76A87BA65094E855/image-size/large?v=v2&amp;amp;px=999" role="button" title="Symbol Layer Drawing Reset Button.PNG" alt="Symbol Layer Drawing Reset Button.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 10 Aug 2022 14:04:19 GMT</pubDate>
    <dc:creator>NicoKroes</dc:creator>
    <dc:date>2022-08-10T14:04:19Z</dc:date>
    <item>
      <title>Manipulate Symbol Layer Drawing in Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/manipulate-symbol-layer-drawing-in-arcpy/m-p/1201311#M65266</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;Is there a way using Arcpy, to change symbol layer drawing settings for a layer that uses the UniqueValueRenderer. I am looking to adjust settings in the menu in the screenshot programmatically to ensure that the map layers draw in the correct order. Specifically, it would be nice if there is an arcpy method that I can use to programmatically reset the Symbol layer drawing settings. I can provide additional details if necessary. Thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Symbol Layer Drawing.PNG" style="width: 414px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48250iE62600FAA397F247/image-size/large?v=v2&amp;amp;px=999" role="button" title="Symbol Layer Drawing.PNG" alt="Symbol Layer Drawing.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Symbol Layer Drawing Reset Button.PNG" style="width: 431px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/48254i76A87BA65094E855/image-size/large?v=v2&amp;amp;px=999" role="button" title="Symbol Layer Drawing Reset Button.PNG" alt="Symbol Layer Drawing Reset Button.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 14:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/manipulate-symbol-layer-drawing-in-arcpy/m-p/1201311#M65266</guid>
      <dc:creator>NicoKroes</dc:creator>
      <dc:date>2022-08-10T14:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Manipulate Symbol Layer Drawing in Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/manipulate-symbol-layer-drawing-in-arcpy/m-p/1201428#M65272</link>
      <description>&lt;P&gt;I'm wondering if this could be done through the UniquaValueRenderer class by manipulating the ItemGroup.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/mapping/uniquevaluerenderer-class.htm" target="_blank" rel="noopener"&gt;uniquevaluerenderer-class&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the docs: If, for whatever reason, new values are added to the layer, you will need to reset the renderer so that all the values are added again. You can do this by changing the &lt;SPAN class=""&gt;fields&lt;/SPAN&gt; property, or you can use the &lt;SPAN class=""&gt;addValues&lt;/SPAN&gt; method.&lt;/P&gt;&lt;P&gt;You need to understand how unique values are managed in the renderer so you can navigate through the class structure to change individual items and their values. The &lt;SPAN class=""&gt;groups&lt;/SPAN&gt; property returns a list of &lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/mapping/itemgroup-class.htm" target="_blank" rel="noopener"&gt;ItemGroup&lt;/A&gt; objects. Each &lt;SPAN class=""&gt;ItemGroup&lt;/SPAN&gt; represents a category of &lt;SPAN class=""&gt;items&lt;/SPAN&gt; that each have their own &lt;SPAN class=""&gt;heading&lt;/SPAN&gt;. By default, there is one &lt;SPAN class=""&gt;ItemGroup&lt;/SPAN&gt;. The &lt;SPAN class=""&gt;items&lt;/SPAN&gt; property returns a list of &lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/mapping/item-class.htm" target="_blank" rel="noopener"&gt;Item&lt;/A&gt; objects. Once you have an &lt;SPAN class=""&gt;item&lt;/SPAN&gt;, you can change properties such as &lt;SPAN class=""&gt;label&lt;/SPAN&gt; and &lt;SPAN class=""&gt;description&lt;/SPAN&gt;. You can also modify the &lt;A href="https://pro.arcgis.com/en/pro-app/2.8/arcpy/mapping/symbol-class.htm" target="_blank" rel="noopener"&gt;symbol&lt;/A&gt; for each item.&lt;/P&gt;&lt;P&gt;So for the drawing order, if that is what you are after, maybe arrange the items in the item group to the order you want and see if it works or use the remove/ addItem methods.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 17:06:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/manipulate-symbol-layer-drawing-in-arcpy/m-p/1201428#M65272</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-08-10T17:06:02Z</dc:date>
    </item>
  </channel>
</rss>

