
- ;;需要e派工具箱(XCAD)的支持:[url=http://xyp1964.ys168.com]http://xyp1964.ys168.com[/url]
- (defun c:tt ()
- (CMDLA0)
- (setq ss (ssget '((0 . "TEXT") (8 . "LGJ1")))
- i -1
- )
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (setq rad (xyp-get-dxf 50 s1)
- pt (xyp-get-dxf 10 s1)
- p1 (polar pt rad 800)
- p2 (polar pt rad 1200)
- p2 (polar p2 (- rad (* pi 0.5)) 200)
- )
- (if (and (setq ss1 (ssget "c" p1 p2 '((0 . "TEXT") (8 . "BEAM"))))
- (= (sslength ss1) 1)
- )
- (xyp-SubUpd s1 1 (xyp-get-dxf 1 (ssname ss1 0)))
- )
- )
- (CMDLA1)
- )
|