×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

More LISP info please

More LISP info please

More LISP info please

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

RE: More LISP info please

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

RE: More LISP info please

(OP)
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.

RE: More LISP info please

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

RE: More LISP info please

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

RE: More LISP info please

(OP)
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.

RE: More LISP info please

Try this:
(C:message)

Regards

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources