Jump to content
Sambuddy

Menu update

Recommended Posts

Sambuddy

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 

Share this post


Link to post
Share on other sites
BIGAL

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 by BIGAL

Share this post


Link to post
Share on other sites
Sambuddy

Good tips!

Thanks for your help BIGAL.

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...