export commandbar to esriaddin

492
0
10-16-2013 12:12 AM
A_Kipfer
New Contributor
Hello,

I'm developing with VS 2010 and C# for ArcGIS 10.0.

I created a custom commandbar and added custom buttons to it. I'm wondering now if it's possible to export it to a proper commandbar.dll and commandbar.tlb. I need to do it at runtime.

As I understood, I can generate a .dll with CodeDomProvider but I don't know if I can pass a commandbar object to it, from the documentation I read I can't tell. Then it would be possible to use regasm commandbar.dll /tlb:commandbar.tlb to create a tlb file, at least theoretically, I'm not sure if this would work. So I have the following questions:

1. Is exporting a programmatically created commandbar to an esriaddin-bundle feasible at all?
2. If so, can anyone please give me a hint on how to do that or how to use CodeDomProvider (yes, I found examples but not on passing an object).

Thanks very much in advance!
Kianar
0 Kudos
0 Replies