<?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: ¿Can I change symbology of layer from &amp;quot;OTHER&amp;quot; to  &amp;quot;UNIQUE_VALUES&amp;quot; ? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/can-i-change-symbology-of-layer-from-quot-other/m-p/120708#M9458</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/es/desktop/latest/analyze/arcpy-mapping/uniquevaluessymbology-class.htm" title="http://desktop.arcgis.com/es/desktop/latest/analyze/arcpy-mapping/uniquevaluessymbology-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;UniqueValuesSymbology—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="kn"&gt;import&lt;/SPAN&gt; &lt;SPAN class="nn"&gt;arcpy&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;mxd&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;mapping&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;MapDocument&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"current"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;lyr&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;mapping&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ListLayers&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;mxd&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"Population"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)[&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;0&lt;/SPAN&gt;&lt;SPAN class="p"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="k"&gt;if&lt;/SPAN&gt; &lt;SPAN class="n"&gt;lyr&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;symbologyType&lt;/SPAN&gt; &lt;SPAN class="o"&gt;==&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"UNIQUE_VALUES"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="n"&gt;lyr&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;symbology&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;valueField&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"SUB_REGION"&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="n"&gt;lyr&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;symbology&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;addAllValues&lt;/SPAN&gt;&lt;SPAN class="p"&gt;()&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;RefreshActiveView&lt;/SPAN&gt;&lt;SPAN class="p"&gt;()&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;RefreshTOC&lt;/SPAN&gt;&lt;SPAN class="p"&gt;()&lt;/SPAN&gt;
&lt;SPAN class="k"&gt;del&lt;/SPAN&gt; &lt;SPAN class="n"&gt;mxd&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I've seen the class , this can only be used if the layer previously is defined with "UNIQUE_VALUES ". But as I explained earlier when I add the default layer symbology is OTHERS, I would like to generate a unique symbology when I make the layer . ¿Could you help me with an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 07:00:57 GMT</pubDate>
    <dc:creator>AuraRamos_Lora1</dc:creator>
    <dc:date>2021-12-11T07:00:57Z</dc:date>
    <item>
      <title>¿Can I change symbology of layer from "OTHER" to  "UNIQUE_VALUES" ?</title>
      <link>https://community.esri.com/t5/python-questions/can-i-change-symbology-of-layer-from-quot-other/m-p/120706#M9456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I add a layer this by default&amp;nbsp; is "OTHER", I want to apply unique value by default&amp;nbsp; programmatically by some field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
