Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This might be a bit much but I figured it might be worth a shot!
- I have 2 functions
--- one for intersecting LINES at DIFFERENT ELEVATIONS (I'll post my code, YES, it could probably be more sophisticated. I'm learning; love any feedback!)
--- one for intersecting LINES/ARCS at SAME ELEVATION (created by Lee Mac Here >>>LINK<<<)
- Is there a way to combine these two functions to make ONE ULTIMATE INTERSECTING FUNCTION?
...or would I be stuck having to determine the lines/elevations first then pick a function based off of my criteria?
Looking forward to the challenge!!! Best,
~DD
(defun C:EZINT (/ MyEnt iPoint SP1 EP1 SP2 EP2) ;;;;;find intersecting point of two lines, regardless of their z elevations (vl-load-com) (setq MyEnt (entsel "\nLine 1: ")) (setq SP1 (list (car (vlax-curve-getStartPoint (car MyEnt))) (cadr (vlax-curve-getStartPoint (car MyEnt)))) EP1 (list (car (vlax-curve-getEndPoint (car MyEnt))) (cadr (vlax-curve-getEndPoint (car MyEnt))))) (setq MyEnt (entsel "\nLine 2: ")) (setq SP2 (list (car (vlax-curve-getStartPoint (car MyEnt))) (cadr (vlax-curve-getStartPoint (car MyEnt)))) EP2 (list (car (vlax-curve-getEndPoint (car MyEnt))) (cadr (vlax-curve-getEndPoint (car MyEnt))))) (setq iPoint (inters SP1 EP1 SP2 EP2)) );defun
Solved! Go to Solution.