Sambuddy Posted November 15, 2019 Posted November 15, 2019 I am trying to load this menu using this code: (do not laugh if it looks dumb)! (defun c:MENLD (/ f) (if (setq f (getfiled "V:\\SALLE A DESSIN\\SAM - OUTILS XLS DWG\\3-LSP XLS\\MENU\\TOWER.cuix")) (progn (setvar 'filedia 0) ;(command "_.menuunload" (vl-filename-base f)) (command "_.menuload" f) (setvar 'filedia 1) ) (print "TOWER.cuix found...") ) (princ) ) The reason I wanted to do this was to update my menu each time someone changes something - But I think I am super beginner. is there a way to update your menu based on the address I provided - even if I have it already on my menubar? I guess unload previous and then load again from that address. Thank you all Quote
BIGAL Posted November 15, 2019 Posted November 15, 2019 (edited) If your menu is on a server and you do a menu un load and reload then it will update on your PC, the next time any one else on the network opens Autocad it will reflect that the menu has been changed. The inter office megaphone works well "hey guys I have updated the menu" Your file name indicates that its maybe a personal location rather than in a global location. V:\\Autocad-company\\menus\\ etc Don't need getfiled as your using a known file location and name. OH use .mnu if custom so it will remake the cuix. All my menu's are custom, none inside acad etc. Edited November 15, 2019 by BIGAL Quote
Sambuddy Posted November 18, 2019 Author Posted November 18, 2019 Good tips! Thanks for your help BIGAL. Quote
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.