.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Merge ribbon tab
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
76 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.Edit or.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

