<?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 Connecting events between ILayer and IScene in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/connecting-events-between-ilayer-and-iscene/m-p/408106#M10921</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a custom layer for ArcScene in C++.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I create the layer from a command I use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ICommand::OnCreate(hook) and ISceneHookHelperPtr to get an IScenePtr.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I connect the scene and the layer with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AtlAdvise(scene, IUnknownPtr(layer), __uuidof(IActiveViewEvents), &amp;amp;id);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when my layer is restored from disk after I have saved it in an .sxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the layer is created in another place and the atl connection is not restored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I get asses to IScene from my ILayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Sep 2013 12:01:41 GMT</pubDate>
    <dc:creator>rasmusbording</dc:creator>
    <dc:date>2013-09-17T12:01:41Z</dc:date>
    <item>
      <title>Connecting events between ILayer and IScene</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/connecting-events-between-ilayer-and-iscene/m-p/408106#M10921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a custom layer for ArcScene in C++.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I create the layer from a command I use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ICommand::OnCreate(hook) and ISceneHookHelperPtr to get an IScenePtr.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I connect the scene and the layer with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AtlAdvise(scene, IUnknownPtr(layer), __uuidof(IActiveViewEvents), &amp;amp;id);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, when my layer is restored from disk after I have saved it in an .sxd&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the layer is created in another place and the atl connection is not restored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I get asses to IScene from my ILayer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Sep 2013 12:01:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/connecting-events-between-ilayer-and-iscene/m-p/408106#M10921</guid>
      <dc:creator>rasmusbording</dc:creator>
      <dc:date>2013-09-17T12:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting events between ILayer and IScene</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/connecting-events-between-ilayer-and-iscene/m-p/408107#M10922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found a workaround. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The IDisplay argument to ILayer::draw is a ISceneGraph in ArcScene&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;so I can use this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Sep 2013 10:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/connecting-events-between-ilayer-and-iscene/m-p/408107#M10922</guid>
      <dc:creator>rasmusbording</dc:creator>
      <dc:date>2013-09-18T10:31:43Z</dc:date>
    </item>
  </channel>
</rss>

