NX Open C++ Reference Guide
|
Represents a Component Group that is defined within an Assembly. More...
Public Member Functions | |
void | AddComponent (NXOpen::Assemblies::Component *component, bool andChildren) |
Adds a component to a component group. | |
std::vector < NXOpen::Assemblies::Component * > | GetComponents () |
Returns the Components within this Component Group. | |
int | NumberOfComponents () |
Returns the number of Components within this Component Group Created in NX5.0.0. | |
NXOpen::PartLoadStatus * | Open () |
Loads a selected component group by name during Assembly part file open. | |
void | RemoveComponent (NXOpen::Assemblies::Component *component) |
Removes a component from a component group Created in NX7.5.0. |
void NXOpen::Assemblies::ComponentGroup::AddComponent | ( | NXOpen::Assemblies::Component * | component, |
bool | andChildren | ||
) |
Adds a component to a component group.
If add chilren is true, the children of the added component are also added.
Created in NX7.5.0.
License requirements : adv_assemblies ("ADVANCED ASSEMBLIES")
component | the component to add |
andChildren | if true add chilren of component also |
std::vector<NXOpen::Assemblies::Component *> NXOpen::Assemblies::ComponentGroup::GetComponents | ( | ) |
Loads a selected component group by name during Assembly part file open.
This operation is used in conjunction with the LoadOptions enumerator LoadOptions::LoadComponents and using the specify filter option. This method is not intented to be used after an Assembly has been loaded but during the loading operations.
void NXOpen::Assemblies::ComponentGroup::RemoveComponent | ( | NXOpen::Assemblies::Component * | component | ) |
Removes a component from a component group
Created in NX7.5.0.
License requirements : adv_assemblies ("ADVANCED ASSEMBLIES")
component | the component to remove |