Because some Tabs have the same name i have to get this additional name somehow.
Would like to build my own python code, so here is my start, but not working
RvtRibbonPanel has no attribute GetName
import clr
clr.AddReference('PresentationCore')
clr.AddReference('AdWindows')
import Autodesk.Windows as adWin
ribbon = adWin.ComponentManager.Ribbon
for tab in ribbon.Tabs:
for panel in tab.Panels:
x = panel.GetName
out = x
import clr
clr.AddReference('PresentationCore')
clr.AddReference('AdWindows')
import Autodesk.Windows as adWin
ribbon = adWin.ComponentManager.Ribbon
names=[]
Ids=[]
for tab in ribbon.Tabs:
name = tab.AutomationName
Id = tab.Id
names.append(name)
Ids.append(Id)
OUT = names, Ids
So i can also check if the tab is visible and there are many other members for tabs.
But i can´t get setting the visibility to work, any idea about that?