How to check which Lsp / des is loaded?
When I use
again and again, I get the message:
The message is correct, but how can I avoid it?
I know the function (arx) to check the loaded Arx, but how to check the loaded DES and LSP?
(load "mytool.des")
again and again, I get the message:
; error : application already loaded : <mytool>
The message is correct, but how can I avoid it?
I know the function (arx) to check the loaded Arx, but how to check the loaded DES and LSP?
0
Comments
-
Regarding des files, the (vl-list-loaded-vlx) function can be used. This will return a list with loaded des files.
https://developer.bricsys.com/bricscad/help/en_US/CurVer/DevRef/source/vl-list-loaded-vlx.htm
Regarding simple lisp files, you could check whether a certain function inside the lisp file is defined, for instance by using (vl-symbol-value ...).
https://developer.bricsys.com/bricscad/help/en_US/CurVer/DevRef/source/vl-symbol-value.htm
0 -
Thanks, Virgil
looks fine. But the documentation says it should return "nil" for no DES-files, but I have this:: (vl-list-loaded-vlx) ("")
Do you get NIL or ("")?0 -
Simple (if (not functionname)(load "my lisp")0
-
In Bricscad, (vl-list-loaded-vlx) returns ("") when no des file is loaded.0
-
Dear Peter,
issue is confirmed, and now fixed ... with upcoming V24.2.04 the "empty list" will be correctly returned as NIL.
thanks & many greetings !0 -
Thanks, Torsten.0