lucas_3333 发表于 2014-2-26 17:13
E大,很不错,谢谢了!还有一点点问题,改变标注文字大小时,箭头大小没有改变。
- (defun c:tt (/ hi ss)
- (fy:begin)
- (if (setq hi (getdist (strcat "\nTextSize<"
- (vl-princ-to-string (getvar "textsize"))
- ">: "
- )
- )
- )
- (progn
- (setvar "textsize" hi)
- (setvar "dimtxt" hi)
- (setvar "dimasz" hi)
- )
- (setq hi (getvar "textsize"))
- )
- (if (ssget '((0 . "*Text,Dim*")))
- (mapcar
- '(lambda (x / typ)
- (if (wcmatch (strcase (vla-get-objectname x))
- "*DIM*"
- )
- (vlax-put x "TextHeight" hi)
- (vlax-put x "Height" hi)
- )
- )
- (fy:cset->objs)
- )
- )
- (fy:end)
- (princ)
- )
|