SegmentBuilder Class¶
-
class
NXOpen.Motion.SegmentBuilder¶ Bases:
NXOpen.TaggedObject,NXOpen.GeometricUtilities.IComponentBuilderRepresents a
NXOpen.Motion.SegmentBuilder, only creation is supportedTo create a new instance of this class, use
NXOpen.Motion.RoadBuilder.CreateSegmentBuilder()New in version NX11.0.0.
Properties¶
| Property | Description |
|---|---|
| Angle | Returns the angle of a constant radius segment |
| BankAngleCurve | Returns or sets the bank angle spline curve of a user defined segment |
| BankAngleCurveProfile | Returns the bank angle spline curve defined by a profile for the user defined road segment object |
| ConstantRadiusBankAngle | Returns the bank angle of a constant radius segment |
| ConstantRadiusElevationChange | Returns the elevation change of a constant radius segment |
| LaneChangeElevationChange | Returns the elevation change of a lane change segment |
| LaneChangeForwardLength | Returns the forward length of a lane change segment |
| LateralAmplitude | Returns the lateral amplitude of a slalom segment |
| LateralShiftLength | Returns the lateral shift length of a lane change segment |
| Length | Returns the length of a straight segment |
| Name | Returns or sets the name |
| NumberOfPylons | Returns the number of pylons of a slalom segment |
| Radius | Returns the radius of a constant radius segment |
| SegmentType | Returns or sets the segment type of a road segment |
| SlalomElevationChange | Returns the elevation change of a slalom segment |
| SlalomForwardLength | Returns the forward length of a slalom segment |
| SplineType | Returns or sets the spline type |
| StraightElevationChange | Returns the elevation change of a straight segment |
| Tag | Returns the Tag for this object. |
| TransitionType | Returns or sets the transition type of a straight segment |
| YCurve | Returns or sets the y spline curve of a user defined segment |
| YCurveProfile | Returns the y spline curve defined by a profile for the user defined road segment object |
| ZCurve | Returns or sets the z spline curve of a user defined segment |
| ZCurveProfile | Returns the z spline curve defined by a profile for the user defined road segment object |
Methods¶
| Method | Description |
|---|---|
| Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
| SegmentBuilderSplineDatatypeChoices Enumeration | data type attribute of the straight data |
| SegmentBuilderStraightTransitionTypeChoices Enumeration | data type attribute of the straight data |
| SegmentBuilderTypeChoices Enumeration | type attribute of the segment |
Property Detail¶
Angle¶
-
SegmentBuilder.Angle¶ Returns the angle of a constant radius segment
-------------------------------------Getter Method
Signature
AngleReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
BankAngleCurve¶
-
SegmentBuilder.BankAngleCurve¶ Returns or sets the bank angle spline curve of a user defined segment
-------------------------------------Getter Method
Signature
BankAngleCurveReturns: Return type: NXOpen.Motion.MotionFunctionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------Setter Method
Signature
BankAngleCurveParameters: spline ( NXOpen.Motion.MotionFunction) –New in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
BankAngleCurveProfile¶
-
SegmentBuilder.BankAngleCurveProfile¶ Returns the bank angle spline curve defined by a profile for the user defined road segment object
-------------------------------------Getter Method
Signature
BankAngleCurveProfileReturns: Return type: NXOpen.Motion.SelectFieldDataNew in version NX12.0.0.
License requirements: mechanisms (“MECHANISMS”)
ConstantRadiusBankAngle¶
-
SegmentBuilder.ConstantRadiusBankAngle¶ Returns the bank angle of a constant radius segment
-------------------------------------Getter Method
Signature
ConstantRadiusBankAngleReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
ConstantRadiusElevationChange¶
-
SegmentBuilder.ConstantRadiusElevationChange¶ Returns the elevation change of a constant radius segment
-------------------------------------Getter Method
Signature
ConstantRadiusElevationChangeReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
LaneChangeElevationChange¶
-
SegmentBuilder.LaneChangeElevationChange¶ Returns the elevation change of a lane change segment
-------------------------------------Getter Method
Signature
LaneChangeElevationChangeReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
LaneChangeForwardLength¶
-
SegmentBuilder.LaneChangeForwardLength¶ Returns the forward length of a lane change segment
-------------------------------------Getter Method
Signature
LaneChangeForwardLengthReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
LateralAmplitude¶
-
SegmentBuilder.LateralAmplitude¶ Returns the lateral amplitude of a slalom segment
-------------------------------------Getter Method
Signature
LateralAmplitudeReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
LateralShiftLength¶
-
SegmentBuilder.LateralShiftLength¶ Returns the lateral shift length of a lane change segment
-------------------------------------Getter Method
Signature
LateralShiftLengthReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
Length¶
-
SegmentBuilder.Length¶ Returns the length of a straight segment
-------------------------------------Getter Method
Signature
LengthReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
Name¶
-
SegmentBuilder.Name¶ Returns or sets the name
-------------------------------------Getter Method
Signature
NameReturns: Return type: str New in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------Setter Method
Signature
NameParameters: name (str) – New in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
NumberOfPylons¶
-
SegmentBuilder.NumberOfPylons¶ Returns the number of pylons of a slalom segment
-------------------------------------Getter Method
Signature
NumberOfPylonsReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
Radius¶
-
SegmentBuilder.Radius¶ Returns the radius of a constant radius segment
-------------------------------------Getter Method
Signature
RadiusReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
SegmentType¶
-
SegmentBuilder.SegmentType¶ Returns or sets the segment type of a road segment
-------------------------------------Getter Method
Signature
SegmentTypeReturns: Return type: NXOpen.Motion.SegmentBuilderTypeChoicesNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------Setter Method
Signature
SegmentTypeParameters: segmentType ( NXOpen.Motion.SegmentBuilderTypeChoices) –New in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
SlalomElevationChange¶
-
SegmentBuilder.SlalomElevationChange¶ Returns the elevation change of a slalom segment
-------------------------------------Getter Method
Signature
SlalomElevationChangeReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
SlalomForwardLength¶
-
SegmentBuilder.SlalomForwardLength¶ Returns the forward length of a slalom segment
-------------------------------------Getter Method
Signature
SlalomForwardLengthReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
SplineType¶
-
SegmentBuilder.SplineType¶ Returns or sets the spline type
-------------------------------------Getter Method
Signature
SplineTypeReturns: Return type: NXOpen.Motion.SegmentBuilderSplineDatatypeChoicesNew in version NX12.0.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------Setter Method
Signature
SplineTypeParameters: splineType ( NXOpen.Motion.SegmentBuilderSplineDatatypeChoices) –New in version NX12.0.0.
License requirements: mechanisms (“MECHANISMS”)
StraightElevationChange¶
-
SegmentBuilder.StraightElevationChange¶ Returns the elevation change of a straight segment
-------------------------------------Getter Method
Signature
StraightElevationChangeReturns: Return type: NXOpen.ExpressionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
TransitionType¶
-
SegmentBuilder.TransitionType¶ Returns or sets the transition type of a straight segment
-------------------------------------Getter Method
Signature
TransitionTypeReturns: Return type: NXOpen.Motion.SegmentBuilderStraightTransitionTypeChoicesNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------Setter Method
Signature
TransitionTypeParameters: segmentType ( NXOpen.Motion.SegmentBuilderStraightTransitionTypeChoices) –New in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
YCurve¶
-
SegmentBuilder.YCurve¶ Returns or sets the y spline curve of a user defined segment
-------------------------------------Getter Method
Signature
YCurveReturns: Return type: NXOpen.Motion.MotionFunctionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------Setter Method
Signature
YCurveParameters: spline ( NXOpen.Motion.MotionFunction) –New in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
YCurveProfile¶
-
SegmentBuilder.YCurveProfile¶ Returns the y spline curve defined by a profile for the user defined road segment object
-------------------------------------Getter Method
Signature
YCurveProfileReturns: Return type: NXOpen.Motion.SelectFieldDataNew in version NX12.0.0.
License requirements: mechanisms (“MECHANISMS”)
ZCurve¶
-
SegmentBuilder.ZCurve¶ Returns or sets the z spline curve of a user defined segment
-------------------------------------Getter Method
Signature
ZCurveReturns: Return type: NXOpen.Motion.MotionFunctionNew in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
-------------------------------------Setter Method
Signature
ZCurveParameters: spline ( NXOpen.Motion.MotionFunction) –New in version NX11.0.0.
License requirements: mechanisms (“MECHANISMS”)
ZCurveProfile¶
-
SegmentBuilder.ZCurveProfile¶ Returns the z spline curve defined by a profile for the user defined road segment object
-------------------------------------Getter Method
Signature
ZCurveProfileReturns: Return type: NXOpen.Motion.SelectFieldDataNew in version NX12.0.0.
License requirements: mechanisms (“MECHANISMS”)
Method Detail¶
Validate¶
-
SegmentBuilder.Validate¶ Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.
Signature
Validate()Returns: Was self validation successful Return type: bool New in version NX3.0.1.
License requirements: None.