- (defun c:yc ()
- (setvar "cmdecho" 0)
- (setq ss (ssget))
- (setq i 0)
- (repeat (sslength ss)
- (setq sn (ssname ss i))
- (setq ent (entget sn))
- (setq lx (cdr (assoc 60 ent)))
- (if (= lx nil)
- (progn
- (setq a (list (cons 60 1)))
- (setq ent (append ent a))
- (entmod ent)
- )
- )
- (if (/= lx nil)
- (progn
- (setq ent (subst (cons 60 1) (assoc 60 ent) ent))
- (entmod ent)
- )
- )
- (setq i (1+ i))
- )
- (princ)
- )
- (defun c:xs ()
- (setvar "cmdecho" 0)
- (setq ss (ssget "x"))
- (setq i 0)
- (repeat (sslength ss)
- (setq sn (ssname ss i))
- (setq ent (entget sn))
- (setq ent (subst (cons 60 0) (assoc 60 ent) ent))
- (entmod ent)
- (setq i (1+ i))
- )
- (princ)
- )
|