<?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: Apply symbology, labels, hatches in arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106753#M8242</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the advice Jeff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying UpdateLayer but it's not working yet - but (oddly enough) not throwing an exception either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will have another play today.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Roger&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Nov 2011 20:56:22 GMT</pubDate>
    <dc:creator>RogerLoweth</dc:creator>
    <dc:date>2011-11-08T20:56:22Z</dc:date>
    <item>
      <title>Apply symbology, labels, hatches in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106751#M8240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a polyline ZM layer into which I want to apply symbology, route/hatching and labels from an eixsting layer on disk.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I know how to do the symbology:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.ApplySymbologyFromLayer_management(out_layer, in_layer)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone know how to apply route/hatching and lables programmatically?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers, Roger&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 06:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106751#M8240</guid>
      <dc:creator>RogerLoweth</dc:creator>
      <dc:date>2011-11-07T06:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Apply symbology, labels, hatches in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106752#M8241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Have you tried using arcpy.mappingUpdateLayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/UpdateLayer/00s30000003p000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/UpdateLayer/00s30000003p000000/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Nov 2011 13:21:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106752#M8241</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-11-07T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Apply symbology, labels, hatches in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106753#M8242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the advice Jeff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying UpdateLayer but it's not working yet - but (oddly enough) not throwing an exception either.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will have another play today.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Roger&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 20:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106753#M8242</guid>
      <dc:creator>RogerLoweth</dc:creator>
      <dc:date>2011-11-08T20:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Apply symbology, labels, hatches in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106754#M8243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is working now - finger trouble &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks Jeff &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Nov 2011 22:13:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106754#M8243</guid>
      <dc:creator>RogerLoweth</dc:creator>
      <dc:date>2011-11-08T22:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Apply symbology, labels, hatches in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106755#M8244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to do this with just the LABELS?&amp;nbsp; To my understanding with UpdateLayer is that it's just symbology or everything.&amp;nbsp; I just want to bring over just the symbology and labels and no other layer properties.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2011 16:46:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106755#M8244</guid>
      <dc:creator>deleted-user-MS0lE1F_0-sy</dc:creator>
      <dc:date>2011-12-20T16:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Apply symbology, labels, hatches in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106756#M8245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No there is not.&amp;nbsp; You would need to author the layer file with all the layer properties and then use it with UpdateLayer.&amp;nbsp; This doesn't make sense if you only want to update one or two layers but if you want to update the same layer multiple times in multiple MXDs it may be worthwhile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Dec 2011 14:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106756#M8245</guid>
      <dc:creator>JeffBarrette</dc:creator>
      <dc:date>2011-12-21T14:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Apply symbology, labels, hatches in arcpy</title>
      <link>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106757#M8246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;FYI - In case someone comes across this same issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I authored the layer file as suggested.&amp;nbsp; However the UpdateLayer is limited on what it can do.&amp;nbsp; It can either get the symbology from another layer, or it basically Removes and Adds a new layer.&amp;nbsp; Instead this is what I ended up having to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# 1st make sure the authored layer is in the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for lyr in arcpy.mapping.ListLayers(mxd5):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.supports("DATASOURCE"):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if lyr.dataSource == r"C:\Location of the authored layer\the name of the authored layer":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.replaceDataSource(r"C:\Location of the new data","FILEGDB_WORKSPACE","name as it appears in the workspace")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.name = "name as it appears in the workspace"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2012 15:03:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/apply-symbology-labels-hatches-in-arcpy/m-p/106757#M8246</guid>
      <dc:creator>deleted-user-MS0lE1F_0-sy</dc:creator>
      <dc:date>2012-01-04T15:03:27Z</dc:date>
    </item>
  </channel>
</rss>

