Message 1 of 4
Check if cui is loaded LISP

Not applicable
02-09-2020
09:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello guys
Can anyone send me the Lisp command to check if my menu "TestAPP" is loaded, if yes so unload it.
After that I will load it again.
The reason is, If I make an Update I just want to add the new .cuix File in same path and it should reload CUIX by everytime open AutoCAD.
I currently have this:
(vla-unload (vla-item (vla-get-menugroups (vlax-get-acad-object)) "TestAPP"))
(command "menuload" "C:\\Program Files\\Common Files\\TestAPP\\TestAPP.cuix")
The problem with this code is that if the user has never loaded "TestAPP" CUIX, AutoCAD gives an error that the unloading does not work.
Can anyone help me?