<?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: Automatize layer display in data layout in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/automatize-layer-display-in-data-layout/m-p/636811#M21226</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you running this outside of arcmap or from the python window? If you are running this in IDLE or something it may not work properly. To make this work, run the script from within arcmap and set the mxd to 'current'. This will give you the ability to refresh what you are actually looking at. The way you were doing it, you were editing the visibility of layers in a copy of the mxd that had been opened in memory by python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd=arcpy.mapping.MapDocument('CURRENT')&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Aug 2010 11:39:37 GMT</pubDate>
    <dc:creator>ChrisMathers</dc:creator>
    <dc:date>2010-08-18T11:39:37Z</dc:date>
    <item>
      <title>Automatize layer display in data layout</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/automatize-layer-display-in-data-layout/m-p/636808#M21223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Within the table of content, I do have a group of layers that I would like to manipulate in terms of displaying them on/off. I wrote a simple code but does not work. Please see code below. Suggestions will be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jose Funes&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Aug 2010 20:47:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/automatize-layer-display-in-data-layout/m-p/636808#M21223</guid>
      <dc:creator>JoseFunes</dc:creator>
      <dc:date>2010-08-15T20:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Automatize layer display in data layout</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/automatize-layer-display-in-data-layout/m-p/636809#M21224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When you change layer visibility you need to refresh the map with arcpy.refreshactiveview() to see any changes. Any changes made to an mxd, as far as display goes, occur in memory and arent visible until you refresh the display.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Aug 2010 12:54:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/automatize-layer-display-in-data-layout/m-p/636809#M21224</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2010-08-16T12:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Automatize layer display in data layout</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/automatize-layer-display-in-data-layout/m-p/636810#M21225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i did include the arcpy.refreshactiveview() command but it does not change. if i close it and then open it, it works!, suggestions? thanks, jose&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Aug 2010 21:29:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/automatize-layer-display-in-data-layout/m-p/636810#M21225</guid>
      <dc:creator>JoseFunes</dc:creator>
      <dc:date>2010-08-17T21:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: Automatize layer display in data layout</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/automatize-layer-display-in-data-layout/m-p/636811#M21226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you running this outside of arcmap or from the python window? If you are running this in IDLE or something it may not work properly. To make this work, run the script from within arcmap and set the mxd to 'current'. This will give you the ability to refresh what you are actually looking at. The way you were doing it, you were editing the visibility of layers in a copy of the mxd that had been opened in memory by python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mxd=arcpy.mapping.MapDocument('CURRENT')&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 11:39:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/automatize-layer-display-in-data-layout/m-p/636811#M21226</guid>
      <dc:creator>ChrisMathers</dc:creator>
      <dc:date>2010-08-18T11:39:37Z</dc:date>
    </item>
  </channel>
</rss>

