(defun xlb(ent / entdata ent pplist plist d ptlist) (setq ptlist nil) (setq ent (car ent)) (setq entdata (entget ent(list "*"))) (setq entdata (assoc -3 entdata)) (SETQ pplist (member(assoc 1000 entdata) entdata)) (setq plist (car pplist)) (while (/= plist nil) (setq d (cdr pplist)) (setq ptlist (cons (cdr plist) ptlist)) (setq pplist (member(assoc 10000 d) d)) (setq plist (car pplist)) ) (setq ptlist (reverse ptlist)) )
加下划线的那一步可能要根据你的数据列表再改一下就可以了
|