[求助]自定义工具栏的问题
<p>用如下方式定义了一个新的工具栏,当AutoCAD关了重开,这个工具栏就变成空的了,怎么能使这个工具栏在新开的AutoCAD可以继续使用?</p><p> Dim objToolBars As AcadToolbars<br/> <br/> Set objToolBars = ThisDrawing.Application.MenuGroups.Item("ACAD").Toolbars<br/> <br/> Dim objToolBar As AcadToolbar<br/> On Error Resume Next<br/> Set objToolBar = objToolBars.Add("test1")<br/> If Err Then<br/> Set objToolBar = objToolBars.Item("test1")<br/> MsgBox "'test1' already exists!!"<br/> Exit Sub<br/> End If<br/></p><p> Dim newButton As AcadToolbarItem<br/> Dim openMacro As String<br/> <br/> openMacro = Chr(vbKeyEscape) + Chr(vbKeyEscape) + "(command ""-vbarun"" ""caidan.dvb!wjd"") "<br/> Set newButton = objToolBar.AddToolbarButton(objToolBar.Count + 1, "测试1", "测试1", openMacro)<br/> newButton.SetBitmaps ".\jccx\00164.ico", ".\jccx\00164.ico"</p>
页:
[1]