Author Topic: [LISP] relative path to load  (Read 3033 times)

0 Members and 1 Guest are viewing this topic.

delkov

  • Guest
[LISP] relative path to load
« on: January 06, 2016, 04:25:05 AM »
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")

Lee Mac

  • Seagull
  • Posts: 12913
  • London, England
Re: [LISP] relative path to load
« Reply #1 on: January 06, 2016, 05:16:03 AM »
For example:
Code - Auto/Visual Lisp: [Select]
  1. (load (findfile ".\\test.lsp") nil)

delkov

  • Guest
Re: [LISP] relative path to load
« Reply #2 on: January 06, 2016, 06:48:01 AM »
Oh, thank you, man! as always helping