Thanks,
Generating the UI from code you don't need to maintain a separate file, but what about the bitmaps? Do I need to deploy a folder with all the bitmaps together with the dll?
If yes, do you find it easier than managing the cuix file?
If no, how are the bitmaps included in the dll?
(In the past I created an addin for Revit where I used a json file with all the information required to generate the UI elements. It was working, I liked that approach, but that project has been cancelled and was never deployed, so I never crossed the deployment bridge. But this is AutoCAD anyway and things are different.)
I tried to go the code direction, but I was not able to find an example that shows how to do it.
I tried with some examples from the documentation, but no luck. The first line on this page for example doesn't even compile:
// the documentation shows:
RibbonButton button1 = new RibbonButton;
// it should be:
RibbonButton button1 = new RibbonButton(<missing parent>);
Can you point me to a working documentation page or to a working example?