简单的写个。块里的没有处理
看看能用不- (defun c:t11 (/ ss a l1 l2 xls en entb ls)
- (setq ss (ssget ":L" '((0 . "*LINE"))) a -1)
- (setq l1 (getint "\n当前比例:") l2 (getint "\n图纸原比例:"))
- (setq xls (/ l1 l2))
- (if (and ss xls)
- (while
- (setq en (ssname ss (setq a(1+ a))
- )
- )
- (setq entb (entget en))
- (if (setq ls (assoc 48 entb))
- (entmod (subst (cons 48 (* xls(cdr ls)))(assoc 48 entb) entb))
- )
- )
- )
- (princ)
- )
|