
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi I'm trying to create / copy an existing workspace using c#
I couldn't find a direct way to just copy the existing workspace so I tried to add it's properties manually. The only trouble is I can't seem to cover all the settings here's what I have so far... any help would be much appreciated.
var userworkspace = new Workspace(cs, acadUser)
{
WorkspaceRibbonRoot = wsMaster.WorkspaceRibbonRoot,
WorkspaceQuickAccessToolbar = wsMaster.WorkspaceQuickAccessToolbar,
Name = acadUser
};
foreach (WorkspaceToolbar wst in wsMaster.WorkspaceToolbars)
{
userworkspace.WorkspaceToolbars.Add(wst);
}
foreach (WorkspacePopMenu wsp in wsMaster.WorkspacePopMenus)
{
userworkspace.WorkspacePopMenus.Add(wsp);
}
Pretty basic I know, how can I get PartialCUI tabs, palettes, etc.. applied?
Cheers
Solved! Go to Solution.