- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi there.
I have in my drawing 50 pipes(polylines) and when i search them for instersections it is slow and it is because i have 3-4 pipes with more than 300 vertices. There is any alternative faster solution?
Here is my code for intersection check:
(if (/= pipesHandleList nil)
(progn
(setq i 0)
(repeat (length pipesHandleList)
(setq pipeIntersection nil)
(if (/= (handent (nth i pipesHandleList)) nil)
(if (/= (vlax-ename->vla-object (handent (nth i pipesHandleList))) nil)
(if (/= (nth i pipesHandleList) mainPipeHandle)
(progn
(setq otherPipe (vlax-ename->vla-object (handent (nth i pipesHandleList))))
(setq pipeIntersection (vla-IntersectWith mainPipe otherPipe acextendnone)) ;This slows down if there is poylines with more than 200/300 vertices
))
)
)
(setq i (+ 1 i))
)
))
Solved! Go to Solution.