本帖最后由 004 于 2014-5-11 02:37 编辑
- ;;小写转大写
- (alert "小写转大写命令TT")
- (defun c:tt (/ E EN N SS TEXT)
- (setq ss (ssget "x" '((0 . "TEXT"))))
- (if ss
- (progn
- (repeat (setq n (sslength ss))
- (setq e (ssname ss (setq n(1- n))))
- (setq en (entget e))
- (setq text (assoc 1 en))
- (setq en (subst (cons 1 (strcase (cdr text))) text en));(strcase "AA" T)大写转小写
- (entmod en)
- )
- )
- )
- )
|