Hello everyone,
I am working on an AddIn in Vb.net using the sample "AddInEditorExtension" as a template and now that I finished it I do into see in ArcMap in the toolbar or in ArcMap Extensions list the name of the Add-In.
ArcObjects Help for .NET developers
I would like to know how a user can enable or disable the AddInextension.
Where can I find the name of this AddIn other than in the Add-In list.
Thank you
Depending on the type of functionality you have built you may need to register the component.
Many of these customizations can be built and deployed as add-ins, while others require development of custom components...
The following table shows the various editor customization types and their supported customization methods:
Customization type
Add-in
Component
Commands
Yes
Yes
- Context menus
Yes Yes Tools Yes Yes
- Construction tools
Yes
Yes
Extensions
Yes
Yes
Shape constructors
No
Yes
Tasks
No
Yes
Object inspectors
No
Yes
Snap agents
No
Yes
Edit sketch extensions
No
Yes
Custom components require the old style COM registration before ArcGIS will load them.
There is more information in the help in the Extending ArcObjects section:
Have you tried hooking into the extension and setting its state?
How to use extensions
http://resources.arcgis.com/en/help/arcobjects-net/conceptualhelp/index.html#//00010000033w000000
You can get the guid for the extension by calling ThisAddIn.IDs.<NameOfYourExtensionClass> within the addin code where the extension lives.
Hi,
I am using the same functionality that comes on this project. Please feel free to download it to take a closer look.
ArcObjects Help for .NET developers
it does not need to be registered.
Editor extensions will not display in the Extensions list of ArcMap. For example, the Editor in ArcMap is actually an extension named "Esri Object Editor". If you open the Extensions dialog you'll see that this name doesn't appear there. An editor extension essentially hooks into this extension to enable/disable itself.
I would suggest two workflows if you're needing to be able to turn this extension on/off.
I only had a few minutes to write this up...so below is what I was able to create and test. This appears to be working for me so far. You'd need to implement the logic to control when to call Startup or Shutdown and you'd also need to setup the needed wiring within both of these methods.