Active Contributor
Posts: 42
Registered: ‎07-17-2013
Message 1 of 2 (454 Views)

VB.NET create Toolbar

454 Views, 1 Replies
08-23-2013 12:26 PM



I would like help in creating a VB.NET toolbar in AutoCAD map 3D 2011. I assume it would be close to creating a Ribbon but i have an no luck. one way I did it but does not seem to work is by this code below


'' Create toolbar
Dim groups As Object = Application.MenuGroups
Dim group As Object = groups.item(0)
Dim toolbars As Object = group.Toolbars
Dim toolbar As Object = toolbars.add("Field Engineering ToolBar")


'' Directory of bitmap images
Dim dir As String = "C:\Program Files\Autodesk\AutoCAD Map 3D 2011\FEimages"


'' New Map Button
Dim mapBtn As Object = toolbar.AddToolbarButton(0, "Make Map Button", "Helpstring button", "MAKEMAP ", False)
mapBtn.SetBitmaps(dir & "\Map_bmp.BMP", dir & "\Map_bmp.BMP")


this only seemed to work in visual stuido 2010 but then on deployment it failed, i assume I'm doing this wrong. 


The goal is to build a toolbar that can be used in "map classic workspace" as I have older autocad users that like this view over the ribbon.

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

Re: VB.NET create Toolbar

09-05-2013 04:48 AM in reply to: chase.hochstrasser



Please do let me know if you have any issues in getting the cui sample to work. 

I haven't worked with AutoCAD Map, but I would expect the sample project to work in any of the AutoCAD Verticals.



Developer Technical Services
Autodesk Developer Network

Need installation help?

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