Probeer dit.
(defun c:insp ()
(setq co nil)
(foreach n (entget (car (entsel))) (if (= (car n) 10) (setq co (append (list (cdr n)) co))))
(princ (nth 1 co))
(princ)
)
Groeten,
Alex
(defun c:insp ()
(setq co nil)
(foreach n (entget (car (entsel))) (if (= (car n) 10) (setq co (append (list (cdr n)) co))))
(princ (nth 1 co))
(princ)
)
Groeten,
Alex