IActiveViewEvents are not working while new document / Open Document

566
1
12-12-2013 08:09 AM
VenkatKondepati
New Contributor III
Hi All,

We have created an extension and wiring IDocumentEvents_Event, IActiveViewEvents on start-up event. We used code snippet IActiveViewEvents.

Our objective is to track the layers added or removed and populate into DropdownList in Toolbar.

This is working fine until we click on New / Open Documents commands.

We tried to call the SetupActiveViewEvents methods on New / Open documents with Focus Map.

But it is not working all the times.

I have attached the code for your reference.

ArcGIS 10.1 with SP1, VS.NET 2010 C#, .NET Framework 4.0, ArcSDE 10.1 Layer files and Windows 7 64-bit O/S, Oracle 11g

Thanks lot for your help.

Regards,
Venkat
0 Kudos
1 Reply
VenkatKondepati
New Contributor III
Hi All,

Finally I am able to fix this issue by changing the .NET framework from 4.0 to 3.5.

So we can use .NET framework 4.0 for the functionality which do not depend on ArcMap events.

Regards,
Venkat
0 Kudos