SegmentBuilder Class

class NXOpen.Motion.SegmentBuilder

Bases: NXOpen.TaggedObject, NXOpen.GeometricUtilities.IComponentBuilder

Represents a NXOpen.Motion.SegmentBuilder, only creation is supported

To 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 Angle

Returns:
Return type:NXOpen.Expression

New 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 BankAngleCurve

Returns:
Return type:NXOpen.Motion.MotionFunction

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

-------------------------------------

Setter Method

Signature BankAngleCurve

Parameters: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 BankAngleCurveProfile

Returns:
Return type:NXOpen.Motion.SelectFieldData

New in version NX12.0.0.

License requirements: mechanisms (“MECHANISMS”)

ConstantRadiusBankAngle

SegmentBuilder.ConstantRadiusBankAngle

Returns the bank angle of a constant radius segment

-------------------------------------

Getter Method

Signature ConstantRadiusBankAngle

Returns:
Return type:NXOpen.Expression

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

ConstantRadiusElevationChange

SegmentBuilder.ConstantRadiusElevationChange

Returns the elevation change of a constant radius segment

-------------------------------------

Getter Method

Signature ConstantRadiusElevationChange

Returns:
Return type:NXOpen.Expression

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

LaneChangeElevationChange

SegmentBuilder.LaneChangeElevationChange

Returns the elevation change of a lane change segment

-------------------------------------

Getter Method

Signature LaneChangeElevationChange

Returns:
Return type:NXOpen.Expression

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

LaneChangeForwardLength

SegmentBuilder.LaneChangeForwardLength

Returns the forward length of a lane change segment

-------------------------------------

Getter Method

Signature LaneChangeForwardLength

Returns:
Return type:NXOpen.Expression

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

LateralAmplitude

SegmentBuilder.LateralAmplitude

Returns the lateral amplitude of a slalom segment

-------------------------------------

Getter Method

Signature LateralAmplitude

Returns:
Return type:NXOpen.Expression

New 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 LateralShiftLength

Returns:
Return type:NXOpen.Expression

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

Length

SegmentBuilder.Length

Returns the length of a straight segment

-------------------------------------

Getter Method

Signature Length

Returns:
Return type:NXOpen.Expression

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

Name

SegmentBuilder.Name

Returns or sets the name

-------------------------------------

Getter Method

Signature Name

Returns:
Return type:str

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

-------------------------------------

Setter Method

Signature Name

Parameters: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 NumberOfPylons

Returns:
Return type:NXOpen.Expression

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

Radius

SegmentBuilder.Radius

Returns the radius of a constant radius segment

-------------------------------------

Getter Method

Signature Radius

Returns:
Return type:NXOpen.Expression

New 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 SegmentType

Returns:
Return type:NXOpen.Motion.SegmentBuilderTypeChoices

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

-------------------------------------

Setter Method

Signature SegmentType

Parameters: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 SlalomElevationChange

Returns:
Return type:NXOpen.Expression

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

SlalomForwardLength

SegmentBuilder.SlalomForwardLength

Returns the forward length of a slalom segment

-------------------------------------

Getter Method

Signature SlalomForwardLength

Returns:
Return type:NXOpen.Expression

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

SplineType

SegmentBuilder.SplineType

Returns or sets the spline type

-------------------------------------

Getter Method

Signature SplineType

Returns:
Return type:NXOpen.Motion.SegmentBuilderSplineDatatypeChoices

New in version NX12.0.0.

License requirements: mechanisms (“MECHANISMS”)

-------------------------------------

Setter Method

Signature SplineType

Parameters: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 StraightElevationChange

Returns:
Return type:NXOpen.Expression

New 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 TransitionType

Returns:
Return type:NXOpen.Motion.SegmentBuilderStraightTransitionTypeChoices

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

-------------------------------------

Setter Method

Signature TransitionType

Parameters: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 YCurve

Returns:
Return type:NXOpen.Motion.MotionFunction

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

-------------------------------------

Setter Method

Signature YCurve

Parameters: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 YCurveProfile

Returns:
Return type:NXOpen.Motion.SelectFieldData

New 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 ZCurve

Returns:
Return type:NXOpen.Motion.MotionFunction

New in version NX11.0.0.

License requirements: mechanisms (“MECHANISMS”)

-------------------------------------

Setter Method

Signature ZCurve

Parameters: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 ZCurveProfile

Returns:
Return type:NXOpen.Motion.SelectFieldData

New 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.