 - (defun c:tt ()
- (CMDLA0)
- (setq ss (ssget '((0 . "*LINE,ARC,CIRCLE,ELLIPSE")))
- plst '()
- i -1
- )
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (setq ps (vlax-curve-getstartPoint s1)
- p1 (xyp-get-MinMaxPoint s1 1)
- p1 (list (car p1) (cadr p1) (caddr ps))
- p9 (xyp-get-MinMaxPoint s1 9)
- dx (- (car p9) (car p1))
- ddx 0
- )
- (while (< ddx dx)
- (setq s2 (xyp-add-line p1 (xyp-get-Pt2DY p1 1))
- p1 (xyp-get-Pt2DX p1 0.1)
- ddx (+ ddx 0.1)
- ptn (xyp-get-Inters s2 s1 1)
- plst (if ptn
- (cons ptn plst)
- )
- )
- (foreach pt ptn
- (xyp-Cross pt 0.1 1)
- )
- (entdel s2)
- )
- )
- (princ plst)
- (CMDLA1)
- )
|