Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

More LISP info please 1

Status
Not open for further replies.

Welshman

Computer
Dec 16, 2002
28
0
0
GB
Hi guys

If I have a lisp file located in a network sub directory
EG O:\ARCHITECTS\ACAD2002\LISP\LISPFILE.LSP

How do I load an run it with such a long path name?

If I move the file to C:\ and type

(Load "c:\lispfile.lsp") it loads and executes fine
but, if I load it in its network location

(Load "O:Architects\Acad2002\Lisp\Lispfile.lsp")
AutoCad gives me a load error.

Any ideas ?

Many thanks
The Welshman

 
Replies continue below

Recommended for you

in acad

tools -> load application
then browse to .lsp file

it will remember path and add to list, for even more automation, use the start up suite by clicking the "contents" button, then browse for file.

now this lisp will be loaded with each autocad session.

hope this helps

Intel P4 1.7 GHZ
768 RDRAM
Win 2000 Pro
Autocad 14, 2002 with EP 2.3.1
 
Thanks OZZY84

Good idea, but not really the answer, I know about the startup suite, but I need to know how to specifiy a long path name WITHIN the lisp program.

Any other info greatly recieved.

Cheers

The Welshman.
 
I think what you are looking for is to always use double back-slashes in lisp paths (i.e. "C:\\Folder\\file.txt")

"Whether you think that you can, or that you can't, you are usually right "
.. Henry Ford
 
Hello,
I think at first this computer on a network needed to be mapped as disc for example F: on your computer. Then write in Lisp as usual:
"F:\\ARCHITECTS\\ACAD2002\\LISP\\LISPFILE.LSP"
Regards
 
Thanks Borgunit and Naujoke

The double // worked a treat, however.

What I am trying to achieve is to get a LISP file to load in another lisp file and then run it.

I am using the ACADDOC.LSP file to load a LISP file called MESSAGE.LSP which is located on my network drive (it now loads sucessfully thanks to // as per my previous quiery).

However, once the MESSAGE.LSP is loaded, it fails to run,
(command "message") although if loaded manually it runs fine.

Is there something I am missing about one lisp running another?

Regards

The Welshman.
 
Status
Not open for further replies.
Back
Top