Active Contributor
Posts: 48
Registered: ‎07-22-2012
Message 1 of 2 (218 Views)

Load toolbar images from resource file

218 Views, 1 Replies
10-28-2012 10:25 AM

Is it possible to load toolbar images from resource file instad file from disk?


Now I did:


            AcadToolbar tb = mainGroup.Toolbars.Add("MyToolbar");
            tb.Visible = true;
            AcadToolbarItem i1 = tb.AddToolbarButton(1, "Test", "TestButton", "\x1b\x1bTESTCMD ");
            i1.SetBitmaps(@"D:\Icons\BMP\test.bmp", @"D:\Icons\BMP\test.bmp");


I can't say that it's very useful. Is it possoble to load images from my plug-in DLL (resource file)?



ADN Support Specialist
Posts: 701
Registered: ‎03-21-2011
Message 2 of 2 (186 Views)

Re: Load toolbar images from resource file

10-30-2012 10:01 AM in reply to: pva75

Hi Pavel,


I dont think it is possible to do this using the COM API, but this can be done using the CUI API.


I have attached a document and sample projects from a Devnote which is yet to be migrated to a Devblog post.


Hope it helps.


Developer Technical Services
Autodesk Developer Network

Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.