dirmxd = "D:\Borrrar\D143\Ejecutables\D143v10_3.mxd"
fc = "D:\Borrrar\D143\BaseMapas.gdb\estruclin"
mxd=arcpy.mapping.MapDocument(mxd)
df = arcpy.mapping.ListDataFrames(mxd)[0]
layer = arcpy.MakeFeatureLayer_management(fc,"estruc")
lyr = arcpy.mapping.Layer(layer)
arcpy.mapping.AddLayer(df, lyr, "AUTO_ARRANGE")
tipo = lyr.symbologyType ### print OTHER&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don´t have a lyr, I have a general style&amp;nbsp; that I want to apply with class styleItem: legend.updateItem(lyr, styleItem)&lt;/P&gt;&lt;P&gt;I seen a example: &lt;A href="http://desktop.arcgis.com/es/desktop/latest/analyze/arcpy-mapping/styleitem-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;http://desktop.arcgis.com/es/desktop/latest/analyze/arcpy-mapping/styleitem-class.htm&lt;/A&gt; &lt;/P&gt;&lt;P&gt;but first I need a layer classify by unique value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perhaps I have to generate the classified layer before add, but I don't know how to do it without ever having another layer of reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&amp;nbsp; Thanks and regards...&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:00:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-i-change-symbology-of-layer-from-quot-other/m-p/120706#M9456</guid>
      <dc:creator>AuraRamos_Lora1</dc:creator>
      <dc:date>2021-12-11T07:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Can I change symbology of layer from "OTHER" to  "UNIQUE_VALUES" ?</title>
      <link>https://community.esri.com/t5/python-questions/can-i-change-symbology-of-layer-from-quot-other/m-p/120707#M9457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Aura ... have you explored some of the appropriate portions of the arcpy classes and methods? for example&lt;/P&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/uniquevaluessymbology-class.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/uniquevaluessymbology-class.htm"&gt;UniqueValuesSymbology—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Mar 2016 00:22:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-i-change-symbology-of-layer-from-quot-other/m-p/120707#M9457</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-19T00:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Can I change symbology of layer from "OTHER" to  "UNIQUE_VALUES" ?</title>
      <link>https://community.esri.com/t5/python-questions/can-i-change-symbology-of-layer-from-quot-other/m-p/120708#M9458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://desktop.arcgis.com/es/desktop/latest/analyze/arcpy-mapping/uniquevaluessymbology-class.htm" title="http://desktop.arcgis.com/es/desktop/latest/analyze/arcpy-mapping/uniquevaluessymbology-class.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;UniqueValuesSymbology—Help | ArcGIS for Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="kn"&gt;import&lt;/SPAN&gt; &lt;SPAN class="nn"&gt;arcpy&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;mxd&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;mapping&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;MapDocument&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s"&gt;"current"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;lyr&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="n"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;mapping&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;ListLayers&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;mxd&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"Population"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)[&lt;/SPAN&gt;&lt;SPAN class="mi"&gt;0&lt;/SPAN&gt;&lt;SPAN class="p"&gt;]&lt;/SPAN&gt;
&lt;SPAN class="k"&gt;if&lt;/SPAN&gt; &lt;SPAN class="n"&gt;lyr&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;symbologyType&lt;/SPAN&gt; &lt;SPAN class="o"&gt;==&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"UNIQUE_VALUES"&lt;/SPAN&gt;&lt;SPAN class="p"&gt;:&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="n"&gt;lyr&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;symbology&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;valueField&lt;/SPAN&gt; &lt;SPAN class="o"&gt;=&lt;/SPAN&gt; &lt;SPAN class="s"&gt;"SUB_REGION"&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="n"&gt;lyr&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;symbology&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;addAllValues&lt;/SPAN&gt;&lt;SPAN class="p"&gt;()&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;RefreshActiveView&lt;/SPAN&gt;&lt;SPAN class="p"&gt;()&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;arcpy&lt;/SPAN&gt;&lt;SPAN class="o"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;RefreshTOC&lt;/SPAN&gt;&lt;SPAN class="p"&gt;()&lt;/SPAN&gt;
&lt;SPAN class="k"&gt;del&lt;/SPAN&gt; &lt;SPAN class="n"&gt;mxd&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I've seen the class , this can only be used if the layer previously is defined with "UNIQUE_VALUES ". But as I explained earlier when I add the default layer symbology is OTHERS, I would like to generate a unique symbology when I make the layer . ¿Could you help me with an example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/blush.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 07:00:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-i-change-symbology-of-layer-from-quot-other/m-p/120708#M9458</guid>
      <dc:creator>AuraRamos_Lora1</dc:creator>
      <dc:date>2021-12-11T07:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: ¿Can I change symbology of layer from "OTHER" to  "UNIQUE_VALUES" ?</title>
      <link>https://community.esri.com/t5/python-questions/can-i-change-symbology-of-layer-from-quot-other/m-p/120709#M9459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I only see &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/updatelayer.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/updatelayer.htm"&gt;UpdateLayer—Help | ArcGIS for Desktop&lt;/A&gt; which implies you have to have something already prepared to use.&amp;nbsp; I can't find anything offhand to actually create the classification within arcpy mapping or arcpy ma (in PRO), but I don't do much mapping automation, so I will have to defer to those that do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Mar 2016 16:57:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-i-change-symbology-of-layer-from-quot-other/m-p/120709#M9459</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-03-22T16:57:23Z</dc:date>
    </item>
  </channel>
</rss>

