NX Open C++ Reference Guide
Public Member Functions | List of all members
NXOpen::Assemblies::SubsetBuilder Class Reference

A SubsetBuilder is used to create or edit an NXOpen::Assemblies::Subset . More...

Inheritance diagram for NXOpen::Assemblies::SubsetBuilder:
NXOpen::Builder NXOpen::IAttributeSourceObjectBuilder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Member Functions

bool AddAllSubordinates ()
 Returns the value which determines whether the subset will include all the subordinates of reuse design elements. More...
 
virtual NXOpen::ErrorListAutoAssignAttributes (const std::vector< NXOpen::NXObject * > &objects)
 Auto assigns the attributes for a given array of objects and returns an array of objects that failed to auto assign. More...
 
virtual NXOpen::ErrorListAutoAssignAttributesWithNamingPattern (const std::vector< NXOpen::NXObject * > &objects, const std::vector< NXOpen::NXObject * > &properties)
 Auto assigns the attributes for a given object and returns an array of objects that failed to auto assign. More...
 
NXOpen::CollaborativeDesignCollaborativeDesign ()
 Returns the NXOpen::CollaborativeDesign of the subset. More...
 
NXOpen::PDM::ConfigurationContextBuilderConfigurationContext ()
 Returns the configuration context builder. More...
 
NXOpen::ContentDefinitionContentDefinition ()
 Returns the NXOpen::ContentDefinition used to define the context of the subset creation. More...
 
virtual NXOpen::NXObjectCreateAttributeTitleToNamingPatternMap (std::vector< NXString > &attributeTitles, std::vector< NXString > &titlePatterns)
 Creates a map object of attribute titles to their corresponding naming pattern. More...
 
NXOpen::Assemblies::FindInCollaborativeDesignFinder ()
 Returns the NXOpen::Assemblies::FindInCollaborativeDesign for use in the context determined by this builder. More...
 
NXOpen::NXObjectFindObject (const NXString &journalIdentifier)
 Finds the NXOpen::NXObject with the given identifier as recorded in a journal. More...
 
NXOpen::NXObjectFindObject (const char *journalIdentifier)
 Finds the NXOpen::NXObject with the given identifier as recorded in a journal. More...
 
void GenerateResults ()
 Generate the search results for the NXOpen::Assemblies::Subset according to the current NXOpen::Assemblies::SubsetRecipe . More...
 
void GetSubsetLogicalObjects (std::vector< NXOpen::PDM::LogicalObject * > &logicalObjects)
 Returns subset logical objects created by builder. More...
 
void GetSubsets (std::vector< NXOpen::Assemblies::Subset * > &subsets)
 Returns subsets held / created by this builder. More...
 
NXOpen::Assemblies::SubsetRecipeRecipe ()
 Returns the NXOpen::Assemblies::SubsetRecipe that contains the NXOpen::Assemblies::SearchTerm s used to generate the contents of the subset
Created in NX8.5.0. More...
 
NXOpen::Assemblies::SearchResultCollectionSearchResults ()
 Returns the NXOpen::Assemblies::SearchResultCollection that contains current search results associated with this subset builder. More...
 
void SetAddAllSubordinates (bool addAllSubordinates)
 Sets the value which determines whether the subset will include all the subordinates of reuse design elements. More...
 
void SetCollaborativeDesign (NXOpen::CollaborativeDesign *collaborativeDesign)
 Sets the NXOpen::CollaborativeDesign of the subset. More...
 
void SetContentDefinition (NXOpen::ContentDefinition *contentDefinition)
 Sets the NXOpen::ContentDefinition used to define the context of the subset creation. More...
 
void SetSubsetDescription (const NXString &description)
 Sets the description of the NXOpen::Assemblies::Subset . More...
 
void SetSubsetDescription (const char *description)
 Sets the description of the NXOpen::Assemblies::Subset . More...
 
void SetSubsetName (const NXString &name)
 Sets the name of the NXOpen::Assemblies::Subset . More...
 
void SetSubsetName (const char *name)
 Sets the name of the NXOpen::Assemblies::Subset . More...
 
void SetViewedPartitionScheme (NXOpen::Assemblies::PartitionScheme *partitionScheme)
 Sets the viewed NXOpen::Assemblies::PartitionScheme of the subset. More...
 
NXOpen::Assemblies::SubsetSubset ()
 Returns the NXOpen::Assemblies::Subset that we are building. More...
 
NXOpen::Assemblies::SubsetConfigurationBuilderSubsetConfiguration ()
 Returns the subset configuration. More...
 
