NX Open C++ Reference Guide
|
Constraint group which represents a group of component constraints in NX. More...
Public Types | |
enum | ConstraintsCollectionType { ConstraintsCollectionTypeBetweenSelectedComponents, ConstraintsCollectionTypeConnectedToSelectedComponents } |
the enum to define constraint collection type More... | |
Public Member Functions | |
NXOpen::Positioning::ComponentConstraintGroup::ConstraintsCollectionType | GetConstraintCollectionType () |
Gets the type of constraint collection that is performed using the defining components. | |
std::vector < NXOpen::Assemblies::Component * > | GetDefiningComponents () |
Returns the defining components within the group. | |
std::vector < NXOpen::Positioning::ComponentConstraint * > | GetDefiningConstraints () |
Returns the defining constraints within the group. | |
std::vector < NXOpen::Positioning::ComponentConstraint * > | GetMemberConstraints () |
Returns the member constraints present in the group. | |
bool | GetRememberComponentState () |
Gets the state which indicates if defining components are remembered when updating the member constraints. | |
void | SetConstraintCollectionType (NXOpen::Positioning::ComponentConstraintGroup::ConstraintsCollectionType constraintCollectionType) |
Sets the type of constraint collection that is performed using the defining components. | |
void | SetDefiningComponents (const std::vector< NXOpen::Assemblies::Component * > &constraints) |
Sets the defining constraints within the group. | |
void | SetDefiningConstraints (const std::vector< NXOpen::Positioning::ComponentConstraint * > &constraints) |
Sets the defining constraints within the group. | |
void | SetRememberComponentState (bool rememberComponentState) |
Sets the state which indicates if defining components are remembered when updating the member constraints. | |
bool | UpdateMemberConstraints () |
Updates the member constraints so that they match the definition implied by the defining constraints, defining components and associated constraint collection type. |
Constraint group which represents a group of component constraints in NX.
Created in NX8.0.1.
NXOpen::Positioning::ComponentConstraintGroup::ConstraintsCollectionType NXOpen::Positioning::ComponentConstraintGroup::GetConstraintCollectionType | ( | ) |
Gets the type of constraint collection that is performed using the defining components.
std::vector<NXOpen::Assemblies::Component *> NXOpen::Positioning::ComponentConstraintGroup::GetDefiningComponents | ( | ) |
Returns the defining components within the group.
std::vector<NXOpen::Positioning::ComponentConstraint *> NXOpen::Positioning::ComponentConstraintGroup::GetDefiningConstraints | ( | ) |
Returns the defining constraints within the group.
std::vector<NXOpen::Positioning::ComponentConstraint *> NXOpen::Positioning::ComponentConstraintGroup::GetMemberConstraints | ( | ) |
Returns the member constraints present in the group.
The member constraints are generated from the defining constraints and components. This attribute cannot be set directly.
Gets the state which indicates if defining components are remembered when updating the member constraints.
void NXOpen::Positioning::ComponentConstraintGroup::SetConstraintCollectionType | ( | NXOpen::Positioning::ComponentConstraintGroup::ConstraintsCollectionType | constraintCollectionType | ) |
Sets the type of constraint collection that is performed using the defining components.
Created in NX8.0.1.
License requirements : assemblies ("ASSEMBLIES MODULE")
constraintCollectionType | constraintcollectiontype |
void NXOpen::Positioning::ComponentConstraintGroup::SetDefiningComponents | ( | const std::vector< NXOpen::Assemblies::Component * > & | constraints | ) |
Sets the defining constraints within the group.
Created in NX8.0.1.
License requirements : assemblies ("ASSEMBLIES MODULE")
constraints | Defining components |
void NXOpen::Positioning::ComponentConstraintGroup::SetDefiningConstraints | ( | const std::vector< NXOpen::Positioning::ComponentConstraint * > & | constraints | ) |
Sets the defining constraints within the group.
Created in NX8.0.1.
License requirements : assemblies ("ASSEMBLIES MODULE")
constraints | Defining constraints |
void NXOpen::Positioning::ComponentConstraintGroup::SetRememberComponentState | ( | bool | rememberComponentState | ) |
Sets the state which indicates if defining components are remembered when updating the member constraints.
Created in NX8.0.1.
License requirements : assemblies ("ASSEMBLIES MODULE")
rememberComponentState | remembercomponentstate |
Updates the member constraints so that they match the definition implied by the defining constraints, defining components and associated constraint collection type.