Command for Load partial .cui file

Command for Load partial .cui file

Anonymous
Not applicable
1,871 Views
6 Replies
Message 1 of 7

Command for Load partial .cui file

Anonymous
Not applicable

Good day forum members.
I have a question about user interfaces. Can I externally execute the command "load partial cui file"?

Why I need it: I would like to offer my developed plugins in every language. That means I dont want to change the user interface of the user when installing my plugins, but only to extend my .cui file. is there a possibility ??

Maybe with AutoLISP?

0 Likes
Accepted solutions (1)
1,872 Views
6 Replies
Replies (6)
Message 2 of 7

Sea-Haven
Mentor
Mentor

Menuload will load a cui. Can be ran from lisp.

0 Likes
Message 3 of 7

Anonymous
Not applicable

Can you write me please the commands? The plugins should be in the dropdown menu and also as a toolbar. Position does not matter. I have no experience with lisp unfortunately.

0 Likes
Message 4 of 7

Sea-Haven
Mentor
Mentor

Try this (command "menuload" "P:\\Autodesk\\lisp\\STDS9.mnu")

0 Likes
Message 5 of 7

Anonymous
Not applicable

Perfect, it works thanks a lot!

But once the menu is loaded, there will always be a message from the second time it is already loaded. How can I do that, if the menu entry already exists, the command should be ignored? can you write it me again please?

0 Likes
Message 6 of 7

_Tharwat
Advisor
Advisor
Accepted solution

Try it this way.

NOTE: Change the name of the menu that fits yours.

(if (vl-catch-all-error-p (vl-catch-all-apply 'vla-item (list (vla-get-menugroups (vlax-get-acad-object)) "Name_of_menu")))
  (command "menuload" "Name_of_menu")
  )
0 Likes
Message 7 of 7

pbejse
Mentor
Mentor

@Anonymous wrote:

Good day forum members.
..That means I dont want to change the user interface of the user when installing my plugins..


Are you installing via Plug-in Bundle?

0 Likes