.NET

Reply
Distinguished Contributor
RolandF
Posts: 172
Registered: ‎11-19-2003
Message 1 of 3 (87 Views)

Length of a closed Polyline

87 Views, 2 Replies
11-22-2005 06:12 AM
How do i get the length of a closed polyline?
I tried this:
double tmpSBDistance = CurveObj.GetDistAtPoint(CurveObj.EndPoint);

but it does not work for a closed polyline.
--
Roland Feletic
Distinguished Contributor
RolandF
Posts: 172
Registered: ‎11-19-2003
Message 2 of 3 (87 Views)

Re: Length of a closed Polyline

11-22-2005 06:18 AM in reply to: RolandF
Sorry, it works, had a mistake in my code.

--
Roland Feletic

schrieb im Newsbeitrag news:5019960@discussion.autodesk.com...
How do i get the length of a closed polyline?
I tried this:
double tmpSBDistance = CurveObj.GetDistAtPoint(CurveObj.EndPoint);

but it does not work for a closed polyline.
--
Roland Feletic
Distinguished Contributor
RolandF
Posts: 172
Registered: ‎11-19-2003
Message 3 of 3 (87 Views)

Re: Length of a closed Polyline

11-22-2005 07:10 AM in reply to: RolandF
It did not work, you have to change it into
double CurveLength = CurveObj.GetDistanceAtParameter(CurveObj.EndParam);


--
Roland Feletic

schrieb im Newsbeitrag news:5019960@discussion.autodesk.com...
How do i get the length of a closed polyline?
I tried this:
double tmpSBDistance = CurveObj.GetDistAtPoint(CurveObj.EndPoint);

but it does not work for a closed polyline.
--
Roland Feletic
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.