本帖最后由 x_s_s_1 于 2020-3-24 22:55 编辑
 - ;;;光颜色不区分图元类型,删除(assoc 0 ent)
- ;;;拾取特征颜色
- (defun c:sbc (/ en ent ss)
- (setq en (car (entsel "\n拾取特征颜色(非随层):"))
- ent (entget en)
- )
- (if (assoc 62 ent)
- (progn (prompt "\n框选:")
- (setq ss (ssget (list (assoc 0 ent) (assoc 62 ent))))
- (sssetfirst nil ss)
- )
- )
- )
|