- (defun c:wwd (/ en1 en1_data oldr_list oldr newr newr_rr en1_data )
- ;更改文字宽度因子
-
- (or
- *newr-var*
- (setq *newr-var* 1.0)
- )
- (or
- (and
- (setq newr (getreal (strcat "\n新宽度<" (vl-princ-to-string *newr-var* )">")))
- (setq *newr-var* newr)
- )
- (setq newr *newr-var*)
- )
- (while
- (setq en1(nentsel "\n更改宽度因子"))
- (setq en1_data (entget (car en1)))
- (setq oldr_list (assoc 41 en1_data))
- (setq oldr (cdr oldr_list))
- (princ "\n当前宽度因子为:")(princ oldr)
-
- (setq newr_rr(cons 41 newr))
- (setq en1_data(subst newr_rr oldr_list en1_data))
- (entmod en1_data)
- (princ "\n宽度因子改为:")
- (princ newr)
- )
- (princ)
- )
自己的,加上必强大佬更改的一下,
|