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

Merge ribbon tab

0 REPLIES 0
Reply
Message 1 of 1
nijhuis
329 Views, 0 Replies

Merge ribbon tab

When i start Autocad and then the command 'SRT' then nothing happens

When i edit a block , and the tab "Block Editor - Close Contextual Merged Tab" has been visible then the command 'SRT' works and shows me the merged tab.

 

Does anyone knows what i have to do to make the command work even when te merged tab has not been visible.

 

 

    <CommandMethod("SRT")> Sub setRibbonTab()

        Dim RibContr As Autodesk.Windows.RibbonControl = Autodesk.Windows.ComponentManager.Ribbon

        For Each rib In RibContr.Tabs

            Application.DocumentManager.MdiActiveDocument.Editor.WriteMessage(vbLf & rib.Name)

            If rib.Name = "Block Editor - Close Contextual Merged Tab" Then

                rib.RibbonControl.ShowContextualTab(rib, True, True)

            End If
        Next

        RibContr.UpdateLayout()
    End Sub

 

 

0 REPLIES 0

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