NX Open C++ Reference Guide
|
Builder for creating/editing stocks. More...
Public Member Functions | |
NXOpen::Direction * | CrossSectionDirection () |
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::Expression * | OrientationAngle () |
Returns the angle. More... | |
void | PreCommit () |
Performs the operations needed prior to a commit. More... | |
NXOpen::Routing::RouteObjectCollector * | SegmentCollector () |
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::PathStockPreferenceBuilder * | StockSettings () |
Returns the path stock settings required to assign stock Created in NX11.0.0. More... | |
Public Member Functions inherited from NXOpen::Builder | |
NXOpen::NXObject * | Commit () |
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::NXObject * | GetObject () |
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... | |
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.
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")
logicalObjects | logicalobjects |
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")
orientationVector | orientationvector |
void NXOpen::MechanicalRouting::StockBuilder::SetMirrorCrossSection | ( | bool | flag | ) |
Sets the mirror cross section value.
Created in NX11.0.0.
License requirements : routing_base ("Routing Basic")
flag | flag |
void NXOpen::MechanicalRouting::StockBuilder::SetStockAnchor | ( | const NXString & | anchorName | ) |
Sets
Created in NX11.0.0.
License requirements : routing_base ("Routing Basic")
anchorName | anchorname |
void NXOpen::MechanicalRouting::StockBuilder::SetStockAnchor | ( | const char * | anchorName | ) |
Sets
Created in NX11.0.0.
License requirements : routing_base ("Routing Basic")
anchorName | anchorname |
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")