AnsweredAssumed Answered

Dynamically load tool/buttons on Addin toolbar

Question asked by davidrenz on Jan 22, 2015
Latest reply on Mar 29, 2015 by FGibson-esristaff

I have seen some questions pertaining to this here and there, but I have yet to figure out if it is possible.

 

This is what I want:

 

I have a suite of ArcObjects (COM) tools that I am beginning to convert to Addins.

However, I don't want to have all of the tools (there are a lot) in the same project or solution even.

I want to be able to independently manage each project as an addin, then move the addin to my Addins directory.

 

Then, I would like to create a toolbar which can load them all onto the toolbar.

So, each tool would really be an independent tool/command within some ArcMap category, and I am merely organizing them onto a toolbar at some point in the ArcMap load process.

 

I have seen the documentation on the AddIn.FromID<T> stuff, but I am not clear on how to create a tool/command in code on a toolbar which will invoke the tool/command.

 

The benefits of Addins is what we are looking for --> the maintainability.

 

Can someone tell if this is possible and if so, point me in the right direction.

Outcomes