回复 狂刀lxx 的帖子
説的不错!是有这个问题,poly和mesh图元结构是一样的,不知道还有没有其他类似的图元实体,可以修改下,
- (defun EntNextAll (ent / ss)
- (if (not ent)
- (progn
- (setq ent (entnext))
- (setq ss (ssadd ent))
- )
- (setq ss (ssadd))
- )
- (while (and ent (setq ent (entnext ent)))
- (cond ((= "ATTRIB" (cdr (assoc 0 (entget ent))))
- (while (/= "SEQEND" (cdr (assoc 0 (entget(setq ent (entnext ent))))))
- )
- (setq ent (entnext ent))
- )
- ((= "VERTEX" (cdr (assoc 0 (entget ent))))
- (while (/= "SEQEND" (cdr (assoc 0 (entget(setq ent (entnext ent))))))
- )
- (setq ent (entnext ent))
- )
- )
- (if ent
- (ssadd ent ss)
- )
- )
- (if (= 0 (sslength ss))
- nil
- ss
- )
- )
|