
- (defun c:cc()
- (if (setq p1 (getpoint "\n左上角:"))
- (if (setq p2 (getcorner p1 "\n右下角:"))
- (if (setq ssa (ssget "w" p1 p2 '((0 . "TEXT"))))
- (progn
- (setq i 0 n (sslength ssa))
- (repeat n
- (setq ent (ssname ssa i)
- dxf (entget ent)
- zfc (assoc 1 dxf)
- tcm (assoc 8 dxf)
- dxf (subst (cons 1 (strcat (cdr tcm) " " (cdr zfc))) zfc dxf)
- )
- (entmod dxf)
- (setq i (1+ i))
- )
- )
- )
- )
- )
- )
|