From.lsp - where is error?

Jul 18, 2004 6 Replies

Hi everyone.



What is wrong with this code? It won't work when "from" is entered in command line. Only "(from)" works.



(defun c:from () (setq p1 (getpoint "\nPick relative base point ")) (setvar "lastpoint" p1) (getpoint p1 "\nOffset ") )



Thanks.


I don't know what is wrong. I tried and it works fine.

****************************************************

CAD Solutions:

formatting link

I get just the opposite. Are you loading it first? How? What's it supposed to do? It's a lot of code just to return the value of the second point picked.

MichaelB

formatting link

Do you use lisp in IntelliCAD or AutoCAD? It works fine in ACAD2K when I load it from Lisp editor.

No error. Must use apostrophe before command.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required