SweepDefinition.SetSectionTwists Method
Parent Object: SweepDefinitionDescription
Method that sets the twisted sweep sections and the twist conditions at these sections. This method is applicable when the SweepType is kPathAndSectionTwistSweepType.
Remarks
The SectionTwistPoints argument specifies the object collection that contains the sweep path points at which section twists need to be applied and the SectionTwistPoints argument specifies the object collection that contains the corresponding twist vectors for these sweep sections.Syntax
SweepDefinition.SetSectionTwists( SectionTwistPoints As ObjectCollection, SectionTwistVectors As ObjectCollection )Parameters
Name | Type | Description |
SectionTwistPoints | ObjectCollection | Input ObjectCollection that contains the points along the sweep path at which the sweep twists need to be specified. The sweep path points define the positions of the sweep cross-sections at which the twists need to be specified. Since the sweep feature is created by sweeping a profile cross-section along a sweep path, the twist of the sweep can theoretically be controlled at all points along the sweep path. But for practical purposes, the creation of a twisted sweep feature will be limited to sweep features that are swept along a spline path and the twist can only be specified for cross-sections at fit points of the spline path. Since the sweep feature can only be twisted at fit points of the spline that defines the sweep path, the valid input points are only the fit points of the spline that defines the sweep path. If any of the specified input points are not fit points on the sweep path specified by the Path argument, then setting the twists for the sweep sections will fail. Therefore, the valid input objects can be either SketchPoint objects that correspond to any of the fit points of the sweep path if it is a 2D spline or SketchPoint3D objects that correspond to any of the fit points of the sweep path if it is a 3D spline. Since this argument together with the SectionTwistVectors argument defines the twist conditions at all cross-sections of the sweep at which the twist needs to be specified, valid collection objects need to be specified for both these arguments in order to define twist conditions for the sweep. Also, the following conditions need to be satisfied in order to correctly specify both these arguments:
|
SectionTwistVectors | ObjectCollection | Input ObjectCollection object that specifies the unit-vectors that define the twists for the sweep sections. The sweep twist vectors define the twists for the sweep cross-sections specified using the SectionTwistPoints argument. The twist vectors are unit-vectors specified in the model space coordinate system. Also, each vector should lie on the plane of the sweep cross-section for which it defines the twist, otherwise, setting the twists for the sweep sections will fail. Therefore, the valid input objects are UnitVector objects that specify the twist vector directions for the sweep sections. Since this argument together with the SectionTwistPoints argument defines the twist conditions at all cross-sections of the sweep at which the twist needs to be specified, valid collection objects need to be specified for both these arguments in order to define twist conditions for the sweep. Also, the following conditions need to be satisfied in order to correctly specify both these arguments:
|