- ;; 改换字高
- ;; 伪源码需要e派工具箱(XCAD)的支持
- (defun c:tt ()
- (CMDLA0)
- (xyp-initSet '(ukw th) '("1" 500.))
- (setq ukw (UKWORD 1 "1 2" "高度方式: 1-选样板/2-两点" ukw))
- (if (= ukw "1")
- (if (and (setq s1 (car (entsel "\n选择文本: ")))
- (xyp-etype s1 "text,mtext")
- )
- (setq th (xyp-get-dxf 40 s1))
- (setq th 500)
- )
- (setq th (Udist 1 "" "高度<输入或鼠标直接量取>" th nil))
- )
- (setq ss (ssget '((0 . "*TEXT")))
- i -1
- )
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (xyp-SubUpd s1 40 th)
- )
- (CMDLA1)
- )
|