- vba部分:Sub myToolbar()
- Dim MyToolbar As AcadToolbar
- Set MyToolbar = mymenugroup.Toolbars.Add("☆ 工具条名称")
- Dim MyCmd1 As String
- MyCmd1 = Chr(3) + Chr(3) + Chr(95) + "命令名" + Chr(32)
- Dim MyCmdbutton1 As AcadToolbarItem
- Set MyCmdbutton1 = MyToolbar.AddToolbarButton(0, "说明1", "说明2":命令名,MyCmd1)
- MyCmdbutton1 .SetBitmaps "a.bmp", "a.bmp" ' 小、大图标MyToolbar.Dock acToolbarDockLeftEnd Sub lisp部分:(defun c:命令名()(command "_vbarun " "宏(包含路径)"))
|