求一个功能,是标注的文字的字体大小变成原来的两倍
求一个功能,是标注的文字的字体大小变成原来的两倍,可以框选(defun c:tt (/ ss k obj)(vl-load-com)
(if (setq ss (ssget '((0 . "DIMENSION"))))
(repeat (setq k (sslength ss))
(vla-put-TextHeight
(setq obj (vlax-ename->vla-object (ssname ss (setq k (1- k)))))
(* 2 (vla-get-textheight obj))
)
)
)
(princ)
) 1- K 妙哉!!! 如果让自己使用命令后,放大或者缩小的倍数,是否更合适? (defun c:tt (/ ss k obj)
(vl-load-com)
(setq sfbili (getreal "\n 输入比例"))
(if (setq ss (ssget '((0 . "DIMENSION"))))
(repeat (setq k (sslength ss))
(vla-put-TextHeight
(setq obj (vlax-ename->vla-object (ssname ss (setq k (1- k)))))
(* sfbili (vla-get-textheight obj))
)
)
)
(princ)
) 大佬,666666感谢
页:
[1]