本帖最后由 作者 于 2007-12-3 18:03:55 编辑
(defun lkn (/ e en in) (setq e(car (entsel)) in 0 en(entget e)) (princ "\n主实体数据为:")(princ en)(princ) (while (and (setq e(entnext e)) (/= (cdr (assoc 0 en)) "SEQEND") ) (setq en(entget e (list "*")) in(1+ in)) (princ (strcat "\n次实体 " (itoa in) " 数据为:" ))(princ en) ) (princ) ) 为什么只对POLYLINE起作用,对于LWPOLYLINE确不能提取点坐标出来,请解释! |