
- ;; 线脚水平线 需要e派工具箱(XCAD)的支持:[url=http://xyp1964.ys168.com]http://xyp1964.ys168.com[/url]
- (defun c:tt (/ ss i s1 dx ptn pt y a s2)
- (setq ss (ssget '((0 . "*POLYLINE")))
- i -1
- )
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (setq dx (+ (car (xyp-get-MinMaxPoint s1 9)) 100)
- ptn (XYP-Sort-Ptn (xyp-get-Vertexs s1 0) 2)
- )
- (foreach pt ptn
- (setq y (cadr pt))
- (cond ((or (not a) (and a (not (equal y a))))
- (setq s2 (xyp-line pt (list dx y))
- a y
- )
- )
- )
- )
- )
- (princ)
- )
|