<?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 issue catching events in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/issue-catching-events/m-p/295944#M7684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm developing a plug-in that creates a layer. Many layers can be created sharing an HMI for user entry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use IActiveViewEvents to catch add/delete events. I store the id of the layers, and the HMI can act only on the layers that are showed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That works pretty well, anyway, I have some issues :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- if my layer is created inside a data frame or a layer group and when I delete the data frame or the layer group, my layer doesn't receive a delete event. Then I should catch the "delete data frame event" and the "delete layer group event". Is it possible to read the id of a layer (the one that is given when the event ItemAdded(VARIANT Item) is received), and of a map ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- when I load the layers using IPersistVariant, when the load method is called, the ICommand that I take the IMxDocument object from isn't yet initialised, so I can't wire to IActiveViewEvents. Then as these layers don't receive an AddLayer event, I don't have their id. Then is it possible to have the IMxDocument object by another method ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Oct 2010 08:35:25 GMT</pubDate>
    <dc:creator>iadavuth</dc:creator>
    <dc:date>2010-10-06T08:35:25Z</dc:date>
    <item>
      <title>issue catching events</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/issue-catching-events/m-p/295944#M7684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm developing a plug-in that creates a layer. Many layers can be created sharing an HMI for user entry.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use IActiveViewEvents to catch add/delete events. I store the id of the layers, and the HMI can act only on the layers that are showed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That works pretty well, anyway, I have some issues :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- if my layer is created inside a data frame or a layer group and when I delete the data frame or the layer group, my layer doesn't receive a delete event. Then I should catch the "delete data frame event" and the "delete layer group event". Is it possible to read the id of a layer (the one that is given when the event ItemAdded(VARIANT Item) is received), and of a map ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- when I load the layers using IPersistVariant, when the load method is called, the ICommand that I take the IMxDocument object from isn't yet initialised, so I can't wire to IActiveViewEvents. Then as these layers don't receive an AddLayer event, I don't have their id. Then is it possible to have the IMxDocument object by another method ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 08:35:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/issue-catching-events/m-p/295944#M7684</guid>
      <dc:creator>iadavuth</dc:creator>
      <dc:date>2010-10-06T08:35:25Z</dc:date>
    </item>
  </channel>
</rss>

