View Full Version : How to get the loaded lisp file names
vkotesh
2006-02-22, 07:21 AM
Can any one suggest how to get the loaded lisp files and vlx files using lisp routine.
ThanQ,
Kotesh
kennet.sjoberg
2006-02-22, 07:28 AM
"lisp routine" ? Nope.
You can search this forum for the same question.
: ) Happy Computing !
kennet
peter
2006-02-22, 04:16 PM
You can't tell which lsp files are loaded but you could get a list of loaded functions.
(atomslst "C:*")
will return you a list of command line functions that are loaded into a drawing session.
Peter
(defun ATOMSLST (FILESPEC / ATOMSLST N N1 Z)
(foreach N (atoms-family 0)
(setq N1 (vl-symbol-name N))
(if (or (wcmatch N1 FILESPEC)
(wcmatch (strcase N1) (strcase FILESPEC))
)
(setq ATOMSLST (cons N ATOMSLST))
)
)
(setq ATOMSLST2 (acad_strlsort (mapcar 'vl-symbol-name ATOMSLST)))
(setq Z (open "atomslst2.txt" "w"))
(foreach N ATOMSLST2
(write-line N Z)
)
(close z)
(command "delay" 1500)
(command "notepad" "atomslst2.txt")
(mapcar
'(lambda (x)(cons x (eval x)))
ATOMSLST2
)
)
kennet.sjoberg
2006-02-22, 05:14 PM
You can do it with McNeel's DosLib
but LISP/VBA guys are out of luck.
. . . this forum for the same question. Link (http://forums.augi.com/showthread.php?t=10616#post68121)
: ) Happy Computing !
kennet
rkmcswain
2006-02-22, 08:10 PM
You can't tell which lsp files are loaded but you could get a list of loaded functions.
There is also a GUI for this, by Michael Puckett. I don't know if it's available for download anywhere, but see attached dialog for contact info.
http://forums.augi.com/attachment.php?attachmentid=20169&stc=1
kennet.sjoberg
2006-02-22, 08:50 PM
I have tested McNeel's DosLib
Command: (dos_lisplist T )
it works really great, it shows loaded lisp and file path.
: ) Happy Computing !
kennet
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.