NX Open C++ Reference Guide
|
Represents the collection object for all component patterns. More...
Classes | |
class | iterator |
Iterator for accessing the contents of the collection. More... | |
Public Member Functions | |
iterator | begin () |
Returns an iterator addressing the first element. More... | |
iterator | end () |
Returns an iterator addressing one past the last element. More... | |
NXOpen::Assemblies::ComponentPattern * | FindObject (const NXString &journalIdentifier) |
Finds the NXOpen::Assemblies::ComponentPattern with the given identifier as recorded in a journal. More... | |
NXOpen::Assemblies::ComponentPattern * | FindObject (const char *journalIdentifier) |
Finds the NXOpen::Assemblies::ComponentPattern with the given identifier as recorded in a journal. More... | |
void | GetAllComponentPatterns (std::vector< NXOpen::Assemblies::ComponentPattern * > &componentPatterns) |
Returns all the component patterns in an assembly. More... | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
Represents the collection object for all component patterns.
An instance of this class can be obtained from the NXOpen::Assemblies::ComponentAssembly .
To obtain an instance of this class, refer to NXOpen::Assemblies::ComponentAssembly
Created in NX9.0.0.
iterator NXOpen::Assemblies::ComponentPatternCollection::begin | ( | ) |
Returns an iterator addressing the first element.
iterator NXOpen::Assemblies::ComponentPatternCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
NXOpen::Assemblies::ComponentPattern* NXOpen::Assemblies::ComponentPatternCollection::FindObject | ( | const NXString & | journalIdentifier | ) |
Finds the NXOpen::Assemblies::ComponentPattern with the given identifier as recorded in a journal.
An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals. An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier | Name of the component pattern to be found |
NXOpen::Assemblies::ComponentPattern* NXOpen::Assemblies::ComponentPatternCollection::FindObject | ( | const char * | journalIdentifier | ) |
Finds the NXOpen::Assemblies::ComponentPattern with the given identifier as recorded in a journal.
An object may not return the same value as its JournalIdentifier in different versions of the software. However newer versions of the software should find the same object when FindObject is passed older versions of its journal identifier. In general, this method should not be used in handwritten code and exists to support record and playback of journals. An exception will be thrown if no object can be found with the given journal identifier.
journalIdentifier | Name of the component pattern to be found |
void NXOpen::Assemblies::ComponentPatternCollection::GetAllComponentPatterns | ( | std::vector< NXOpen::Assemblies::ComponentPattern * > & | componentPatterns | ) |
Returns all the component patterns in an assembly.
Created in NX9.0.0.
License requirements : None
componentPatterns | componentpatterns |
tag_t NXOpen::Assemblies::ComponentPatternCollection::Tag | ( | ) | const |
Returns the tag of this object.