Hi Guys,
Do not know if this been discussed yet but is there a way to retreive the loaded lisp files list in memory?
if the application path in the support file search path is some how lost and the application
has to load more lisp files or other data files (which of course will fail)
i would like to find the path the main lisp file was loaded from
thanks in advance
Moshe
Solved! Go to Solution.
Solved by Moshe-A. Go to Solution.
moshe-a wrote:....is there a way to retreive the loaded lisp files list in memory?
....
i would like to find the path the main lisp file was loaded from
....
This was mentioned some time ago, and revealed to me a feature I had never noticed before. Type APPLOAD, and look at the "Loaded Applications" listing, which includes file paths. Whether you can get that information programmatically, I don't know, but you can at least see it on-screen.
Kent Hi,
thank you for the info
the question is does appload.arx expose some of it features to autolisp?
Moshe
Generally, I find it not worth the effort to put together, since if the path has been removed from the search path or the files have been moved elsewhere its difficult to tell where the file actually is. Its easier to fire off an alert box or some similar error message with an appropriate description that a support person can work with ("Error 6007. Invalid filename." doesn't count!). If absolutely necessary, you could have your own calls to (load...) which adds the filename to a list of strings which you can later work with.
I don't think so. Maybe some hidden function in the ACET-* library, which is still undocumented after all these years.
If you have DOSLib, you can its DOS_LISPLIST function.
http://download.rhino3d.com/McNeel/1.0/doslib/
- Dale
Dale,
thanks for the info
In my current application i make calls to some library functions comming from
ObjARX modula (that i have written) and DOSLib is an ObjARX application - right?!
that means i can write a similer function from ObjARX
I do not want my application to be depand on one function comming from DOSLib
could you direct me how this can be done from ObjARX?
(if you prefer moving this thread to ObjARX DG it's ok with me)
Thanks again
Moshe
A few years late, but:
get & install DOSLib from https://wiki.mcneel.com/doslib/home
arxload the respective DOSLibxxxx.arx file
run something like:
(defun c:listlisp (/ outf fn)
(setq outf (open (setq fn "lspfiles.txt") "w"))
(foreach e (vl-sort (mapcar 'strcase (dos_lisplist t)) '<)
(write-line e outf)
)
(close outf)
(startapp "notepad" fn)
(princ)
)