958620832 发表于 2013-8-1 13:35 
知道lisp中存在什么问题吗?如果知道,就请指出来,谢了
帮你整理一下代码。 - (defun c:mb (/ ss a ent1 oldsize newsize ent2)
- (setvar "cmdecho" 0)
- (setq ss (ssget) a -1)
- (while (setq ent1 (entget (ssname ss (setq a (1+ a)))))
- (setq oldsize (assoc 72 ent1))
- (setq newsize (cons 72 1)) ;;另外对齐样式 还与73组码有关。我没研究过
- (setq ent2 (subst newsize oldsize ent1))
- (entmod ent2)
- )
- (setvar "cmdecho" 1)
- (princ)
- )
|