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

VB.NET Create Ribbon

4 REPLIES 4
Reply
Message 1 of 5
makepeace1
2770 Views, 4 Replies

VB.NET Create Ribbon

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

4 REPLIES 4
Message 2 of 5
norman.yuan
in reply to: makepeace1

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:

 

http://ebookbrowsee.net/au09-cp204-2-cuix-api-docx-d165859562

 

HTH.

Norman Yuan

Drive CAD With Code

EESignature

Message 3 of 5
makepeace1
in reply to: makepeace1

Thanks

 

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

 

Message 4 of 5
quigs
in reply to: makepeace1

Message 5 of 5
makepeace1
in reply to: quigs

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

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