NX Open C++ Reference Guide
|
Represents a Routing::AlignStockBuilder Builder for aligning non-circular stocks. More...
Public Types | |
enum | StockAlignmentMethod { StockAlignmentMethodRoutingObject, StockAlignmentMethodVectorToVector } |
Methods of aligning stocks. More... | |
Public Member Functions | |
NXOpen::Routing::AlignStockBuilder::StockAlignmentMethod | AlignmentMethod () |
Returns the alignment method. More... | |
NXOpen::Routing::RouteObjectCollector * | ReferenceObject () |
Returns the reference object. More... | |
NXOpen::Direction * | ReferenceVector () |
Returns the reference vector. More... | |
void | SetAlignmentMethod (NXOpen::Routing::AlignStockBuilder::StockAlignmentMethod alignmentMethod) |
Sets the alignment method. More... | |
void | SetReferenceVector (NXOpen::Direction *toVector) |
Sets the reference vector. More... | |
void | SetTargetVector (NXOpen::Direction *fromVector) |
Sets the target vector. More... | |
NXOpen::Routing::RouteObjectCollector * | StocksToAlign () |
Returns a collection of stocks to align. More... | |
NXOpen::Direction * | TargetVector () |
Returns the target vector. 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... | |
Represents a Routing::AlignStockBuilder Builder for aligning non-circular stocks.
Two methods are provided to user to make stocks alignment: Routing Object: specify the referencing routing object and deriving the reference rotate vector from it, Vector to Vector: specify the to vector as reference and the from vector as the target, then align them.
To create a new instance of this class, use NXOpen::Routing::RouteManager::CreateAlignStockBuilder
Default values.
Property | Value |
---|---|
AlignmentMethod |
RoutingObject |
Created in NX9.0.3.
NXOpen::Routing::AlignStockBuilder::StockAlignmentMethod NXOpen::Routing::AlignStockBuilder::AlignmentMethod | ( | ) |
Returns the alignment method.
Created in NX9.0.3.
License requirements : routing_base ("Routing Basic")
NXOpen::Routing::RouteObjectCollector* NXOpen::Routing::AlignStockBuilder::ReferenceObject | ( | ) |
Returns the reference object.
The reference object could be a stock or a qualified part.
Created in NX9.0.3.
License requirements : routing_base ("Routing Basic")
NXOpen::Direction* NXOpen::Routing::AlignStockBuilder::ReferenceVector | ( | ) |
Returns the reference vector.
Created in NX9.0.3.
License requirements : routing_base ("Routing Basic")
void NXOpen::Routing::AlignStockBuilder::SetAlignmentMethod | ( | NXOpen::Routing::AlignStockBuilder::StockAlignmentMethod | alignmentMethod | ) |
Sets the alignment method.
Created in NX9.0.3.
License requirements : routing_base ("Routing Basic")
alignmentMethod | alignmentmethod |
void NXOpen::Routing::AlignStockBuilder::SetReferenceVector | ( | NXOpen::Direction * | toVector | ) |
Sets the reference vector.
Created in NX9.0.3.
License requirements : routing_base ("Routing Basic")
toVector | tovector |
void NXOpen::Routing::AlignStockBuilder::SetTargetVector | ( | NXOpen::Direction * | fromVector | ) |
Sets the target vector.
Created in NX9.0.3.
License requirements : routing_base ("Routing Basic")
fromVector | fromvector |
NXOpen::Routing::RouteObjectCollector* NXOpen::Routing::AlignStockBuilder::StocksToAlign | ( | ) |
Returns a collection of stocks to align.
Created in NX9.0.3.
License requirements : routing_base ("Routing Basic")
NXOpen::Direction* NXOpen::Routing::AlignStockBuilder::TargetVector | ( | ) |
Returns the target vector.
Created in NX9.0.3.
License requirements : routing_base ("Routing Basic")