Greetings, I can't find the right combination for entmaking a entity ( a line in this case ) in the following code if XDATA is not present: R12 -> A2K (defun c:cline (/ en ed) (setq *error* nil) (setq en (car (entsel " Select Line: ")) ed (entget en '("*"))) (foreach g '(-3 0 6 8 10 11 39 62 67 210) (set (read (strcat "g" (itoa g))) (cdr (assoc g ed)))) (entmake (list (cons 0 g0) (cons 8 g8) (cons 10 g10) (cons 11 g11) (cons 210 g210) ; (cons -3 (if g-3 g-3 '(""))) ; (cons -3 (if g-3 g-3 nil)) ; (cons -3 (if g-3 g-3 '())) ; (if g-3 (cons -3 g-3)) (cons 6 (if g6 g6 "BYLAYER")) (cons 39 (if g39 g39 0)) (cons 62 (if g62 g62 256)) (cons 67 (if g67 g67 0)))) (entdel en) (redraw (entlast)) ; (foreach g '(-3 0 6 8 10 11 39 62 67 210) ; (set (read (strcat "g" (itoa g))) nil)) (prin1)) The routine crashes in all of the commented instances. No so, if say g62 color is nil. Any suggestions? TIA -David