Sub LoadMenu() Dim i i = ThisDrawing.Application.MenuGroups.Count ThisDrawing.Application.MenuGroups.Load "d:\My.mnu" ThisDrawing.Application.MenuGroups.Item("MyMenu").Menus.InsertMenuInMenuBar "MyMenu", i End Sub Sub unLoadMenu() ThisDrawing.Application.MenuGroups.Item("MyMenu").Unload End Sub 加载错误后要删除后缀为mnr,cui的编译文件 要保证mnu文件格式正确 |