PolyLine, Line, Length

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
JobaDiniz
Posts: 6
Joined: 04 Jun 2009, 17:15

PolyLine, Line, Length

Post by JobaDiniz » 04 Jun 2009, 17:26

How can I get the PolyLine's Length? Or Line's Length?
I didn't find this property.
Is there some math to calculate this?

JobaDiniz
Posts: 6
Joined: 04 Jun 2009, 17:15

Re: PolyLine, Line, Length

Post by JobaDiniz » 05 Jun 2009, 03:56

Well, i think i solved the problem.
I sum the distances of each DPoint belonging to the PolyLine, as well the Line.

JobaDiniz
Posts: 6
Joined: 04 Jun 2009, 17:15

Re: PolyLine, Line, Length

Post by JobaDiniz » 09 Jun 2009, 04:40

Now i'm in trouble here.
I have to calculate the length of an ellipse.
Anyone knows how can I do that with the properties Ratio, RadPt and/or Angle?

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: PolyLine, Line, Length

Post by support » 09 Jun 2009, 16:12

Hello Joba!

You can calculate the lenght of an ellipse by two ways:
- Summarize the distances of each DPoint like you did for PolyLine;
- Calculate lenght mathematically. For this you will need RadPt and Ratio properties of CADEllipse class to calculate major and minor half axes of an ellipse.

Alexander
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply