News:

Interested in some really terrific mobile apps? Visit www.turboapps.com for details.

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.

mechanical curve scripting

Started by murray dickinson, March 17, 2010, 06:54:20 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

murray dickinson

It's possible to draw sin curves in TC, and others that are beyond my ability to describe, using "mechanical scripting".     How it's done:
In this example, I've revolved a normal line about an axis to make a helix.  For the sine curve, the diameter is the amplitude and the pitch is the period.  Explode the revolve down to line segments and then selecting the internal segments looking from either end along the axis, delete them, leaving just the outermost segments describing the edge.  Select those segments and join them to a 3D polyline.  Select the 3D polyline and format|convert to curve.  TC collapses 3D polylines onto the world plane, so the perimeter of the helix is a sine curve in 2D.  I think that this is capable of projecting angled end cuts of tubes, elliptical tubes, and cones for sheet layouts, gear tooth profiles and other parametric curves that I can't put names to. 

Henry Hubich

Quote from: murray dickinson on March 17, 2010, 06:54:20 AM
It's possible to draw sin curves in TC, and others that are beyond my ability to describe, using "mechanical scripting".     How it's done:
In this example, I've revolved a normal line about an axis to make a helix.  For the sine curve, the diameter is the amplitude and the pitch is the period.  Explode the revolve down to line segments and then selecting the internal segments looking from either end along the axis, delete them, leaving just the outermost segments describing the edge.  Select those segments and join them to a 3D polyline.  Select the 3D polyline and format|convert to curve.  TC collapses 3D polylines onto the world plane, so the perimeter of the helix is a sine curve in 2D.  I think that this is capable of projecting angled end cuts of tubes, elliptical tubes, and cones for sheet layouts, gear tooth profiles and other parametric curves that I can't put names to. 

That sure beats plotting points, Murray. A couple of comments...

1. If your TCad version offers the Helix tool, use it. Explode once, making it a Spline; rotate 90 deg about the X or Y axis; set Size Z to zero.

2. How is this useful with respect to gear tooth profiles?

Henry H


murray dickinson

I don't have the maths to quantify it, so give me a period of grace to work the graphical relationship, but an involute is the projection of a parabola onto a cylinder.