How to catch when a user enables or disables an extension?

3136
2
11-20-2015 01:33 AM
CalinArens
New Contributor II

Hi,

I would like to record when a user enables and disables extensions (such as 3D Analyst) in ArcMap.

My idea was to write a .NET addin extension. I figured out how to check the current license information.

Is there an event that I can subscribe to to catch if a user enables or disables an extension or do I have to use a timer and check every once in a while?

Thanks for helping,

Calin

0 Kudos
2 Replies
FreddieGibson
Occasional Contributor III

This page shows how to find the extensions and check their state. So far I haven't seen any events that are fired when an extension's state is changed.

How to use extensions

http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//00010000033w000000

0 Kudos
CalinArens
New Contributor II

Ok, i should probably go for the polling solution then.

I have been using aoinitialize instead of extension manager. It seems I

should change this for arcmap addins. Or is it okay to go either way?

0 Kudos