RS SDK - Opening i.e. Paths&Targets in AddIn tab

Hello,

please could anyone tell me how can I open Paths&Targets or Layout window in my AddIn tab please?

thx

br,

blinder

Hi,

You can control the visibility of a Window on a ribbon tab by using the SetTabVisibility() method. So if you have created your own tab with id=“myRibbonTabId”, then something like this should work:

RibbonTab myTab = UIEnvironment.RibbonTabs[“myRibbonTabId”];
ToolWindow layoutWnd = UIEnvironment.Windows[“ObjectBrowser”] as ToolWindow;
if (layoutWnd != null) layoutWnd.SetTabVisibility(myTab, true);
ToolWindow pathWnd = UIEnvironment.Windows[“ElementBrowser”] as ToolWindow;
if (pathWnd != null) layoutWnd.SetTabVisibility(myTab, true);

/Anders

big thanks!