StockTransitionBuilder Class

class NXOpen.Routing.StockTransitionBuilder

Bases: NXOpen.Builder

Builder for creating/editing stockTransition.

Create StockTransition: Takes a set of segments and assign characteristics of the selected stock to the segments.

Edit Stock: Takes in the selected stockTransition to edit as input and redefines the stockTransition with the new settings.

To create a new instance of this class, use NXOpen.Routing.RouteManager.CreateStockTransitionBuilder()

New in version NX7.5.0.

Properties

Property Description
EndProfileOriginCurve Returns the origin curve of end profile
EndProfileOriginCurveDirection Returns or sets the direction of origin curve of end profile
SegmentCollector Returns the segment collector
StartProfileOriginCurve Returns the origin curve of start profile
StartProfileOriginCurveDirection Returns or sets the direction of origin curve of start profile
StockSettings Returns or sets the stock settings for stock assignment.
Tag Returns the Tag for this object.

Methods

Method Description
Commit Commits any edits that have been applied to the builder.
Destroy Deletes the builder, and cleans up any objects created by the builder.
GetCommittedObjects For builders that create more than one object, this method returns the objects that are created by commit.
GetObject Returns the object currently being edited by this builder.
SetStockTransitionProperties  
ShowResults Updates the model to reflect the result of an edit to the model for all builders that support showing results.
Validate Validate whether the inputs to the component are sufficient for commit to be called.

Property Detail

EndProfileOriginCurve

StockTransitionBuilder.EndProfileOriginCurve

Returns the origin curve of end profile

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

Getter Method

Signature EndProfileOriginCurve

Returns:
Return type:NXOpen.SelectCurve

New in version NX7.5.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

EndProfileOriginCurveDirection

StockTransitionBuilder.EndProfileOriginCurveDirection

Returns or sets the direction of origin curve of end profile

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

Getter Method

Signature EndProfileOriginCurveDirection

Returns:
Return type:bool

New in version NX7.5.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

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

Setter Method

Signature EndProfileOriginCurveDirection

Parameters:endProfileOriginCurveDirection (bool) –

New in version NX7.5.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

SegmentCollector

StockTransitionBuilder.SegmentCollector

Returns the segment collector

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

Getter Method

Signature SegmentCollector

Returns:
Return type:NXOpen.Routing.RouteObjectCollector

New in version NX7.5.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

StartProfileOriginCurve

StockTransitionBuilder.StartProfileOriginCurve

Returns the origin curve of start profile

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

Getter Method

Signature StartProfileOriginCurve

Returns:
Return type:NXOpen.SelectCurve

New in version NX7.5.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

StartProfileOriginCurveDirection

StockTransitionBuilder.StartProfileOriginCurveDirection

Returns or sets the direction of origin curve of start profile

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

Getter Method

Signature StartProfileOriginCurveDirection

Returns:
Return type:bool

New in version NX7.5.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

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

Setter Method

Signature StartProfileOriginCurveDirection

Parameters:startProfileOriginCurveDirection (bool) –

New in version NX7.5.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

StockSettings

StockTransitionBuilder.StockSettings

Returns or sets the stock settings for stock assignment.

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

Getter Method

Signature StockSettings

Returns:
Return type:NXOpen.Routing.PathStockBuilder

New in version NX7.5.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

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

Setter Method

Signature StockSettings

Parameters:pathStockBuilder (NXOpen.Routing.PathStockBuilder) –

New in version NX7.5.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

Method Detail

SetStockTransitionProperties

StockTransitionBuilder.SetStockTransitionProperties

Signature SetStockTransitionProperties()

New in version NX7.5.0.

License requirements: routing_advanced (“Routing Advanced”), routing_base (“Routing Basic”)

Validate

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