sketch11 Posted March 29, 2020 Share Posted March 29, 2020 With the 2 files below, I can add a menu bar in AutoCAD. The "script" file loads the menu. The "menu" file itemises each part. The example would place structural steel blocks into the drawing. Is there a way to do the same thing using a right-click menu? SCRIPT FILE (TEST.scr) (if (and (not (findfile "TEST.mnu")) (findfile "C:\\Folder1\\POP13 Test\\TEST.mnu") ) (setenv "ACAD" (strcat (getenv "ACAD") "C:\\Folder1\\POP13 Test")) ) (command "._MENULOAD" "TEST.mnu") (menucmd "P13=+TEST.CTOPopTEST") MENU FILE (TEST/mnu) ***MENUGROUP=TEST ***POP13 **CTOPopTEST [Test] [->UC] [310UC158]^C^C-INSERT UniversalColumns_310UC158;scale;1; [310UC137]^C^C-INSERT UniversalColumns_310UC137;scale;1; [310UC118]^C^C-INSERT UniversalColumns_310UC118;scale;1; [310UC96.8]^C^C-INSERT UniversalColumns_310UC96.8;scale;1; Quote Link to comment Share on other sites More sharing options...
BIGAL Posted March 30, 2020 Share Posted March 30, 2020 (edited) Not sure that your P13 will always be correct as I have 26 menus and when adding/reload it puts menu as last. This may help. https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-pop-menu-control/td-p/4750583 Edited March 30, 2020 by BIGAL Quote Link to comment Share on other sites More sharing options...
sketch11 Posted March 30, 2020 Author Share Posted March 30, 2020 Perhaps my question description is not great, or I'm not using the right terminology. I want something like as shown attached to appear in the cursor menu. Because there are so many items, I wanted to achieve this by editing a file rather than using the CUI command in AutoCAD. Apparently the older versions used a ".mns" file (POP501 may have been the default cursor menu). Now it may be a ".cui" or ".cuix" file ... which may or may not be easy to change using a text editor. If possible, I would prefer to edit the ".mns" file, using AutoCAD 2013. I can't actually find it anywhere, so it may not exist. Have you seen any documentation which provides a step by step process of how to do it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.