TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started 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)
)
-
...Support file search path
-
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.
-
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 ] )
-
oops
-
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?
-
oops
No problem.
-
I searched the hard drive for fas...nothing.
odd.
-
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.
-
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?
-
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")
-
That did it.
Thanks everyone.