03-02-2023
11:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-02-2023
11:21 AM
Sure. Below is a simple example that, when ran, will show a message telling you which tab is currently active.
Dim oEnv As Inventor.Environment = ThisApplication.UserInterfaceManager.ActiveEnvironment
For Each oTab As RibbonTab In oEnv.Ribbon.RibbonTabs
If oTab.Active Then
MsgBox("The tab named '" & oTab.DisplayName & "' is currently active.", vbInformation, "")
End If
Next
Wesley Crihfield
(Not an Autodesk Employee)