<?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 Problems with symbology on arcpy.mapping in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/problems-with-symbology-on-arcpy-mapping/m-p/629417#M48983</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a layer that I added on a mxd through arcpy. However, the symbologyTipe is comming as "OTHER" and I need it to take the symbology as a UNIQUE CLASS. I can't change it and I tryed the UpdateLayer, but nothing happens to my layer. I tryed both in my script and following it on ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tryed "arcpy.ApplySymbologyFromLayer_management" but it didn't work either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does someone knows how to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Mar 2013 15:27:07 GMT</pubDate>
    <dc:creator>LeticiaNascimento</dc:creator>
    <dc:date>2013-03-01T15:27:07Z</dc:date>
    <item>
      <title>Problems with symbology on arcpy.mapping</title>
      <link>https://community.esri.com/t5/python-questions/problems-with-symbology-on-arcpy-mapping/m-p/629417#M48983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a layer that I added on a mxd through arcpy. However, the symbologyTipe is comming as "OTHER" and I need it to take the symbology as a UNIQUE CLASS. I can't change it and I tryed the UpdateLayer, but nothing happens to my layer. I tryed both in my script and following it on ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also tryed "arcpy.ApplySymbologyFromLayer_management" but it didn't work either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does someone knows how to do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2013 15:27:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problems-with-symbology-on-arcpy-mapping/m-p/629417#M48983</guid>
      <dc:creator>LeticiaNascimento</dc:creator>
      <dc:date>2013-03-01T15:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with symbology on arcpy.mapping</title>
      <link>https://community.esri.com/t5/python-questions/problems-with-symbology-on-arcpy-mapping/m-p/629418#M48984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only way to change a symbology type in arcpy is via update layer.&amp;nbsp; Can you tell us more about the layer that is failing and the code you are using?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Mar 2013 16:27:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problems-with-symbology-on-arcpy-mapping/m-p/629418#M48984</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2013-03-02T16:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with symbology on arcpy.mapping</title>
      <link>https://community.esri.com/t5/python-questions/problems-with-symbology-on-arcpy-mapping/m-p/629419#M48985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, Jeff!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code is something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy.mapping as MP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lyrboias = MP.Layer("c:/GIS_tutorial/SHP/BOIAS_PAC.shp") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;lyrboias.name = "Boias" &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;molde_boias = MP.Layer("c:/GIS/Boias_molde.lyr")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MP.AddLayer(df, lyrboias, "TOP") &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;updateLayer = MP.ListLayers(mxd, "Boias", df)[0] &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;MP.UpdateLayer(df, updateLayer, molde_boias, False)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I noticed that it is, in fact, updating the "molde_boias". The problem is: in my shape called lyrboias I have an item in the attribute table called "Tipo". I need it to classify the SHP in the two classes I have inside the "Tipo" attribute and collered it with green and red. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Letícia&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2013 14:47:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problems-with-symbology-on-arcpy-mapping/m-p/629419#M48985</guid>
      <dc:creator>LeticiaNascimento</dc:creator>
      <dc:date>2013-03-04T14:47:19Z</dc:date>
    </item>
  </channel>
</rss>

