本帖最后由 作者 于 2009-2-10 15:05:16 编辑
自定义菜单执行宏的方法  ublic Sub addMenu() Dim acadapp As AcadApplication = Application.AcadApplication Dim myMenu As AcadPopupMenu = acadapp.MenuGroups.Item(0).Menus.Add("测试菜单(&L)") Dim m1 As AcadPopupMenuItem = myMenu.AddMenuItem(1, "子菜单(&A)", Chr(3) + Chr(3) + "宏名称" & Chr(13)) end sub |