<?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: Update Layer Symbology in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/update-layer-symbology/m-p/727569#M56415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to do something similar and have followed the link posted above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting an error: Runtime error &amp;lt;type 'exceptions.IndexError'&amp;gt;: list index out of range&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code I am working on is trying to change the symbology&amp;nbsp; of one file, I actually need it to work on many files. Can someone help me with the code below to make this happen! Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
mxd = arcpy.mapping.MapDocument(r"D:\updatelayer\mxd1.mxd")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
updateLayer = arcpy.mapping.ListLayers(mxd, "FFDI_19900102", df)[0]
sourceLayer = arcpy.mapping.Layer(r"C:\Project\Data\FFDI_19900101.img.lyr")
arcpy.mapping.UpdateLayer(df, updateLayer, sourceLayer, True)
mxd.saveACopy(r"D:\updatelayer\test.mxd")
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 07:06:56 GMT</pubDate>
    <dc:creator>SarahBurns</dc:creator>
    <dc:date>2021-12-12T07:06:56Z</dc:date>
    <item>
      <title>Update Layer Symbology</title>
      <link>https://community.esri.com/t5/python-questions/update-layer-symbology/m-p/727567#M56413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If I am working with an MXD that has multiple river layers and each layer has different symbology ex color, and line thickness. Is there a way to use python script to change all the river layers to have the same symbology. I want to be able to change all the layers symbology at the same time with out having to go into the properties of each layer and making the changes there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can I use a reference MXD with the symbology I want and through python use the reference layer to update the other layers symbology?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2011 04:02:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-layer-symbology/m-p/727567#M56413</guid>
      <dc:creator>jenniferstarbuck</dc:creator>
      <dc:date>2011-06-19T04:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Update Layer Symbology</title>
      <link>https://community.esri.com/t5/python-questions/update-layer-symbology/m-p/727568#M56414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, by using &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00s30000003p000000.htm"&gt;UpdateLayer in arcpy.mapping&lt;/A&gt;&lt;SPAN&gt; with the symbology_only argument set to True.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2011 16:34:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-layer-symbology/m-p/727568#M56414</guid>
      <dc:creator>JasonScheirer</dc:creator>
      <dc:date>2011-06-19T16:34:53Z</dc:date>
    </item>
    <item>
      <title>Re: Update Layer Symbology</title>
      <link>https://community.esri.com/t5/python-questions/update-layer-symbology/m-p/727569#M56415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am trying to do something similar and have followed the link posted above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting an error: Runtime error &amp;lt;type 'exceptions.IndexError'&amp;gt;: list index out of range&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code I am working on is trying to change the symbology&amp;nbsp; of one file, I actually need it to work on many files. Can someone help me with the code below to make this happen! Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
mxd = arcpy.mapping.MapDocument(r"D:\updatelayer\mxd1.mxd")
df = arcpy.mapping.ListDataFrames(mxd, "Layers")[0]
updateLayer = arcpy.mapping.ListLayers(mxd, "FFDI_19900102", df)[0]
sourceLayer = arcpy.mapping.Layer(r"C:\Project\Data\FFDI_19900101.img.lyr")
arcpy.mapping.UpdateLayer(df, updateLayer, sourceLayer, True)
mxd.saveACopy(r"D:\updatelayer\test.mxd")
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:06:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/update-layer-symbology/m-p/727569#M56415</guid>
      <dc:creator>SarahBurns</dc:creator>
      <dc:date>2021-12-12T07:06:56Z</dc:date>
    </item>
  </channel>
</rss>

