 - ;; 自定义函数下载: [url=http://bbs.mjtd.com/thread-95673-1-1.html]http://bbs.mjtd.com/thread-95673-1-1.html[/url]
- (defun c:tt ()
- (CMDLA0)
- (setq i -1)
- (if (setq ss (ssget '((0 . "LINE"))))
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (setq p1 (xyp-Pt2y (xyp-DXF 10 s1) -10)
- p2 (xyp-Pt2y (xyp-DXF 11 s1) 10)
- )
- (if (and (setq ss1 (ssget "c" p1 p2 '((0 . "text"))))
- (= (sslength ss1) 1)
- )
- (xyp-SubUpd s1 62 (xyp-get-color (ssname ss1 0)))
- )
- )
- )
- (CMDLA1)
- )
|