
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I need your support,
I created the following program to draw a point at each intersection between tow lines
I want to update it to draw the edit points when I have two polylines or line / polyline
****************************************************************
(defun c:IN2L (/ l1 l2 intersection a)
(setq l1 (car (entsel "\npoligne 1"))
l2 (car (entsel "\npoligne 2"))
)
(setq intersection (inters (list (car (cdr (assoc 10 (entget l1))))
(cadr(cdr (assoc 10 (entget l1)))))
(list (car (cdr (assoc 11 (entget l1))))
(cadr (cdr (assoc 11 (entget l1)))))
(list (car (cdr (assoc 10 (entget l2))))
(cadr(cdr (assoc 10 (entget l2)))))
(list (car (cdr (assoc 11 (entget l2))))
(cadr (cdr (assoc 11 (entget l2)))))
nil)
)
(command "point" intersection "")
)
****************************************************************
Thank you in advance,
Solved! Go to Solution.