Message 1 of 2
Add addin to existing ribbon

Not applicable
05-24-2018
04:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I created an addin that has a tab with a few buttons on it but not enough to fill up the full tab. What i would like to take the panels that have created and see if it is possible to add it to a tab that already exists like "CTC Tools" just to simplify access locations for the users in the office. Is it possible to add on to a tab without creating it first? I know that if I don't create a tab the panel will be placed on the Add-ins Tab but for some users that is filled up. And I also know that if I try creating 2 panels with the same name that only the first one it loads will show up.
public Result OnStartup(UIControlledApplication application)
{
AddDfltWkstRibbon(application);
}
public void AddDfltWkstRibbon(UIControlledApplication application) { // create ribbon tab //String TabName = "General"; //application.CreateRibbonTab(TabName); String PanelName = "Worksets"; RibbonPanel PanelRibbon = application.CreateRibbonPanel(PanelName); string msg = "Sets the workset and also sets a user prefered workset."; PushButtonData wkst = new PushButtonData("DfltWorkset", "Default" + Environment.NewLine + "Workset", ExecutingAssemblyPath, ExecutingAssemblyName + ".CmdSetWorkset") { ToolTip = msg }; PushButton pb = PanelRibbon.AddItem(wkst) as PushButton; }
Thanks in Advance