Load ribbons on everyone's computer

Load ribbons on everyone's computer

CS93X7Q
Contributor Contributor
300 Views
5 Replies
Message 1 of 6

Load ribbons on everyone's computer

CS93X7Q
Contributor
Contributor

I have some ribbons that I have created and I would like to get them out to everyone. I put them in a workspace.cuix  file and I can load this with a lsp and it works fine. I saved that lsp file as acad.lsp and also as acaddoc.lsp and it does not run when starting AutoCad. What I want to do is have the ribbons load when starting autocad. I have a profile path in the shortcut and that works file. Can anyone point me in the right direction?

0 Likes
301 Views
5 Replies
Replies (5)
Message 2 of 6

pendean
Community Legend
Community Legend
Did you do this yet by chance (from your description/post, it appears as though you did not) https://blogs.autodesk.com/autocad/create-load-startup-lisp-routine/#:~:text=To%20have%20your%20star....
0 Likes
Message 3 of 6

Sea-Haven
Mentor
Mentor

Did you look into Menuload in your lisp ? You can create a lisp and add it to the startup suite so it runs on startup. Use Appload. Our menu's were on a server so only have to load once on end user pc. The nice thing is if you update the menu and save on server the next time the end user opens Autocad they get the latest version.

 

 

(setq Menu_Path "C:\\CAD-TOOLS\\") ; Path to Menu file
(setq Menu_Name "CAD-TOOLS") ; pop menu to load
(setq Group_Name "XXXMENU") ; groupname assigned in .mnu or .mns file

(if (menugroup menu_Name)
(command "_MENUUNLOAD" menu_Name)
)
(setq cnt (vla-get-count(vla-get-menuGroups (vlax-get-acad-object))))
(if  (> (vl-string-search  "BricsCAD" (getvar 'acadver)) 0)
(progn
(command "MENULOAD" (strcat Menu_Path Menu_Name ".cui"))
(menucmd (strcat "P" (rtos (+ cnt 1) 2 0) "=+" menu_Name ".POP1"))
)
(progn
(command "MENULOAD" (strcat Menu_Path Menu_Name ".cuix"))
(menucmd (strcat "P" (rtos (+ cnt 1) 2 0) "=+" menu_Name ".POP1"))
)
)

 

0 Likes
Message 4 of 6

paullimapa
Mentor
Mentor

FYI, you can also use the following to check CAD program:

(strcase(getvar 'product))

returns:

BRICSCAD

or 

AUTOCAD


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 5 of 6

Sea-Haven
Mentor
Mentor

Thanks will use.

0 Likes
Message 6 of 6

CS93X7Q
Contributor
Contributor

Thanks. I will try all of this and see how it works.

0 Likes