;; History:
;; 08.22.06 -- Se7en
;;
;; 2006.08.22 Tracey .. corrected User interface < Spelling >
;;
;; 2006.08.23 {AEST} kwb@theSwamp .. documentation Update , reformat
;; 2006.08.23 {AEST} kwb@theSwamp .. add closing (princ)'s for less noise
;; 2006.08.23 Tracey ... added the c: to allow the user to use at the command line
;; 2006.08.23 DGC ... added recursive functionality (removed exiting quotes)
;; 2006.08.23 UnCoolPerson... added while, and associated fun. to keep DGC's idea in our lisp and not in the line command
;; 2006.08.23 ronjonp ... removed extra setq, replaced "command" with entmake, made all functions lowercase (OCD)
;; 2006.08.23 T.Willey ... fixed the while statement (took out unnecessary stuff)
;; 2006.08.23 MP ... renamed vars to be self describing, and/or fit my
;; sensibilities (I know, subjective),
;; reformatted to expose logic (subjective x 2),
;; changed rtos calls to itoa,
;; eliminated redundant prompt defs by employing a
;; template technique (pmt),
;; puckettized entmake code,
;; sorry I've got one shot at this and am tied up
;; for the balance of the day as I just resigned
;; my job of 11 years. As you can well imagine LOTS
;; of tidying up to do.
(defun c:MyLine ( / i pmt pt1 pt2 )
(setq
i 1
pmt '(strcat "\nEnter point number " (itoa i) ": ")
pt1 (getpoint (eval pmt))
)
(while
(setq
i (1+ i)
pt2 (getpoint pt1 (eval pmt))
)
(entmake
(append
'((0 . "line"))
(mapcar 'cons '(10 11) (list pt1 pt2))
)
)
(setq pt1 pt2)
)
(princ)
)