Jump to content

[LISP] relative path to load


delkovebay

Recommended Posts

Hello everyone!

I have some issue: I've installed autocad at C:\Autodesk\.

Also, there is some lisp-routine at C:\Autodesk\scripts\test.lsp

I wrote this (load "C:\\Autodesk\\scirpts\\test.lsp") at acad2016.lsp to autoload.

 

Then for example I want to move CAD at the D:\Cad.

And my autoload won't load.

How to use "relative path"?

I need something like: (load "[current folder]\test.lsp")

Link to comment
Share on other sites

Hello everyone!

I have some issue: I've installed autocad at C:\Autodesk\.

Also, there is some lisp-routine at C:\Autodesk\scripts\test.lsp

I wrote this (load "C:\\Autodesk\\scirpts\\test.lsp") at acad2016.lsp to autoload.

 

Then for example I want to move CAD at the D:\Cad.

And my autoload won't load.

How to use "relative path"?

I need something like: (load "[current folder]\test.lsp")

 

 

Hi Delkovebay

 

 

Don't include a path in your lisp apps. Use (findfile "test.lsp") and make sure you add your lisp folder via options dialog to your support folders.

 

 

gr. Rlx

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...