NXString SubsetDescription ()
 Returns the description of the NXOpen::Assemblies::Subset . More...
 
NXString SubsetName ()
 Returns the name of the NXOpen::Assemblies::Subset . More...
 
NXOpen::Assemblies::Subset::ContentType SubsetType ()
 Returns the type of PLM object used to create subset. More...
 
NXOpen::BasicEffectivityBuilderTargetEffectivity ()
 Returns the NXOpen::BasicEffectivityBuilder used to edit the target effectivity of the subset. More...
 
NXOpen::PDM::EffectivityTableBuilderTargetEffectivityTable ()
 Returns the NXOpen::PDM::EffectivityTableBuilder used to edit the target effectivity of the subset. More...
 
NXOpen::Assemblies::PartitionListTargetPartitionList ()
 Returns the default target NXOpen::Assemblies::Partition s for design elements created within the subset. More...
 
void UpdateConfigurationContext (NXOpen::PDM::LogicalObject *logicalObject)
 Updates revision rule, effectivity and variant information on subset logical object of subset builder. More...
 
void UpdateSubsetConfigurationOfDependentSubset ()
 Updates revision rule, effectivity information on the dependent subsets if any. More...
 
void UpdateSubsetTargetPropertiesOfDependentSubset ()
 Updates target effectivity information on the dependent subsets if any. More...
 
NXOpen::Assemblies::PartitionSchemeViewedPartitionScheme ()
 Returns the viewed NXOpen::Assemblies::PartitionScheme of the subset. More...
 
NXOpen::Assemblies::ComponentAssemblyWorkset ()
 Returns the NXOpen::Assemblies::ComponentAssembly within which we are building an NXOpen::Assemblies::Subset . More...
 
- Public Member Functions inherited from NXOpen::Builder
NXOpen::NXObjectCommit ()
 Commits any edits that have been applied to the builder. More...
 
void Destroy ()
 Deletes the builder, and cleans up any objects created by the builder. More...
 
std::vector< NXOpen::NXObject * > GetCommittedObjects ()
 For builders that create more than one object, this method returns the objects that are created by commit. More...
 
NXOpen::NXObjectGetObject ()
 Returns the object currently being edited by this builder. More...
 
void ShowResults ()
 Updates the model to reflect the result of an edit to the model for all builders that support showing results. More...
 
virtual bool Validate ()
 Validate whether the inputs to the component are sufficient for commit to be called. More...
 
- Public Member Functions inherited from NXOpen::TaggedObject
tag_t Tag () const
 Returns the tag of this object. More...
 

Detailed Description

A SubsetBuilder is used to create or edit an NXOpen::Assemblies::Subset .


To create a new instance of this class, use NXOpen::Assemblies::SubsetCollection::CreateSubsetBuilder

Created in NX8.5.0.

Member Function Documentation

bool NXOpen::Assemblies::SubsetBuilder::AddAllSubordinates ( )

Returns the value which determines whether the subset will include all the subordinates of reuse design elements.


Created in NX9.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

virtual NXOpen::ErrorList* NXOpen::Assemblies::SubsetBuilder::AutoAssignAttributes ( const std::vector< NXOpen::NXObject * > &  objects)
virtual

Auto assigns the attributes for a given array of objects and returns an array of objects that failed to auto assign.

Returns

Created in NX8.5.0.

License requirements : None
Parameters
objectsobjects

Implements NXOpen::IAttributeSourceObjectBuilder.

virtual NXOpen::ErrorList* NXOpen::Assemblies::SubsetBuilder::AutoAssignAttributesWithNamingPattern ( const std::vector< NXOpen::NXObject * > &  objects,
const std::vector< NXOpen::NXObject * > &  properties 
)
virtual

Auto assigns the attributes for a given object and returns an array of objects that failed to auto assign.

properties needs to be created using CreateAttributeTitleToNamingPatternMap

Returns

Created in NX12.0.0.

License requirements : None
Parameters
objectsobjects
propertiesproperties

Implements NXOpen::IAttributeSourceObjectBuilder.

NXOpen::CollaborativeDesign* NXOpen::Assemblies::SubsetBuilder::CollaborativeDesign ( )

Returns the NXOpen::CollaborativeDesign of the subset.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXOpen::PDM::ConfigurationContextBuilder* NXOpen::Assemblies::SubsetBuilder::ConfigurationContext ( )

Returns the configuration context builder.


Created in NX9.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXOpen::ContentDefinition* NXOpen::Assemblies::SubsetBuilder::ContentDefinition ( )

