Page 1 of 1
PolyLine, Line, Length
Posted: 04 Jun 2009, 17:26
by JobaDiniz
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?
Re: PolyLine, Line, Length
Posted: 05 Jun 2009, 03:56
by JobaDiniz
Well, i think i solved the problem.
I sum the distances of each DPoint belonging to the PolyLine, as well the Line.
Re: PolyLine, Line, Length
Posted: 09 Jun 2009, 04:40
by JobaDiniz
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?
Re: PolyLine, Line, Length
Posted: 09 Jun 2009, 16:12
by support
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