there is a problem with my code，when I load this dll，the toolbar‘s name can be fond in the customization dialog，but never shows in the UI(AutoCAD custom WS)。。。。It crush me up。。
public void AddToolBar()
CustomizationSection cs = new CustomizationSection(
CAD.Document doc = CAD.Application.DocumentManager.MdiActiveDocument;
Toolbar newTb = new Toolbar("MyTool", cs.MenuGroup);
newTb.ToolbarVisible = ToolbarVisible.show;
foreach (Workspace wk in cs.Workspaces)
WorkspaceToolbar wkTb = new WorkspaceToolbar(wk, newTb);
wkTb.Display = 1;
i dont no y.........need help························
i am a chinese,know little english.so it is hard for me to find codes of this aspect at this website,can u get me the link of the code?
Your code look ok to me.
Does the toolbar appear after switching workspaces manually in AutoCAD ?
Access a broad range of knowledge to help get the most out of your products and services.
Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.
Upgrading to a 2015 product? Make sure to check these out 1st!