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.
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:
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
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.
Have something to add? Share your thoughts — no account required.
Ask the community — no account required