Jump to content

Menu update


Sambuddy

Recommended Posts

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 

Link to comment
Share on other sites

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
Link to comment
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  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...