.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Length of a closed Polyline

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
207 Views, 2 Replies

Length of a closed Polyline

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
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

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
Message 3 of 3
Anonymous
in reply to: Anonymous

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost