TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: STEVEDALLAS on April 12, 2007, 12:01:04 PM

Title: my lisp routine has an error
Post by: STEVEDALLAS on April 12, 2007, 12:01:04 PM
A little help with this please.
I get an error of "Error: no function definition: VLISP-COMPILE".
Thanks to all in advance.

(defun c:LISP2FAS ( / str1 dir1 num1 str2)
  (setq str1 (getfiled "LISP file..." "" "LSP" 2))
  (setq dir1 "C:\flyout menu  items\support\lsp-fas")
  (setq num1 (strlen str1))
  (setq str2 (strcat dir1 (substr str1 1 (- num1 4)) ".fas"))
  (vlisp-compile 'st str1 str2)
)
Title: Re: my lisp routine has an error
Post by: JohnK on April 12, 2007, 12:09:46 PM
...Support file search path
Title: Re: my lisp routine has an error
Post by: STEVEDALLAS on April 12, 2007, 12:13:32 PM
I just saw that in order to use vlisp-compile you have to initiate the vlide command.
It says it compiled it but I can not find it.
Title: Re: my lisp routine has an error
Post by: JohnK on April 12, 2007, 12:13:54 PM
BTW as a side note, i would suggest trying to use a better subject title for your posts.

Mark, has been so kind, in the ``theSwamp guidelines (http://www.theswamp.org/index.php?topic=9202.0)'', to post a link to a site which should explain this futher. (Here is that link: [ http://www.catb.org/~esr/faqs/smart-questions.html ] )
Title: Re: my lisp routine has an error
Post by: STEVEDALLAS on April 12, 2007, 12:17:15 PM
oops
Title: Re: my lisp routine has an error
Post by: JohnK on April 12, 2007, 12:18:58 PM
I just saw that in order to use vlisp-compile you have to initiate the vlide command.
It says it compiled it but I can not find it.

Did you check the install dir?
Title: Re: my lisp routine has an error
Post by: JohnK on April 12, 2007, 12:19:42 PM
oops

No problem.
Title: Re: my lisp routine has an error
Post by: STEVEDALLAS on April 12, 2007, 12:24:21 PM
I searched the hard drive for fas...nothing.
odd.
Title: Re: my lisp routine has an error
Post by: JohnK on April 12, 2007, 12:26:19 PM
I searched the hard drive for fas...nothing.
odd.

*huh*
Ok, let me look into the function further. I, personally, never used it so i will have to read the docs a bit more.
Title: Re: my lisp routine has an error
Post by: JohnK on April 12, 2007, 12:56:41 PM
Here is what i did. (I have a lisp file on c:)

1. opened the vl-ide
2. issued the following command on the AutoCAD command line:
     (vlisp-compile 'st "MyLisp.lsp")
3. the function returned T
4. I opened up explore and looked in c:

There was a fas file there.

I also made sure ``c:\'' was in my support file search path.

Can you repeat these steps?
Title: Re: my lisp routine has an error
Post by: Guest on April 12, 2007, 01:02:35 PM
Correct me if I'm wrong, but...

Shouldn't the slashes be either '\\' or '/'??

(setq dir1 "C:\flyout menu  items\support\lsp-fas") would be (setq dir1 "C:/flyout menu items/support/lsp-fas") or (setq dir1 "C:\\flyout menu items\\support\\lsp-fas")

Title: Re: my lisp routine has an error
Post by: STEVEDALLAS on April 12, 2007, 05:04:08 PM
That did it.
Thanks everyone.