ADDIN: Help needed detecting changes in layers

264
1
07-09-2013 01:32 AM
Highlighted
New Contributor III
Hi everyone. Hit a problem with an AddIn I've almost finished developing. Without going into detail, I need the AddIn to respond to any changes in datasources on layers and stand-alone tables. Basically, my AddIn needs at least one feature layer and one stand-alone table to work, so it's toolbar buttons are disabled until the criteria is met. So far I have an extension hooked into the NewDocument and OpenDocument to interrogate the documents layers and their validity, creating two arrays of valid feature layers and valid stand-alone tables. This used to be in the tool's update event but the checking process had a significant affect on performance.

I hope someone can advise?


Thank you.
Reply
0 Kudos
1 Reply
Highlighted
MVP Frequent Contributor
Andrew,

Sounds like you want to be hooking into the IActiveViewEvents Interface and capture when the map changes in someway.

Duncan
Reply
0 Kudos