Author Topic: How to calculate intersection point between Polyline and Line?  (Read 708 times)

0 Members and 1 Guest are viewing this topic.

saunambon654

  • Mosquito
  • Posts: 13
How to calculate intersection point between Polyline and Line?
« on: February 27, 2023, 09:38:29 AM »
Can I find the intersection point between Polyline and Line? Please see image:
https://prnt.sc/9wnKa0s6eiKO

« Last Edit: February 27, 2023, 09:42:59 AM by saunambon654 »

ribarm

  • Gator
  • Posts: 3272
  • Marko Ribar, architect
Re: How to calculate intersection point between Polyline and Line?
« Reply #1 on: February 27, 2023, 09:59:35 AM »
Study intersectwith method...
Link : http://www.lee-mac.com/intersectionfunctions.html

HTH.
M.R.
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

BIGAL

  • Swamp Rat
  • Posts: 1410
  • 40 + years of using Autocad
Re: How to calculate intersection point between Polyline and Line?
« Reply #2 on: February 27, 2023, 06:51:37 PM »
Use this

(setq intpt1 (vlax-invoke obj2 'intersectWith obj1 acExtendThisEntity)) ; note the object order and the option re extend etc 4 options.
A man who never made a mistake never made anything

saunambon654

  • Mosquito
  • Posts: 13
Re: How to calculate intersection point between Polyline and Line?
« Reply #3 on: February 27, 2023, 07:22:54 PM »
Study intersectwith method...
Link : http://www.lee-mac.com/intersectionfunctions.html

HTH.
M.R.

Thank you ribarm,
That is really good tool for intersection.
I found that the sort order of intersection list depend on direction of it.
https://prnt.sc/saCWVQFdCDjq