- ;这样试下
- (princ "\n 文字合并 by:langjs 命令:qq")
- (defun c:qq (/ ent name name2 str)
- (setq str "")
- (while (and (setq name (car (entsel "\n选择文字: ")))
- (setq ent (entget name))
- (wcmatch (cdr (assoc 0 ent)) "*TEXT"))
- (if name2 (entdel name2) (setq ent1 ent))
- (setq str (strcat str (cdr (assoc 1 ent))) name2 name)
- (entmod (subst (cons 1 str) (assoc 1 ent1) ent1))
- (redraw name 3)
- )
- (if name2 (redraw name2 4))
- (princ)
- )
|