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 ?
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register