.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VB.NET create Toolbar

1 REPLY 1
Reply
Message 1 of 2
Anonymous
2117 Views, 1 Reply

VB.NET create Toolbar

Hello,

 

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.

1 REPLY 1
Message 2 of 2
Balaji_Ram
in reply to: Anonymous

Hi,

 

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.

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost