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

Load toolbar images from resource file

225 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: 733
Registered: ‎03-21-2011
Message 2 of 2 (193 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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!