Is there any way to find the path of current lisp file. For example,If we located test.lsp file on C driver, the function will return "C:\test.lsp".etc...
Thanks for any help.
(findfile "yourfile.lsp") in autocad will return the location of "yourfile" within the autocad search paths, if it exists...
hopefully that helps
Thanks for reply. But I want to find the saved path of lisp file being edited. I want to load other file in same folder which located anywhere.Maybe it's not loacted in Autocad search path.
There may be a way to retrieve the "last opened file" location from a registery entry somewhere? I only have LT at the moment, so I can't help you with the actual entry.
This is the folder for recent files in 2010 LT. May or may not help you...
HKEY_CURRENT_USER\Software\Autodesk\AutoCAD LT\R15\ACADLT-8001:409\Recent File List
I want to find the saved path of lisp file being edited.
If you are referring to a LISP file that is being edited within the Visual LISP IDE, you could read the *edit-file-history* section of the VLIDE.DSK file.
Access a broad range of knowledge to help get the most out of your products and services.