Returns the NXOpen::ContentDefinition used to define the context of the subset creation.


Created in NX11.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

virtual NXOpen::NXObject* NXOpen::Assemblies::SubsetBuilder::CreateAttributeTitleToNamingPatternMap ( std::vector< NXString > &  attributeTitles,
std::vector< NXString > &  titlePatterns 
)
virtual

Creates a map object of attribute titles to their corresponding naming pattern.

Returns

Created in NX12.0.0.

License requirements : None
Parameters
attributeTitlesattributetitles
titlePatternstitlepatterns

Implements NXOpen::IAttributeSourceObjectBuilder.

NXOpen::Assemblies::FindInCollaborativeDesign* NXOpen::Assemblies::SubsetBuilder::Finder ( )

Returns the NXOpen::Assemblies::FindInCollaborativeDesign for use in the context determined by this builder.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXOpen::NXObject* NXOpen::Assemblies::SubsetBuilder::FindObject ( const NXString journalIdentifier)

Finds the NXOpen::NXObject 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.

Returns
Object found, or null if no such object exists
Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")
Parameters
journalIdentifierIdentifier of the NXOpen::NXObject to be found
NXOpen::NXObject* NXOpen::Assemblies::SubsetBuilder::FindObject ( const char *  journalIdentifier)

Finds the NXOpen::NXObject 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.

Returns
Object found, or null if no such object exists
Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")
Parameters
journalIdentifierIdentifier of the NXOpen::NXObject to be found
void NXOpen::Assemblies::SubsetBuilder::GenerateResults ( )

Generate the search results for the NXOpen::Assemblies::Subset according to the current NXOpen::Assemblies::SubsetRecipe .


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

void NXOpen::Assemblies::SubsetBuilder::GetSubsetLogicalObjects ( std::vector< NXOpen::PDM::LogicalObject * > &  logicalObjects)

Returns subset logical objects created by builder.


Created in NX11.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

Parameters
logicalObjectslogicalobjects
void NXOpen::Assemblies::SubsetBuilder::GetSubsets ( std::vector< NXOpen::Assemblies::Subset * > &  subsets)

Returns subsets held / created by this builder.


Created in NX11.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

Parameters
subsetssubsets
NXOpen::Assemblies::SubsetRecipe* NXOpen::Assemblies::SubsetBuilder::Recipe ( )

Returns the NXOpen::Assemblies::SubsetRecipe that contains the NXOpen::Assemblies::SearchTerm s used to generate the contents of the subset
Created in NX8.5.0.


NXOpen::Assemblies::SearchResultCollection* NXOpen::Assemblies::SubsetBuilder::SearchResults ( )

Returns the NXOpen::Assemblies::SearchResultCollection that contains current search results associated with this subset builder.

SearchResults will be populated with the existing subset contents when the builder is created to edit a subset. These are replaced with results found by the last call to SubsetBuilder::GenerateResults after that method is first called. In addition, the last results from SubsetBuilder::Finder are included in this collection.
Created in NX8.5.0.

void NXOpen::Assemblies::SubsetBuilder::SetAddAllSubordinates ( bool  addAllSubordinates)

Sets the value which determines whether the subset will include all the subordinates of reuse design elements.


Created in NX9.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

Parameters
addAllSubordinatesaddallsubordinates
void NXOpen::Assemblies::SubsetBuilder::SetCollaborativeDesign ( NXOpen::CollaborativeDesign collaborativeDesign)

Sets the NXOpen::CollaborativeDesign of the subset.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

Parameters
collaborativeDesigncollaborativedesign
void NXOpen::Assemblies::SubsetBuilder::SetContentDefinition ( NXOpen::ContentDefinition contentDefinition)

Sets the NXOpen::ContentDefinition used to define the context of the subset creation.


Created in NX11.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

Parameters
contentDefinitioncontentdefinition
void NXOpen::Assemblies::SubsetBuilder::SetSubsetDescription ( const NXString description)

Sets the description of the NXOpen::Assemblies::Subset .


Deprecated:
Deprecated in NX11.0.0. Use NXOpen::PDM::LogicalObject properties instead.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

Parameters
descriptiondescription
void NXOpen::Assemblies::SubsetBuilder::SetSubsetDescription ( const char *  description)

Sets the description of the NXOpen::Assemblies::Subset .


Deprecated:
Deprecated in NX11.0.0. Use NXOpen::PDM::LogicalObject properties instead.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

Parameters
descriptiondescription
void NXOpen::Assemblies::SubsetBuilder::SetSubsetName ( const NXString name)

