This will assign to a variable pt1, pt2, pt3 etc until enter/spacebar is pressed.
- (defun c:loop2 (/ pt ptlist cnt num) (setq ptlist nil) (while (setq pt (getpoint "\nEnter Point or RETURN when done: ")) (append ptlist (list pt))) ) ;_ end of while (setq cnt (length ptlist)) (setq num (+ cnt 1)) (repeat cnt (set (read (strcat "pt" (itoa (setq num (- num 1))))) (last ptlist)) (setq ptlist (vl-remove (last ptlist) ptlist)) ) ;_ end of repeat (princ)) ;_ end of defun
|