.NET

Reply
Contributor
nijhuis
Posts: 16
Registered: ‎09-26-2010
Message 1 of 1 (125 Views)

Merge ribbon tab

125 Views, 0 Replies
06-20-2012 06:10 AM

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

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are You Going To Be @ AU 2014? Feel free to drop by our AU topic post and share your plans, plug a class that you're teaching, or simply check out who else from the community might be in attendance. Ohh and don't forgot to stop by the Autodesk Help | Learn | Collaborate booths in the Exhibit Hall and meet our community team if you get a chance!