Would somone be able to help me or give me an example
I am looking to create a ribbon with multiple tabs and then multiple pannels on them tabs
I have had a look online but cant find any examples of what i am looking for
You can use either CUIx API or Runtime Ribbon API to create Ribbon in AutoCAD. The former is to programmatically manipulate CUIx to modify ribbon, while the latter is to create Ribbon outside CUIx.
There is an Autodesk University 2009 courseware on this topic (CP204-2), which explains how to use the 2 sets of API in depth. It can still be found on the Internet for download:
I have worked out how to create the ribbons and add the button's but now i need to create a split button
I have had a look round again but can only find how to do it in C# and not vb.net
This is part of the code i am using
Private Sub addPanel1(ByVal ribTab As RibbonTab) 'create the panel source Dim ribSourcePanel As New RibbonPanelSource() ribSourcePanel.Title = "StorPlanner" 'now the panel Dim ribPanel As New RibbonPanel() ribPanel.Source = ribSourcePanel ribTab.Panels.Add(ribPanel) Dim ribbonbutton4 As New RibbonButton() ribbonbutton4.Text = "Circle" ribbonbutton4.ShowText = False ribbonbutton4.CommandParameter = "CIRCLE " ribbonbutton4.ShowImage = True ribbonbutton4.CommandHandler = New AdskCommandHandler() Dim ribbonbutton5 As New RibbonButton() ribbonbutton5.Text = "DialogLauncher" ribbonbutton5.CommandParameter = "properties " ribbonbutton5.ShowText = True ribbonbutton5.ShowImage = True ribbonbutton5.CommandHandler = New AdskCommandHandler() 'and add it to source ribSourcePanel.DialogLauncher = ribbonbutton5 ribSourcePanel.Items.Add(ribbonbutton4) ribSourcePanel.Items.Add(New RibbonSeparator()) ribSourcePanel.Items.Add(ribbonbutton5) ribSourcePanel.Items.Add(New RibbonSeparator()) End Sub
Has anyone got a VS Project that i could have to base mine on
I am looking to have multiple tabs with then multiple pannels per tab
and would want to do splits on some of the buttons and give them drop downs
i know its a big ask but if somone would be able to give me a copy of there project i would be verry greatful
Access a broad range of knowledge to help get the most out of your products and services.