View Full Version : quick question
allanp
3rd Oct 2004, 11:30 am
i was carrying out a lisp routine as per a tutorial and when i went to load the file i got an error message
"malformed list on input" can anybody explain what this means
Thanks
Allan
hendie
3rd Oct 2004, 12:54 pm
you've missed a parenthesis ~ "(" or ")" ~ somewhere in your routine.
each ( should have a matching ) to balance it.
allanp
3rd Oct 2004, 08:41 pm
Heres everything ive typed in can anyone see anything wrong
(defun testline ()
;define the function
(setq a (getpoint "\nEnter First Point : "))
;get the first point
(setq b (getpoint "\nEnter Second Point : "))
;get the second point
(command "Line" a b "")
;draw the line
) ;end defun
thanks
Allan
David Bethel
3rd Oct 2004, 09:04 pm
I don't see anything wrong:
http://www.davidbethel.com/0-talkg/testline.htm
(defun testline (/ a b)
;define the function
(initget 1)
(setq a (getpoint "\nEnter First Point : "))
;get the first point
(initget 1)
(setq b (getpoint b "\nEnter Second Point : "))
;get the second point
(command "_.Line" a b "")
;draw the line
) ;end defun
I would how ever and some code for local variables and forced inputs. -David
Powered by vBulletin™ Version 4.1.2 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.