<?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 Can you import both symbology AND labels from a created source layer? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/can-you-import-both-symbology-and-labels-from-a/m-p/239794#M18661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I work with a lot of point based data layers that I create on a daily basis.&amp;nbsp; In the past up to the present, after creating a point shapefile from an excel sheet with the data, I have a macro that was created using VBScript that put a specialized label on these points. You simply clicked the button and then it labeled each different point (the points represent different types of apartment complexes) based on its apartment type.&amp;nbsp; What I'm trying to do now, as VBScript is becoming out-dated, is create a Python script using ArcPy that can do the same thing.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to do this I have created a Layer file from one of these point shapefiles and have it ready to import the symbology from using the UpdateLayer() function.&amp;nbsp; The problem is, at best, the UpdateLayer() function will only update the symbology of the new shapefile with the symbology from the created source layer which occurs only when the [import symbology only] parameter is set to True.&amp;nbsp; If I set it to false, the source layer completely replaces the layer that I want to update.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: Is there a way you can import both symbology &lt;SPAN style="text-decoration: underline;"&gt;and&lt;/SPAN&gt; label styles from a source layer?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone I spoke to about this earlier suggested adding something at the end of my script to "re-source back to the data &lt;I&gt; want," but I'm not familiar with this process.&amp;nbsp; Any help or advice would be highly appreciated.&lt;/I&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Oct 2014 21:10:15 GMT</pubDate>
    <dc:creator>TylerSpears</dc:creator>
    <dc:date>2014-10-23T21:10:15Z</dc:date>
    <item>
      <title>Can you import both symbology AND labels from a created source layer?</title>
      <link>https://community.esri.com/t5/python-questions/can-you-import-both-symbology-and-labels-from-a/m-p/239794#M18661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I work with a lot of point based data layers that I create on a daily basis.&amp;nbsp; In the past up to the present, after creating a point shapefile from an excel sheet with the data, I have a macro that was created using VBScript that put a specialized label on these points. You simply clicked the button and then it labeled each different point (the points represent different types of apartment complexes) based on its apartment type.&amp;nbsp; What I'm trying to do now, as VBScript is becoming out-dated, is create a Python script using ArcPy that can do the same thing.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In order to do this I have created a Layer file from one of these point shapefiles and have it ready to import the symbology from using the UpdateLayer() function.&amp;nbsp; The problem is, at best, the UpdateLayer() function will only update the symbology of the new shapefile with the symbology from the created source layer which occurs only when the [import symbology only] parameter is set to True.&amp;nbsp; If I set it to false, the source layer completely replaces the layer that I want to update.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My question is: Is there a way you can import both symbology &lt;SPAN style="text-decoration: underline;"&gt;and&lt;/SPAN&gt; label styles from a source layer?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone I spoke to about this earlier suggested adding something at the end of my script to "re-source back to the data &lt;I&gt; want," but I'm not familiar with this process.&amp;nbsp; Any help or advice would be highly appreciated.&lt;/I&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 21:10:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-you-import-both-symbology-and-labels-from-a/m-p/239794#M18661</guid>
      <dc:creator>TylerSpears</dc:creator>
      <dc:date>2014-10-23T21:10:15Z</dc:date>
    </item>
  </channel>
</rss>

