<?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 ArcScene Python Refresh Layer? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcscene-python-refresh-layer/m-p/780574#M1190</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Made a script in a toolbox that updates about 8 different layers definition queries to keep in sync. The intention of the tool is to run while in a session of ArcScene.&amp;nbsp;Calling arcpy.RefreshActiveView() at the end does not refresh the layers though. Can manually click refresh on each layer and it does. What's the trick to refreshing a scene layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;lyr = arcpy.mapping.Layer("Test Layer")&lt;BR /&gt;lyr.definitionQuery = NAME = '" + name + "'"&lt;/P&gt;&lt;P&gt;arcpy.RefreshActiveView() #Doesn't refresh layers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jul 2018 22:52:39 GMT</pubDate>
    <dc:creator>RyanCoodey</dc:creator>
    <dc:date>2018-07-31T22:52:39Z</dc:date>
    <item>
      <title>ArcScene Python Refresh Layer?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/arcscene-python-refresh-layer/m-p/780574#M1190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Made a script in a toolbox that updates about 8 different layers definition queries to keep in sync. The intention of the tool is to run while in a session of ArcScene.&amp;nbsp;Calling arcpy.RefreshActiveView() at the end does not refresh the layers though. Can manually click refresh on each layer and it does. What's the trick to refreshing a scene layer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;lyr = arcpy.mapping.Layer("Test Layer")&lt;BR /&gt;lyr.definitionQuery = NAME = '" + name + "'"&lt;/P&gt;&lt;P&gt;arcpy.RefreshActiveView() #Doesn't refresh layers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2018 22:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/arcscene-python-refresh-layer/m-p/780574#M1190</guid>
      <dc:creator>RyanCoodey</dc:creator>
      <dc:date>2018-07-31T22:52:39Z</dc:date>
    </item>
  </channel>
</rss>

