.NET

Reply
Active Contributor
42 Posts
1 Kudo
Registered: ‎07-17-2013
Post 1 of 2

VB.NET create Toolbar

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

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.

ADN Support Specialist
762 Posts
100 Kudos
Registered: ‎03-21-2011
Post 2 of 2

Re: VB.NET create Toolbar

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

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

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!