ThreadFeatures.Add Method
Parent Object: ThreadFeaturesDescription
Method that creates a new ThreadFeature. The new ThreadFeature object is returned.
Syntax
ThreadFeatures.Add( Face As Face, StartEdge As Edge, ThreadInfo As ThreadInfo, [DirectionReversed] As Boolean, [FullDepth] As Boolean, [ThreadDepth] As Variant, [ThreadOffset] As Variant ) As ThreadFeatureParameters
Name | Type | Description |
Face | Face | Input Face object that defines which face the thread feature is to be applied to. The face must be either a cylinder or cone. |
StartEdge | Edge | Input Edge object that defines the start of the thread. The edge must be an edge of the input face. |
ThreadInfo | ThreadInfo | Input ThreadInfo object that defines the thread attributes. This must be a StandardThreadInfo in the case where the input face is a cylinder and a TaperedThreadInfo in the case where the input face is a cone. |
DirectionReversed | Boolean | Optional input Boolean that specifies which direction from the start along the cone or cylinder the thread goes in. This is an optional argument whose default value is False. |
FullDepth | Boolean | Optional input Boolean that specifies if the thread go the full length of the cylinder or cone. A value of True indicates it goes the full the length. If False, the ThreadDepth argument needs to be supplies. This is an optional argument whose default value is True. |
ThreadDepth | Variant | Input Variant that defines the depth of the thread. This can be either a numeric value or a string. A parameter for this value will be created and the supplied string or value is assigned to the parameter. If a value is input, the units are centimeters. If a string is input, the units can be specified as part of the string or it will default to the current length units of the document. This is an optional argument whose default value is null. |
ThreadOffset | Variant | Optional input Variant that defines the offset of the start of the thread from the start edge. This can be either a numeric value or a string. A parameter for this value will be created and the supplied string or value is assigned to the parameter. If a value is input, the units are centimeters. If a string is input, the units can be specified as part of the string or it will default to the current length units of the document. This is an optional argument whose default value is null. |
Samples
Name | Description |
Thread Feature Create | This sample demonstrates the creation of a thread feature. It creates a cylinder in a new part document and creates a thread feature on the cylinder. |