文本匹配复制:
- ;; 文本匹配复制
- ;; 伪源码需要e派工具箱(XCAD)的支持
- (defun c:tt ()
- (CMDLA0)
- (if (and (setq s1 (car (entsel "\n选择: ")))
- (xyp-etype s1 "text")
- (setq ss (ssget))
- )
- (progn
- (setq tx (xyp-get-dxf 1 s1)
- ss0 (ssget "X" (list '(0 . "text") (cons 1 tx)))
- p0 (xyp-get-9pt ss 9)
- i -1
- )
- (while (setq s1 (ssname ss0 (setq i (1+ i))))
- (setq pt (xyp-get-9pt s1 3)
- pt (xyp-get-Pt2Y pt -200)
- )
- (xyp-copymove ss p0 pt)
- )
- )
- )
- (CMDLA1)
- )
|