<?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 to remove a custom layer? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-remove-a-custom-layer/m-p/668635#M17948</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How is a custom layer supposed to be destructed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom layer that implements drawing by overriding IActiveViewEvents::AfterDraw.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that sometimes when the custom layer is removed from the Scene/Table Of Contents it is still drawn!?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The FinalRelease() method is never called in my custom layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I would expect it to be ArcScenes responsibility to delete my custom layer when it is removed?; which in turn would call my FinalRelease() method. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. If my custom layer is not in the Scene/Table Of Contents; how comes it receives IActiveViewEvents::AfterDraw calls?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would expect ArcScene to draw only layers in the Scene/Table Of Contents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any answers!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andreas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Feb 2014 10:30:28 GMT</pubDate>
    <dc:creator>Andreas_W_Paulsen</dc:creator>
    <dc:date>2014-02-14T10:30:28Z</dc:date>
    <item>
      <title>How to remove a custom layer?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-remove-a-custom-layer/m-p/668635#M17948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How is a custom layer supposed to be destructed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a custom layer that implements drawing by overriding IActiveViewEvents::AfterDraw.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is that sometimes when the custom layer is removed from the Scene/Table Of Contents it is still drawn!?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The FinalRelease() method is never called in my custom layer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I would expect it to be ArcScenes responsibility to delete my custom layer when it is removed?; which in turn would call my FinalRelease() method. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. If my custom layer is not in the Scene/Table Of Contents; how comes it receives IActiveViewEvents::AfterDraw calls?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would expect ArcScene to draw only layers in the Scene/Table Of Contents.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for any answers!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Andreas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Feb 2014 10:30:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/how-to-remove-a-custom-layer/m-p/668635#M17948</guid>
      <dc:creator>Andreas_W_Paulsen</dc:creator>
      <dc:date>2014-02-14T10:30:28Z</dc:date>
    </item>
  </channel>
</rss>

