 - ;; 交换单行文字内容 伪源码需要e派工具箱(XCAD)的支持
- (defun c:tt ()
- (if (and (setq s1 (car (entsel "\n选择第1个文本: ")))
- (setq s2 (car (entsel "\n选择第2个文本: ")))
- (not (equal s1 s2))
- (xyp-etype s1 "text")
- (xyp-etype s2 "text")
- )
- (progn
- (setq p1 (xyp-get-9pt s1 1)
- p2 (xyp-get-9pt s2 1)
- )
- (xyp-move s1 p1 p2)
- (xyp-move s2 p2 p1)
- )
- )
- (princ)
- )
|