<?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 Apply Symbology From Layer File Issue in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/apply-symbology-from-layer-file-issue/m-p/400937#M31559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script that generates a shapefile of zones in my state which have a boil order in effect.&amp;nbsp; So when the script runs, the zones with boil orders and the valid times of the boil orders will almost always change.&amp;nbsp; That part works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to display the shapefile so that the expiration time always displays in the legend.&amp;nbsp; To do that, I imported the shapefile into ArcMap, clicked on Properties &amp;gt; Symbology &amp;gt; Show Categories &amp;gt; Unique Values.&amp;nbsp; I unchecked &amp;lt;all other values&amp;gt; and selected the attribute for expiration time as the Value Field.&amp;nbsp; I also set the colors and borders for the zones to my preference.&amp;nbsp; I then saved the shapefile off as a layer file so that I could always reference these settings in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the problem: When a new shapefile is created, it does not display in arcmap.&amp;nbsp; Even though the attribute name of the expiration time is always the same, when there is a different value in there, it causes the shapefile display to be blank.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use python ApplySymbologyFromLayer or UpdateLayer commands, the layer will display and the valid time does update in the legend.&amp;nbsp; BUT, the layer colors revert back to the generic random color rather than the colors and border settings I need.&amp;nbsp; Can't have the colors always display different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spent many hours trying to work this out but no luck.&amp;nbsp; Any ideas how to get around this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Aug 2011 01:14:14 GMT</pubDate>
    <dc:creator>NickFillo</dc:creator>
    <dc:date>2011-08-02T01:14:14Z</dc:date>
    <item>
      <title>Apply Symbology From Layer File Issue</title>
      <link>https://community.esri.com/t5/python-questions/apply-symbology-from-layer-file-issue/m-p/400937#M31559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script that generates a shapefile of zones in my state which have a boil order in effect.&amp;nbsp; So when the script runs, the zones with boil orders and the valid times of the boil orders will almost always change.&amp;nbsp; That part works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to display the shapefile so that the expiration time always displays in the legend.&amp;nbsp; To do that, I imported the shapefile into ArcMap, clicked on Properties &amp;gt; Symbology &amp;gt; Show Categories &amp;gt; Unique Values.&amp;nbsp; I unchecked &amp;lt;all other values&amp;gt; and selected the attribute for expiration time as the Value Field.&amp;nbsp; I also set the colors and borders for the zones to my preference.&amp;nbsp; I then saved the shapefile off as a layer file so that I could always reference these settings in the future.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the problem: When a new shapefile is created, it does not display in arcmap.&amp;nbsp; Even though the attribute name of the expiration time is always the same, when there is a different value in there, it causes the shapefile display to be blank.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I use python ApplySymbologyFromLayer or UpdateLayer commands, the layer will display and the valid time does update in the legend.&amp;nbsp; BUT, the layer colors revert back to the generic random color rather than the colors and border settings I need.&amp;nbsp; Can't have the colors always display different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Spent many hours trying to work this out but no luck.&amp;nbsp; Any ideas how to get around this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 01:14:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/apply-symbology-from-layer-file-issue/m-p/400937#M31559</guid>
      <dc:creator>NickFillo</dc:creator>
      <dc:date>2011-08-02T01:14:14Z</dc:date>
    </item>
  </channel>
</rss>

