NX Open C++ Reference Guide
|
Represents a collection of dynamic section objects
To obtain an instance of this class, refer to BasePart
Created in NX6.0.0.
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. | |
std::vector < NXOpen::Display::DynamicSection * > | CopySections (const std::vector< NXOpen::Display::DynamicSection * > §ions, bool deleteOriginals) |
Copies the specified dynamic sections in the part. | |
NXOpen::Display::DynamicSectionBuilder * | CreateSectionBuilder (NXOpen::Display::DynamicSection *section, NXOpen::ModelingView *view) |
Creates a Display::DynamicSectionBuilder object if the section is NULL. | |
NXOpen::Display::DynamicSectionBuilder * | CreateSectionBuilder (NXOpen::ModelingView *view) |
Creates a Display::DynamicSectionBuilder object that is used to edit a section object in the specified view. | |
void | DeleteSections (bool addUndoMark, const std::vector< NXOpen::Display::DynamicSection * > §ions) |
Deletes the specified dynamic sections in the part. | |
iterator | end () |
Returns an iterator addressing one past the last element. | |
NXOpen::Display::DynamicSection * | FindObject (const NXString &journalIdentifier) |
Finds the DynamicSection with the given identifier as recorded in a journal. | |
NXOpen::Display::DynamicSection * | FindObject (const char *journalIdentifier) |
Finds the DynamicSection with the given identifier as recorded in a journal. | |
void | MoveToDefaultLayer (const std::vector< NXOpen::Display::DynamicSection * > &dynamicSections) |
Moves the specified dynamic sections in the part to default layer. | |
tag_t | Tag () const |
Returns the tag of this object. | |
Represents a collection of dynamic section objects
To obtain an instance of this class, refer to BasePart
Created in NX6.0.0.
iterator NXOpen::Display::DynamicSectionCollection::begin | ( | ) |
Returns an iterator addressing the first element.
std::vector<NXOpen::Display::DynamicSection *> NXOpen::Display::DynamicSectionCollection::CopySections | ( | const std::vector< NXOpen::Display::DynamicSection * > & | sections, |
bool | deleteOriginals | ||
) |
Copies the specified dynamic sections in the part.
A copy of each specified dynamic section will be created and then added to the part. It is ensured that each dynamic section object in the part has a unique name. Hence, it is possible that the name of a pasted section object is different from that of the input section object if its name clashes with an existing section object in the part.
The section objects being copied must have been loaded in the memory. Otherwise this method will throw an exception.
sections | The objects to be pasted in the part |
deleteOriginals | Flag indicating whether the input sections should be deleted |
NXOpen::Display::DynamicSectionBuilder* NXOpen::Display::DynamicSectionCollection::CreateSectionBuilder | ( | NXOpen::Display::DynamicSection * | section, |
NXOpen::ModelingView * | view | ||
) |
Creates a Display::DynamicSectionBuilder object if the section is NULL.
Otherwise, a Section object will be edited.
The specified view can be NULL, in which case the section object is not activated in any view.
section | section |
view | view |
NXOpen::Display::DynamicSectionBuilder* NXOpen::Display::DynamicSectionCollection::CreateSectionBuilder | ( | NXOpen::ModelingView * | view | ) |
Creates a Display::DynamicSectionBuilder object that is used to edit a section object in the specified view.
If no section object is available for the view, then a new one is created.
The specified view can not be NULL, otherwise an exception will be raised.
view | view |
void NXOpen::Display::DynamicSectionCollection::DeleteSections | ( | bool | addUndoMark, |
const std::vector< NXOpen::Display::DynamicSection * > & | sections | ||
) |
Deletes the specified dynamic sections in the part.
All views in which the dynamic sections were active are updated to reflect the change. An update will be performed to remove deleted objects.
Created in NX8.0.0.
License requirements : None
addUndoMark | Determines if a visible undo mark is added |
sections | The dynamic sections to be deleted |
iterator NXOpen::Display::DynamicSectionCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
NXOpen::Display::DynamicSection* NXOpen::Display::DynamicSectionCollection::FindObject | ( | const NXString & | journalIdentifier | ) |
Finds the DynamicSection 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 | Identifier to be found |
NXOpen::Display::DynamicSection* NXOpen::Display::DynamicSectionCollection::FindObject | ( | const char * | journalIdentifier | ) |
Finds the DynamicSection 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 | Identifier to be found |
void NXOpen::Display::DynamicSectionCollection::MoveToDefaultLayer | ( | const std::vector< NXOpen::Display::DynamicSection * > & | dynamicSections | ) |
Moves the specified dynamic sections in the part to default layer.
The default settings are obtained from the view sectioning customer defaults.
Created in NX9.0.0.
License requirements : None
dynamicSections | The dynamic sections to be modified |
tag_t NXOpen::Display::DynamicSectionCollection::Tag | ( | ) | const |
Returns the tag of this object.