.NET

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

Length of a closed Polyline

82 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 (82 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 (82 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

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

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 to get help installing your software.

Ask the Community