NX Open C++ Reference Guide
|
Represents a collection of NXOpen::Layout2d::Component s. 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... | |
NXOpen::Layout2d::AssemblyFromLayout2dBuilder * | CreateAssemblyFromLayout2dBuilder () |
Creates a NXOpen::Layout2d::AssemblyFromLayout2dBuilder that can create assembly from the selected layout. More... | |
NXOpen::Layout2d::CreateComponentFrom3DBuilder * | CreateComponentFrom3dBuilder (NXOpen::View *myView) |
Creates a NXOpen::Layout2d::CreateComponentFrom3DBuilder that can create assembly from the selected layout. More... | |
NXOpen::Layout2d::DefineComponentAnchorPointBuilder * | CreateDefineComponentAnchorPointBuilder () |
Creates a NXOpen::Layout2d::DefineComponentAnchorPointBuilder that can define the Anchor Point location of a 2D Component. More... | |
NXOpen::Layout2d::DefineComponentBuilder * | CreateDefineComponentBuilder (NXOpen::Layout2d::Component *component) |
Creates a NXOpen::Layout2d::DefineComponentBuilder that can create a fully defined 2D Component with specified content, anchor point, name and reuse library destination folder. More... | |
NXOpen::Layout2d::ExportComponentHierarchyBuilder * | CreateExportComponentHierarchyBuilder () |
Creates a NXOpen::Layout2d::ExportComponentHierarchyBuilder. More... | |
NXOpen::Layout2d::InsertComponentBuilder * | CreateInsertComponentBuilder () |
Creates a NXOpen::Layout2d::InsertComponentBuilder that inserts a 2D Component instance in the active sketch. More... | |
NXOpen::Layout2d::MakeComponentUniqueBuilder * | CreateMakeComponentUniqueBuilder () |
Creates a NXOpen::Layout2d::MakeComponentUniqueBuilder that can create definition for the selected 2D Component instance. More... | |
NXOpen::Layout2d::NewComponentBuilder * | CreateNewComponentBuilder () |
Creates a NXOpen::Layout2d::NewComponentBuilder that creates an empty 2D Component instance and stores its definition in local 2D Component folder. More... | |
NXOpen::Layout2d::PublishComponentBuilder * | CreatePublishComponentBuilder () |
Creates a NXOpen::Layout2d::PublishComponentBuilder that can export local definitions into external storage locations. More... | |
NXOpen::Layout2d::ReparentComponentBuilder * | CreateReparentComponentBuilder () |
Creates a NXOpen::Layout2d::ReplaceComponentBuilder that can reparent the selected 2D Component instance with another 2D Component or sketch. More... | |
NXOpen::Layout2d::ReplaceComponentBuilder * | CreateReplaceComponentBuilder () |
Creates a NXOpen::Layout2d::ReplaceComponentBuilder that can replace the selected 2D Component instance with another 2D Component definition. More... | |
NXOpen::Layout2d::SmashComponentBuilder * | CreateSmashComponentBuilder () |
Creates a NXOpen::Layout2d::SmashComponentBuilder that can smash the selected 2D Component instance. More... | |
void | DeleteComponents (const std::vector< NXOpen::Layout2d::Component * > &components) |
Deletes a list of 2D Components Created in NX10.0.0. More... | |
iterator | end () |
Returns an iterator addressing one past the last element. More... | |
NXOpen::Layout2d::Component * | FindObject (const NXString &journalIdentifier) |
Finds the NXOpen::Layout2d::Component with the given identifier as recorded in a journal. More... | |
NXOpen::Layout2d::Component * | FindObject (const char *journalIdentifier) |
Finds the NXOpen::Layout2d::Component with the given identifier as recorded in a journal. More... | |
bool | IsComponentMember (NXOpen::DisplayableObject *disObject) |
Verify if the object belong to this component. More... | |
NXOpen::Drawings::OrderManager * | OrderManagers () |
Returns the OrderManager for part Created in NX11.0.0. More... | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
void | UpdateComponentHierarchy (const std::vector< NXOpen::Layout2d::Component * > &components) |
Updates 2D Components and propagates the changes to the hierarchy in given layout Created in NX11.0.0. More... | |
void | UpdateComponents (const std::vector< NXOpen::Layout2d::Component * > &components) |
Updates 2D Components without propagating the changes to the hierarchy in given layout Created in NX11.0.0. More... | |
Represents a collection of NXOpen::Layout2d::Component s.
To obtain an instance of this class, refer to NXOpen::Part
Created in NX10.0.0.
iterator NXOpen::Layout2d::ComponentCollection::begin | ( | ) |
Returns an iterator addressing the first element.
NXOpen::Layout2d::AssemblyFromLayout2dBuilder* NXOpen::Layout2d::ComponentCollection::CreateAssemblyFromLayout2dBuilder | ( | ) |
Creates a NXOpen::Layout2d::AssemblyFromLayout2dBuilder that can create assembly from the selected layout.
NXOpen::Layout2d::CreateComponentFrom3DBuilder* NXOpen::Layout2d::ComponentCollection::CreateComponentFrom3dBuilder | ( | NXOpen::View * | myView | ) |
Creates a NXOpen::Layout2d::CreateComponentFrom3DBuilder that can create assembly from the selected layout.
myView | myview |
NXOpen::Layout2d::DefineComponentAnchorPointBuilder* NXOpen::Layout2d::ComponentCollection::CreateDefineComponentAnchorPointBuilder | ( | ) |
Creates a NXOpen::Layout2d::DefineComponentAnchorPointBuilder that can define the Anchor Point location of a 2D Component.
NXOpen::Layout2d::DefineComponentBuilder* NXOpen::Layout2d::ComponentCollection::CreateDefineComponentBuilder | ( | NXOpen::Layout2d::Component * | component | ) |
Creates a NXOpen::Layout2d::DefineComponentBuilder that can create a fully defined 2D Component with specified content, anchor point, name and reuse library destination folder.
component | the component to be edited, NULL in case of new component view. |
NXOpen::Layout2d::ExportComponentHierarchyBuilder* NXOpen::Layout2d::ComponentCollection::CreateExportComponentHierarchyBuilder | ( | ) |
Creates a NXOpen::Layout2d::ExportComponentHierarchyBuilder.
NXOpen::Layout2d::InsertComponentBuilder* NXOpen::Layout2d::ComponentCollection::CreateInsertComponentBuilder | ( | ) |
Creates a NXOpen::Layout2d::InsertComponentBuilder that inserts a 2D Component instance in the active sketch.
NXOpen::Layout2d::MakeComponentUniqueBuilder* NXOpen::Layout2d::ComponentCollection::CreateMakeComponentUniqueBuilder | ( | ) |
Creates a NXOpen::Layout2d::MakeComponentUniqueBuilder that can create definition for the selected 2D Component instance.
NXOpen::Layout2d::NewComponentBuilder* NXOpen::Layout2d::ComponentCollection::CreateNewComponentBuilder | ( | ) |
Creates a NXOpen::Layout2d::NewComponentBuilder that creates an empty 2D Component instance and stores its definition in local 2D Component folder.
NXOpen::Layout2d::PublishComponentBuilder* NXOpen::Layout2d::ComponentCollection::CreatePublishComponentBuilder | ( | ) |
Creates a NXOpen::Layout2d::PublishComponentBuilder that can export local definitions into external storage locations.
NXOpen::Layout2d::ReparentComponentBuilder* NXOpen::Layout2d::ComponentCollection::CreateReparentComponentBuilder | ( | ) |
Creates a NXOpen::Layout2d::ReplaceComponentBuilder that can reparent the selected 2D Component instance with another 2D Component or sketch.
NXOpen::Layout2d::ReplaceComponentBuilder* NXOpen::Layout2d::ComponentCollection::CreateReplaceComponentBuilder | ( | ) |
Creates a NXOpen::Layout2d::ReplaceComponentBuilder that can replace the selected 2D Component instance with another 2D Component definition.
NXOpen::Layout2d::SmashComponentBuilder* NXOpen::Layout2d::ComponentCollection::CreateSmashComponentBuilder | ( | ) |
Creates a NXOpen::Layout2d::SmashComponentBuilder that can smash the selected 2D Component instance.
void NXOpen::Layout2d::ComponentCollection::DeleteComponents | ( | const std::vector< NXOpen::Layout2d::Component * > & | components | ) |
Deletes a list of 2D Components
Created in NX10.0.0.
License requirements : nx_layout ("NX Layout")
components | components |
iterator NXOpen::Layout2d::ComponentCollection::end | ( | ) |
Returns an iterator addressing one past the last element.
NXOpen::Layout2d::Component* NXOpen::Layout2d::ComponentCollection::FindObject | ( | const NXString & | journalIdentifier | ) |
Finds the NXOpen::Layout2d::Component 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 of the 2D Component to be found |
NXOpen::Layout2d::Component* NXOpen::Layout2d::ComponentCollection::FindObject | ( | const char * | journalIdentifier | ) |
Finds the NXOpen::Layout2d::Component 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 of the 2D Component to be found |
bool NXOpen::Layout2d::ComponentCollection::IsComponentMember | ( | NXOpen::DisplayableObject * | disObject | ) |
Verify if the object belong to this component.
disObject | disobject |
NXOpen::Drawings::OrderManager* NXOpen::Layout2d::ComponentCollection::OrderManagers | ( | ) |
Returns the OrderManager for part
Created in NX11.0.0.
tag_t NXOpen::Layout2d::ComponentCollection::Tag | ( | ) | const |
Returns the tag of this object.
void NXOpen::Layout2d::ComponentCollection::UpdateComponentHierarchy | ( | const std::vector< NXOpen::Layout2d::Component * > & | components | ) |
Updates 2D Components and propagates the changes to the hierarchy in given layout
Created in NX11.0.0.
License requirements : nx_layout ("NX Layout")
components | components |
void NXOpen::Layout2d::ComponentCollection::UpdateComponents | ( | const std::vector< NXOpen::Layout2d::Component * > & | components | ) |
Updates 2D Components without propagating the changes to the hierarchy in given layout
Created in NX11.0.0.
License requirements : nx_layout ("NX Layout")
components | components |