.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

points in a polyline from multiple lines that cross

1 REPLY 1
Reply
Message 1 of 2
kelcyo
421 Views, 1 Reply

points in a polyline from multiple lines that cross

How to obtain the points in a polyline from multiple lines that cross the polyline.
I have a polyline that is crossed by several lines and would like to get the points of intersection of the same to fetch the distances from the start of the polyline.
1 REPLY 1
Message 2 of 2
norman.yuan
in reply to: kelcyo

You can do:

 

For each line that intersects with the polyline, you can find the intersection point with Line.IntersectWith() method. Then, with Polyline.GetDistanceAtPoint() to find out the distance fron the polyline's start point to the intersection point (along the ployline).

Norman Yuan

Drive CAD With Code

EESignature

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost