60001189 Helix command

Article 60001189
Type Wish
Product Engine
Version 7005
Date Added 7/20/2010
Fixed 7.7006.0.1 (8/17/2015)
Submitted by tianke0930

Summary

Is it possible to add the Helix command in commandAction that will produce an SPLine with control points (vdPolyline) ?

Solution

In version 7006 we added a new vdFigure named vdHelix. This an spline type object which is derived from vdCurve and draws a helix with specified turns and height (z axis).
The properties of the object are the following:

gPoint BaseCenter : Get/Set the Center of the base of the vdHelix object in World Coordinate System.
double BaseRadius : Get/Set the Base radius of the vdHelix object.
double TopRadius : Get/Set the Top radius of the vdHelix object.
double Height : Get/Set the Height of the vdHelix object.
double TurnHeight : Get/Set the Height for each turn of the vdHelix object.
double Turns : Get/Set the Turns of the vdHelix object.
VdConstHelixTwist Twist : Get/Set a flag indicating the way the helix will turn.
VdConstHelixConstrain Constrain : Get/Set a flag indicating the property that will be constrained when other properties change.
double StartAngle : Get/Set the start angle of the vdHelix object.

Please note that when you change any of the following properties : Turns , Height , and TurnHeight , the other properties are being recaqlculated. It is very important to set the Turns of the helix first when you create a helix object from scratch.

We also added a new command to the command action as following
summary> Creates a vdHelix object.
param name="BaseCenter">A gPoint object for the center of the Helix OR null,"user" so the user picks this point to the screen.
param name="BaseRadius">A double value that represents the base radius of the helix OR null,"user" so the user picks the radius to the screen.
param name="TopRadius">A double value that represents the top radius of the helix OR null,"user" so the user picks the radius to the screen.
param name="Height">A double value that represents the height of the helix OR null,"user" so the user picks the height to the screen.
returns>True if the operation was succesfull and the helix was added to the Active Layout.
private bool CmdHelix(object BaseCenter, object BaseRadius, object TopRadius, object Height)

This object is now supported in DWG/DXF formats also.

Send comments on this topic.