.NET

Reply
Active Member
kelcyo
Posts: 10
Registered: ‎02-05-2007
Message 1 of 2 (159 Views)

points in a polyline from multiple lines that cross

159 Views, 1 Replies
11-04-2013 11:08 AM
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.
*Expert Elite*
norman.yuan
Posts: 993
Registered: ‎04-27-2009
Message 2 of 2 (127 Views)

Re: points in a polyline from multiple lines that cross

11-05-2013 08:24 AM 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).

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.