Author Topic: my lisp routine has an error  (Read 5464 times)

0 Members and 1 Guest are viewing this topic.

STEVEDALLAS

  • Guest
my lisp routine has an error
« 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)
)

JohnK

  • Administrator
  • Seagull
  • Posts: 10603
Re: my lisp routine has an error
« Reply #1 on: April 12, 2007, 12:09:46 PM »
...Support file search path
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

STEVEDALLAS

  • Guest
Re: my lisp routine has an error
« Reply #2 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.

JohnK

  • Administrator
  • Seagull
  • Posts: 10603
Re: my lisp routine has an error
« Reply #3 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'', 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 ] )
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

STEVEDALLAS

  • Guest
Re: my lisp routine has an error
« Reply #4 on: April 12, 2007, 12:17:15 PM »
oops

JohnK

  • Administrator
  • Seagull
  • Posts: 10603
Re: my lisp routine has an error
« Reply #5 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?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10603
Re: my lisp routine has an error
« Reply #6 on: April 12, 2007, 12:19:42 PM »
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

STEVEDALLAS

  • Guest
Re: my lisp routine has an error
« Reply #7 on: April 12, 2007, 12:24:21 PM »
I searched the hard drive for fas...nothing.
odd.

JohnK

  • Administrator
  • Seagull
  • Posts: 10603
Re: my lisp routine has an error
« Reply #8 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.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10603
Re: my lisp routine has an error
« Reply #9 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?
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Guest

  • Guest
Re: my lisp routine has an error
« Reply #10 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")


STEVEDALLAS

  • Guest
Re: my lisp routine has an error
« Reply #11 on: April 12, 2007, 05:04:08 PM »
That did it.
Thanks everyone.