Sets the name of the NXOpen::Assemblies::Subset .


Deprecated:
Deprecated in NX11.0.0. Use NXOpen::PDM::LogicalObject properties instead.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

Parameters
namename
void NXOpen::Assemblies::SubsetBuilder::SetSubsetName ( const char *  name)

Sets the name of the NXOpen::Assemblies::Subset .


Deprecated:
Deprecated in NX11.0.0. Use NXOpen::PDM::LogicalObject properties instead.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

Parameters
namename
void NXOpen::Assemblies::SubsetBuilder::SetViewedPartitionScheme ( NXOpen::Assemblies::PartitionScheme partitionScheme)

Sets the viewed NXOpen::Assemblies::PartitionScheme of the subset.


Created in NX9.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

Parameters
partitionSchemepartitionscheme
NXOpen::Assemblies::Subset* NXOpen::Assemblies::SubsetBuilder::Subset ( )

Returns the NXOpen::Assemblies::Subset that we are building.


Deprecated:
Deprecated in NX11.0.0. Please use NXOpen::Assemblies::SubsetBuilder::GetSubsets instead.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXOpen::Assemblies::SubsetConfigurationBuilder* NXOpen::Assemblies::SubsetBuilder::SubsetConfiguration ( )

Returns the subset configuration.


Deprecated:
Deprecated in NX9.0.0. Use NXOpen::Assemblies::SubsetBuilder::ConfigurationContext instead.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXString NXOpen::Assemblies::SubsetBuilder::SubsetDescription ( )

Returns the description of the NXOpen::Assemblies::Subset .


Deprecated:
Deprecated in NX11.0.0. Use NXOpen::PDM::LogicalObject properties instead.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXString NXOpen::Assemblies::SubsetBuilder::SubsetName ( )

Returns the name of the NXOpen::Assemblies::Subset .


Deprecated:
Deprecated in NX11.0.0. Use NXOpen::PDM::LogicalObject properties instead.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXOpen::Assemblies::Subset::ContentType NXOpen::Assemblies::SubsetBuilder::SubsetType ( )

Returns the type of PLM object used to create subset.


Created in NX11.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXOpen::BasicEffectivityBuilder* NXOpen::Assemblies::SubsetBuilder::TargetEffectivity ( )

Returns the NXOpen::BasicEffectivityBuilder used to edit the target effectivity of the subset.


Deprecated:
Deprecated in NX9.0.0. Use SubsetBuilder::TargetEffectivityTable instead.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXOpen::PDM::EffectivityTableBuilder* NXOpen::Assemblies::SubsetBuilder::TargetEffectivityTable ( )

Returns the NXOpen::PDM::EffectivityTableBuilder used to edit the target effectivity of the subset.


Created in NX9.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXOpen::Assemblies::PartitionList* NXOpen::Assemblies::SubsetBuilder::TargetPartitionList ( )

Returns the default target NXOpen::Assemblies::Partition s for design elements created within the subset.


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")

void NXOpen::Assemblies::SubsetBuilder::UpdateConfigurationContext ( NXOpen::PDM::LogicalObject logicalObject)

Updates revision rule, effectivity and variant information on subset logical object of subset builder.

Input subset logical object must be member of this subset builder.


Created in NX11.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

Parameters
logicalObjectlogicalobject
void NXOpen::Assemblies::SubsetBuilder::UpdateSubsetConfigurationOfDependentSubset ( )

Updates revision rule, effectivity information on the dependent subsets if any.

The dependent subset evaluated for the subset represented by the builder.


Created in NX11.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

void NXOpen::Assemblies::SubsetBuilder::UpdateSubsetTargetPropertiesOfDependentSubset ( )

Updates target effectivity information on the dependent subsets if any.

The dependent subset evaluated for the subset represented by the builder.


Created in NX11.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXOpen::Assemblies::PartitionScheme* NXOpen::Assemblies::SubsetBuilder::ViewedPartitionScheme ( )

Returns the viewed NXOpen::Assemblies::PartitionScheme of the subset.


Created in NX9.0.0.

License requirements : nx_4gd_integration ("4th Generation Design")

NXOpen::Assemblies::ComponentAssembly* NXOpen::Assemblies::SubsetBuilder::Workset ( )

Returns the NXOpen::Assemblies::ComponentAssembly within which we are building an NXOpen::Assemblies::Subset .


Created in NX8.5.0.

License requirements : nx_4gd_integration ("4th Generation Design")


The documentation for this class was generated from the following file:
Copyright 2017 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.