- (defun c:tt ()
- (if (setq ss (ssget '((0 . "line"))))
- (progn
- (setq i -1
- tmp '()
- )
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (setq o1 (vlax-ename->vla-object s1))
- (setq j i)
- (while (setq s2 (ssname ss (setq j (1+ j))))
- (setq o2 (vlax-ename->vla-object s2))
- (if (setq pt (vlax-invoke o1 'intersectwith o2 0))
- (setq tmp (cons pt tmp))
- )
- )
- )
- (princ tmp)
- )
- )
- (princ)
- )
|