Select to view content in your preferred language

Accessing ExtensionManager

508
0
11-18-2016 03:01 AM
selvavinayagamkanagavel2
Deactivated User

For setting the environment, I need to access the ExtensionManager in ArcObjects Engine application and add an extension by clearing the available extensions

IExtensionManager extentionManager = ____ as IExtensionManager;

UID uid = new UIDClass();
uid.Value = "esriTrackingAnalyst.TrackingEngineUtil";

((IExtension)extentionManager).Shutdown();
((IExtensionManagerAdmin)extentionManager).ShutdownExtensions();

((IExtensionManagerAdmin)extentionManager).AddExtension(uid, ref mapObj);

How can I clear the extensions, and have a fresh extension load.

In ArcGIS Desktop it could accessed through IApplication interface, but in ArcGIS Engine, which interface could be used for accessing it.

On Compile, the available extensions has been locked, by some schema representation, based on editing or other module extensions involved, but based on utility this has to happen only on runtime and automatically should be released.  Any such techniques to do that.

 

Dr Selvavinayagam

0 Kudos
0 Replies