Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Retreive Loaded Lisp files List

9 REPLIES 9
SOLVED
Reply
Message 1 of 10
Moshe-A
4374 Views, 9 Replies

Retreive Loaded Lisp files List

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

 

9 REPLIES 9
Message 2 of 10
Kent1Cooper
in reply to: Moshe-A


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 Cooper, AIA
Message 3 of 10
Moshe-A
in reply to: Kent1Cooper

Kent Hi,

thank you for the info

the question is does appload.arx expose some of it features to autolisp?

 

Moshe

Message 4 of 10
dgorsman
in reply to: Moshe-A

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.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


Message 5 of 10
SomeBuddy
in reply to: Moshe-A

I don't think so. Maybe some hidden function in the ACET-* library, which is still undocumented after all these years.

Message 6 of 10
Moshe-A
in reply to: SomeBuddy

SomeBody,

 

Thanks

Message 7 of 10
dale_fugier
in reply to: Moshe-A

If you have DOSLib, you can its DOS_LISPLIST function.

 

http://download.rhino3d.com/McNeel/1.0/doslib/

 

 - Dale

Message 8 of 10
Moshe-A
in reply to: dale_fugier

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

Message 9 of 10
neyton_
in reply to: Moshe-A
Message 10 of 10
rmC86GJ
in reply to: neyton_

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)
)

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost