News:

Be sure your post is relevant to the current discussion.  Create a new topic within the appropriate board if you are unsure.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Length of spline

Started by dbertels, August 12, 2009, 07:43:30 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

dbertels

I know you can calculate the area within a closed spline using the 2D geometric parameters tool, but is there any way of calculating the length of a spline?
Vista Business SP 2
Turbocad Prof V15.2
Turbocad CAM V3.5

Henry Hubich

You can get a close approximation by exploding the Spline. This converts it into a Polyline, whose length v15 will report in the Selection Info palette. Accuracy is increased by increasing The number of segments between adjacent control points -- although the default value of 20 gives good results.

Version 16 will report the length of a Spline directly.

As a test of accuracy, I drew the Spline shown in the attached screenshot in v15.2, with The number of segments between adjacent control points = 20, and exploded it. Reported length was 54.7586220624". Having saved the drawing before exploding the Spline, I opened it in v16 and found the reported length of the actual Spline to be 54.764390859". Assuming this latter value is correct, the error incurred by exploding to a Polyline was about 0.0058", or just a little over 0.01 percent.

Henry H

[attachment deleted by admin]

dbertels

Excellent - works very well. Thanks Henry.
Vista Business SP 2
Turbocad Prof V15.2
Turbocad CAM V3.5

Stephane F.

Hi!

Isn't there is a tool for this?

In tools / Measurements / Distance you can actually measure a spline (I'm still using ver. 12.3 with Mech pack)
Simply choose the icon length of a single entity (a triangle with a question mark icon) and it does work for a spline. You can even use it for a 3D spline (tried it by curiosity)
Stephane Faucher

Henry Hubich

Quote from: Stephane F. on August 12, 2009, 10:39:59 PM
Hi!

Isn't there is a tool for this?

In tools / Measurements / Distance you can actually measure a spline (I'm still using ver. 12.3 with Mech pack)
Simply choose the icon length of a single entity (a triangle with a question mark icon) and it does work for a spline. You can even use it for a 3D spline (tried it by curiosity)

Yup. You're right, Stephane; but that tool actually reports  the same "Length" as the Selection Info palette reports when the Spline is exploded into a Polyline. In other words, it's an approximation, and its accuracy depends upon The number of segments between adjacent control points. Use whichever approach is more convenient, since the results are identical.

Henry H

Stephane F.

I see!

Measurement info tool is not as accurate as "metrics" in the selection info palette.
The first one seems to be based on the graphical representation (finite line elements for curves and circles) and the other one
is the actual geometrical dimensions.

A circle with a radius of one shows a circumference of 3.1415910586 in the measurement info, and gives the correct pi number in selection info. Thanks for the notice.
Stephane Faucher