<?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: set symbology by lyr file VERY slow in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/set-symbology-by-lyr-file-very-slow/m-p/608950#M47523</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow up: The python window shows:&lt;/P&gt;&lt;P&gt;Succeeded at Fri Mar 04 10:..... (Elapsed Time 0.06 seconds)&lt;/P&gt;&lt;P&gt;but this takes many minutes to pop up. &lt;/P&gt;&lt;P&gt;Evidently the process itself is quite fast, but the sequential process is glacially slow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Mar 2016 15:25:32 GMT</pubDate>
    <dc:creator>JimCousins</dc:creator>
    <dc:date>2016-03-04T15:25:32Z</dc:date>
    <item>
      <title>set symbology by lyr file VERY slow</title>
      <link>https://community.esri.com/t5/python-questions/set-symbology-by-lyr-file-very-slow/m-p/608949#M47522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have over 200 ascii files, and a .lyr file for the classification I wish to set. I have used the following in the python window, but it is taking HOURS to cycle through. There must be a better way to do this, can anyone point me to a quicker / better solution?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; mxd = arcpy.mapping.MapDocument("CURRENT")&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; df = arcpy.mapping.ListDataFrames(mxd, "*") [0]&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; lyrSource = r"Z:\1393_HANFORD_FY2016\062_FY2016_100_Areas_PT_Rpt\GIS\CrVI_ASC.lyr"&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; for lyr in arcpy.mapping.ListLayers(mxd, "*.asc",df):&lt;/P&gt;&lt;P&gt;...&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.ApplySymbologyFromLayer_management(lyr,lyrSource)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Jim Cousins&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 14:53:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/set-symbology-by-lyr-file-very-slow/m-p/608949#M47522</guid>
      <dc:creator>JimCousins</dc:creator>
      <dc:date>2016-03-04T14:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: set symbology by lyr file VERY slow</title>
      <link>https://community.esri.com/t5/python-questions/set-symbology-by-lyr-file-very-slow/m-p/608950#M47523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Follow up: The python window shows:&lt;/P&gt;&lt;P&gt;Succeeded at Fri Mar 04 10:..... (Elapsed Time 0.06 seconds)&lt;/P&gt;&lt;P&gt;but this takes many minutes to pop up. &lt;/P&gt;&lt;P&gt;Evidently the process itself is quite fast, but the sequential process is glacially slow.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Mar 2016 15:25:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/set-symbology-by-lyr-file-very-slow/m-p/608950#M47523</guid>
      <dc:creator>JimCousins</dc:creator>
      <dc:date>2016-03-04T15:25:32Z</dc:date>
    </item>
  </channel>
</rss>

