Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Im using Lee Macs intersection functions (between sets) to detect when two lines intersect (acextendnone), but it shows intersections at lines that are within a few hundredths but not intersecting. Any idea what could be causing this? Here is the lisp im using to call LM's functions
(defun c:WER ( / ss1 ss2 )
(if (and (setq ss1 (ssget "_X" '((8 . "AP-BUILDING LINE,AP-EASEMENT"))))
(setq ss2 (ssget "_X" '((8 . "00FORMLINE"))))
)
(foreach pnt (LM:intersectionsbetweensets ss1 ss2)
(entmake (list (cons 0 "circle") (cons 10 pnt) (cons 40 1) (cons 39 10) (cons 62 30) (cons 8 "FRMCHK")))
)
)
(if(ssget "_X" (list(cons 8 "FRMCHK")))
(alert "Possible Encroachment")
)
(princ)
)
(vl-load-com) (princ)
Solved! Go to Solution.