<?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 How do I&amp;nbsp; refresh a GroupLayer in ArcScene? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-nbsp-refresh-a-grouplayer-in-arcscene/m-p/217299#M5635</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have working code that creates a new grouplayer and add some custom layers to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I later create a new custom layer and add it to an existing grouplayer; it is not drawn and I have to right-click on the group layer and press refresh.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have code that I use to refresh the drawing which works for non group layers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;void Util::refresh(IScenePtr scene, ILayerPtr layer) 
{
 ISceneGraphPtr sgraph;
 scene-&amp;gt;get_SceneGraph(&amp;amp;sgraph);
 sgraph-&amp;gt;Invalidate(layer, VARIANT_TRUE, VARIANT_TRUE);
 ISceneViewerPtr viewer;
 sgraph-&amp;gt;get_ActiveViewer(&amp;amp;viewer);
 sgraph-&amp;gt;Invalidate(viewer, VARIANT_TRUE, VARIANT_TRUE);
 sgraph-&amp;gt;RefreshViewers();
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to call this with both the group layer and the new custom layer without any success.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Mar 2014 07:34:48 GMT</pubDate>
    <dc:creator>Andreas_W_Paulsen</dc:creator>
    <dc:date>2014-03-13T07:34:48Z</dc:date>
    <item>
      <title>How do I  refresh a GroupLayer in ArcScene?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-nbsp-refresh-a-grouplayer-in-arcscene/m-p/217299#M5635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have working code that creates a new grouplayer and add some custom layers to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However when I later create a new custom layer and add it to an existing grouplayer; it is not drawn and I have to right-click on the group layer and press refresh.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have code that I use to refresh the drawing which works for non group layers:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;void Util::refresh(IScenePtr scene, ILayerPtr layer) 
{
 ISceneGraphPtr sgraph;
 scene-&amp;gt;get_SceneGraph(&amp;amp;sgraph);
 sgraph-&amp;gt;Invalidate(layer, VARIANT_TRUE, VARIANT_TRUE);
 ISceneViewerPtr viewer;
 sgraph-&amp;gt;get_ActiveViewer(&amp;amp;viewer);
 sgraph-&amp;gt;Invalidate(viewer, VARIANT_TRUE, VARIANT_TRUE);
 sgraph-&amp;gt;RefreshViewers();
}&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried to call this with both the group layer and the new custom layer without any success.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Mar 2014 07:34:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-do-i-nbsp-refresh-a-grouplayer-in-arcscene/m-p/217299#M5635</guid>
      <dc:creator>Andreas_W_Paulsen</dc:creator>
      <dc:date>2014-03-13T07:34:48Z</dc:date>
    </item>
  </channel>
</rss>

