- 积分
- 1266
- 明经币
- 个
- 注册时间
- 2003-10-25
- 在线时间
- 小时
- 威望
-
- 金钱
- 个
- 贡献
-
- 激情
-
|
Public Sub qa() Dim currMenuGroup As AcadMenuGroup Set currMenuGroup = ThisDrawing.Application.MenuGroups.Item(0) Dim newMenu As AcadPopupMenu Set newMenu = currMenuGroup.Menus.Add("TestMenu51")
Dim FileSubMenu As AcadPopupMenu Set FileSubMenu = newMenu.AddSubMenu("", "OpenFile")
Dim newMenuItem As AcadPopupMenuItem Dim openMacro As String openMacro = Chr(3) + Chr(3) + Chr(95) + "-VBARUN c:/aaa.dvb!" + Chr(32)
Set newMenuItem = FileSubMenu.AddMenuItem _ (newMenu.Count + 1, "-VBARUN aaa", openMacro)
' 菜单条上显示菜单 newMenu.InsertInMenuBar _ (ThisDrawing.Application.MenuBar.Count + 1) End Sub 以上程序运行后,AAA.dvb没有用,CAD命令行出行未找到宏.请帮忙! |
|