TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: capsochist on September 22, 2020, 05:27:19 PM
-
Hi there,
I have the following block of code in my ACADDOC.lsp file which checks a few system variables upon startup. I am wondering how to add a block of code that checks whether a Partial CUI is loaded at startup in the same way as opposed to writing () which doesn't check that it is loaded, but instead just force loads it regardless.
'(
(pdfshx 0)
(epdfshx 0)
(imageframe 2)
(pdfframe 2)
(pellipse 1)
(fontalt "arial")
)
)
-
To quote Autodesk.
(menugroup groupname)
If groupname matches a loaded menu group name, the function returns the groupname string; otherwise, it returns nil.
Write a If to check if not then menuload.
-
this seems to work...