- ;;By LUCAS(龙龙仔)
- (defun NENTSGET (/ HOLDPICKADD LIS SSS N NAM)
- (setq HOLDPICKADD (getvar "PICKADD"))
- (setvar "pickadd" 1)
- (prompt "\n请连续个别选取图块内物件...")
- (setq LIS (ssnamex (ssget ":N")))
- (setq N 0)
- (repeat (length LIS)
- (if (= (type (setq NAM (cadr (nth N LIS)))) 'ENAME)
- (setq SSS (append SSS (list NAM)))
- )
- (setq N (1+ N))
- )
- (setvar "pickadd" HOLDPICKADD)
- SSS
- )(defun C:ZZZ (/ SS SA)
- (setq SS (NENTSGET))
- (mapcar '(lambda (X)
- (setq SA (entget X))
- (if (assoc 62 SA)
- (setq SA (subst (cons 62 1) (assoc 62 SA) SA))
- (setq SA (append SA (list (cons 62 1))))
- )
- (entmod SA)
- )
- SS
- )
- (command "_.regen")
- (princ)
- )
|