10为多义线的顶点坐标40,41,42分别为线的起点宽度,终点宽度和全局宽度,这个当然会有重复 下面的函数就是取多义线顶点坐标的,当然ent先要用convert命令处理
(defun xlb(ent / entdata ent pplist plist d ptlist);取线顶点列表 (setq ptlist nil) (setq ent (car ent)) (setq entdata (entget ent(list "*"))) (SETQ pplist (member(assoc 10 entdata) entdata)) (setq plist (car pplist)) (while (/= plist nil) (setq d (cdr pplist)) (setq ptlist (cons (cdr plist) ptlist)) (setq pplist (member(assoc 10 d) d)) (setq plist (car pplist)) ) (setq ptlist (reverse ptlist)) )
|