NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::MechanicalRouting::StockBuilder Class Reference

Builder for creating/editing stocks. More...

Inheritance diagram for NXOpen::MechanicalRouting::StockBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Member Functions

NXOpen::DirectionCrossSectionDirection ()
 Returns the orientation vector. More...
 
void GetLogicalObjects (std::vector< NXOpen::PDM::LogicalObject * > &logicalObjects)
 Returns the PDM::LogicalObject s that represent content that will be created by this builder. More...
 
bool MirrorCrossSection ()
 Returns the mirror cross section value. More...
 
NXOpen::ExpressionOrientationAngle ()
 Returns the angle. More...
 
void PreCommit ()
 Performs the operations needed prior to a commit. More...
 
NXOpen::Routing::RouteObjectCollectorSegmentCollector ()
 Returns the routing object collector that collects segments to assign stock to. More...
 
void SetCrossSectionDirection (NXOpen::Direction *orientationVector)
 Sets the orientation vector. More...
 
void SetMirrorCrossSection (bool flag)
 Sets the mirror cross section value. More...
 
void SetStockAnchor (const NXString &anchorName)
 Sets
Created in NX11.0.0. More...
 
void SetStockAnchor (const char *anchorName)
 Sets
Created in NX11.0.0. More...
 
NXString StockAnchor ()
 Returns
Created in NX11.0.0. More...
 
NXOpen::MechanicalRouting::PathStockPreferenceBuilderStockSettings ()
 Returns the path stock settings required to assign stock
Created in NX11.0.0. More...
 
- Public Member Functions inherited from NXOpen::Builder
NXOpen::NXObjectCommit ()
 Commits any edits that have been applied to the builder. More...
 
void Destroy ()
 Deletes the builder, and cleans up any objects created by the builder. More...
 
std::vector< NXOpen::NXObject * > GetCommittedObjects ()
 For builders that create more than one object, this method returns the objects that are created by commit. More...
 
NXOpen::NXObjectGetObject ()
 Returns the object currently being edited by this builder. More...
 
void ShowResults ()
 Updates the model to reflect the result of an edit to the model for all builders that support showing results. More...
 
virtual bool Validate ()
 Validate whether the inputs to the component are sufficient for commit to be called. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

Builder for creating/editing stocks.

Create Stock: Takes a set of segments and assign the selected the stock to the segments. The stock style and orientation settings are optional. Edit Stock: Takes in the selected stock to edit as input and redefines the stock with the new settings.
To create a new instance of this class, use NXOpen::MechanicalRouting::BuilderFactory::CreateStockBuilder
Default values.

Property Value

OrientationAngle.Value

0


Created in NX11.0.0.

Member Function Documentation

NXOpen::Direction* NXOpen::MechanicalRouting::StockBuilder::CrossSectionDirection ( )

Returns the orientation vector.

cross section direction of the stock.
Created in NX11.0.0.

License requirements : routing_base ("Routing Basic")

void NXOpen::MechanicalRouting::StockBuilder::GetLogicalObjects ( std::vector< NXOpen::PDM::LogicalObject * > &  logicalObjects)

Returns the PDM::LogicalObject s that represent content that will be created by this builder.


Created in NX11.0.1.

License requirements : routing_base ("Routing Basic")

Parameters
logicalObjectslogicalobjects
bool NXOpen::MechanicalRouting::StockBuilder::MirrorCrossSection ( )

Returns the mirror cross section value.


Created in NX11.0.0.

License requirements : routing_base ("Routing Basic")

NXOpen::Expression* NXOpen::MechanicalRouting::StockBuilder::OrientationAngle ( )

Returns the angle.

Determines the rotation angle of the stock.
Created in NX11.0.0.

License requirements : routing_base ("Routing Basic")

void NXOpen::MechanicalRouting::StockBuilder::PreCommit ( )

Performs the operations needed prior to a commit.

This method has to be called before invoking commit.
Created in NX11.0.1.

License requirements : routing_base ("Routing Basic")

NXOpen::Routing::RouteObjectCollector* NXOpen::MechanicalRouting::StockBuilder::SegmentCollector ( )

Returns the routing object collector that collects segments to assign stock to.


Created in NX11.0.0.

License requirements : routing_base ("Routing Basic")

void NXOpen::MechanicalRouting::StockBuilder::SetCrossSectionDirection ( NXOpen::Direction orientationVector)

Sets the orientation vector.

cross section direction of the stock.
Created in NX11.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
orientationVectororientationvector
void NXOpen::MechanicalRouting::StockBuilder::SetMirrorCrossSection ( bool  flag)

Sets the mirror cross section value.


Created in NX11.0.0.

License requirements : routing_base ("Routing Basic")

Parameters
flagflag
void NXOpen::MechanicalRouting::StockBuilder::SetStockAnchor ( const NXString anchorName)

Sets
Created in NX11.0.0.



License requirements : routing_base ("Routing Basic")

Parameters
anchorNameanchorname
void NXOpen::MechanicalRouting::StockBuilder::SetStockAnchor ( const char *  anchorName)

Sets
Created in NX11.0.0.



License requirements : routing_base ("Routing Basic")

Parameters
anchorNameanchorname
NXString NXOpen::MechanicalRouting::StockBuilder::StockAnchor ( )

Returns
Created in NX11.0.0.



License requirements : routing_base ("Routing Basic")

NXOpen::MechanicalRouting::PathStockPreferenceBuilder* NXOpen::MechanicalRouting::StockBuilder::StockSettings ( )

Returns the path stock settings required to assign stock
Created in NX11.0.0.



License requirements : routing_base ("Routing Basic")


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.