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

Represents a NXOpen::Assemblies::ReplaceComponentBuilder builder. More...

Inheritance diagram for NXOpen::Assemblies::ReplaceComponentBuilder:
NXOpen::Builder NXOpen::TaggedObject NXOpen::GeometricUtilities::IComponentBuilder

Public Types

enum  ComponentLayerOption { ComponentLayerOptionMaintain, ComponentLayerOptionOriginal, ComponentLayerOptionWork, ComponentLayerOptionAsSpecified }
 Represents possible layer option for replacement part. More...
 
enum  ComponentNameOption { ComponentNameOptionMaintain, ComponentNameOptionOriginal, ComponentNameOptionAsSpecified }
 Represents possible component name option for replace operation. More...
 
enum  ComponentReferenceSet { ComponentReferenceSetMaintain, ComponentReferenceSetEntirePart, ComponentReferenceSetEmpty, ComponentReferenceSetOthers }
 Represents possible reference set for replacement part. More...
 

Public Member Functions

bool AllowTemporaryPartsToReplace ()
 Returns the flag to determine whether unsaved parts are allowed to replace. More...
 
int ComponentLayer ()
 Returns the layer for the new replacement part. More...
 
NXOpen::Assemblies::ReplaceComponentBuilder::ComponentLayerOption ComponentLayerOptionType ()
 Returns the layer options
Created in NX6.0.0. More...
 
NXString ComponentName ()
 Returns the component name
Created in NX6.0.0. More...
 
NXOpen::Assemblies::ReplaceComponentBuilder::ComponentNameOption ComponentNameType ()
 Returns the component name options
Created in NX7.5.0. More...
 
NXOpen::SelectDisplayableObjectListComponentsToReplace ()
 Returns the objects to be replaced. More...
 
NXOpen::Assemblies::ReplaceComponentBuilder::ComponentReferenceSet GetComponentReferenceSetType (NXString *referenceSetName)
 Get the reference set. More...
 
NXOpen::ErrorListGetErrorList ()
 Get the list of components that failed to replace with their corresponding error codes. More...
 
bool MaintainRelationships ()
 Returns the maintain relationships
Created in NX6.0.0. More...
 
NXOpen::PartLoadStatusRegisterReplacePartLoadStatus ()
 Register the part load status with the replace operation. More...
 
bool ReplaceAllOccurrences ()
 Returns the replace all occurrences
Created in NX6.0.0. More...
 
NXString ReplacementPart ()
 Returns the replacement part. More...
 
void SetAllowTemporaryPartsToReplace (bool allowTemporaryPartsToReplace)
 Sets the flag to determine whether unsaved parts are allowed to replace. More...
 
void SetComponentLayer (int componentLayer)
 Sets the layer for the new replacement part. More...
 
void SetComponentLayerOptionType (NXOpen::Assemblies::ReplaceComponentBuilder::ComponentLayerOption componentLayerOption)
 Sets the layer options
Created in NX6.0.0. More...
 
void SetComponentName (const NXString &componentName)
 Sets the component name
Created in NX6.0.0. More...
 
void SetComponentName (const char *componentName)
 Sets the component name
Created in NX6.0.0. More...
 
void SetComponentNameType (NXOpen::Assemblies::ReplaceComponentBuilder::ComponentNameOption componentNameOption)
 Sets the component name options
Created in NX7.5.0. More...
 
void SetComponentReferenceSetType (NXOpen::Assemblies::ReplaceComponentBuilder::ComponentReferenceSet componentReferenceSet, const NXString &referenceSetName)
 Set the reference set
Created in NX6.0.0. More...
 
void SetComponentReferenceSetType (NXOpen::Assemblies::ReplaceComponentBuilder::ComponentReferenceSet componentReferenceSet, const char *referenceSetName)
 Set the reference set
Created in NX6.0.0. More...
 
void SetMaintainRelationships (bool maintainRelationships)
 Sets the maintain relationships
Created in NX6.0.0. More...
 
void SetReplaceAllOccurrences (bool replaceAllOccurrences)
 Sets the replace all occurrences
Created in NX6.0.0. More...
 
void SetReplacementPart (const NXString &replacementPart)
 Sets the replacement part. More...
 
void SetReplacementPart (const char *replacementPart)
 Sets the replacement part. 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

Represents a NXOpen::Assemblies::ReplaceComponentBuilder builder.

Input to this class can be PSM facet objects.
To create a new instance of this class, use NXOpen::Assemblies::AssemblyManager::CreateReplaceComponentBuilder
Default values.

Property Value

ComponentLayer

1

ComponentLayerOptionType

Maintain

ComponentName

ComponentNameType

AsSpecified

MaintainRelationships

1

ReplaceAllOccurrences

0


Created in NX6.0.0.

Member Enumeration Documentation

Represents possible layer option for replacement part.

Enumerator
ComponentLayerOptionMaintain 

Maintain the layer of the component being replaced out.

ComponentLayerOptionOriginal 

Set the layer to replacement part's original layer.

ComponentLayerOptionWork 

Set the layer to current work layer.

ComponentLayerOptionAsSpecified 

Set the specified layer.

Represents possible component name option for replace operation.

Enumerator
ComponentNameOptionMaintain 

Maintain the component name of the component being replaced out.

ComponentNameOptionOriginal 

Use the replacement part name as the component name.

ComponentNameOptionAsSpecified 

Set the specified component name.

Represents possible reference set for replacement part.

Enumerator
ComponentReferenceSetMaintain 

Maintain the reference set of the component being replaced out.

ComponentReferenceSetEntirePart 

Set the reference set to Entire Part.

ComponentReferenceSetEmpty 

Set the reference to Empty.

ComponentReferenceSetOthers 

Set the specified reference set.

Member Function Documentation

bool NXOpen::Assemblies::ReplaceComponentBuilder::AllowTemporaryPartsToReplace ( )

Returns the flag to determine whether unsaved parts are allowed to replace.

If set to true, then this may result in loss of unsaved data.
Created in NX7.5.1.

License requirements : None

int NXOpen::Assemblies::ReplaceComponentBuilder::ComponentLayer ( )

Returns the layer for the new replacement part.

  1. -1 means use the original layers defined in the component.
  2. 0 means use the work layer.
  3. 1-256 means use the specified layer.


Created in NX6.0.0.

License requirements : None

NXOpen::Assemblies::ReplaceComponentBuilder::ComponentLayerOption NXOpen::Assemblies::ReplaceComponentBuilder::ComponentLayerOptionType ( )

Returns the layer options
Created in NX6.0.0.



License requirements : None

NXString NXOpen::Assemblies::ReplaceComponentBuilder::ComponentName ( )

Returns the component name
Created in NX6.0.0.



License requirements : None

NXOpen::Assemblies::ReplaceComponentBuilder::ComponentNameOption NXOpen::Assemblies::ReplaceComponentBuilder::ComponentNameType ( )

Returns the component name options
Created in NX7.5.0.



License requirements : None

NXOpen::SelectDisplayableObjectList* NXOpen::Assemblies::ReplaceComponentBuilder::ComponentsToReplace ( )

Returns the objects to be replaced.


Created in NX6.0.0.

License requirements : None

NXOpen::Assemblies::ReplaceComponentBuilder::ComponentReferenceSet NXOpen::Assemblies::ReplaceComponentBuilder::GetComponentReferenceSetType ( NXString referenceSetName)

Get the reference set.

Returns

Created in NX6.0.0.

License requirements : None
Parameters
referenceSetNameName of the reference set
NXOpen::ErrorList* NXOpen::Assemblies::ReplaceComponentBuilder::GetErrorList ( )

Get the list of components that failed to replace with their corresponding error codes.

Caller need to dispose the error list after processing it.

Returns

Created in NX8.0.2.

License requirements : None
bool NXOpen::Assemblies::ReplaceComponentBuilder::MaintainRelationships ( )

Returns the maintain relationships
Created in NX6.0.0.



License requirements : None

NXOpen::PartLoadStatus* NXOpen::Assemblies::ReplaceComponentBuilder::RegisterReplacePartLoadStatus ( )

Register the part load status with the replace operation.

If during the operation a part could not be loaded, then this object will be used to store error information.

Returns

Created in NX6.0.1.

License requirements : assemblies ("ASSEMBLIES MODULE")
bool NXOpen::Assemblies::ReplaceComponentBuilder::ReplaceAllOccurrences ( )

Returns the replace all occurrences
Created in NX6.0.0.



License requirements : None

NXString NXOpen::Assemblies::ReplaceComponentBuilder::ReplacementPart ( )

Returns the replacement part.


Created in NX6.0.0.

License requirements : None

void NXOpen::Assemblies::ReplaceComponentBuilder::SetAllowTemporaryPartsToReplace ( bool  allowTemporaryPartsToReplace)

Sets the flag to determine whether unsaved parts are allowed to replace.

If set to true, then this may result in loss of unsaved data.
Created in NX7.5.1.

License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
allowTemporaryPartsToReplaceallowtemporarypartstoreplace
void NXOpen::Assemblies::ReplaceComponentBuilder::SetComponentLayer ( int  componentLayer)

Sets the layer for the new replacement part.

  1. -1 means use the original layers defined in the component.
  2. 0 means use the work layer.
  3. 1-256 means use the specified layer.


Created in NX6.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
componentLayercomponentlayer
void NXOpen::Assemblies::ReplaceComponentBuilder::SetComponentLayerOptionType ( NXOpen::Assemblies::ReplaceComponentBuilder::ComponentLayerOption  componentLayerOption)

Sets the layer options
Created in NX6.0.0.



License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
componentLayerOptioncomponentlayeroption
void NXOpen::Assemblies::ReplaceComponentBuilder::SetComponentName ( const NXString componentName)

Sets the component name
Created in NX6.0.0.



License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
componentNamecomponentname
void NXOpen::Assemblies::ReplaceComponentBuilder::SetComponentName ( const char *  componentName)

Sets the component name
Created in NX6.0.0.



License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
componentNamecomponentname
void NXOpen::Assemblies::ReplaceComponentBuilder::SetComponentNameType ( NXOpen::Assemblies::ReplaceComponentBuilder::ComponentNameOption  componentNameOption)

Sets the component name options
Created in NX7.5.0.



License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
componentNameOptioncomponentnameoption
void NXOpen::Assemblies::ReplaceComponentBuilder::SetComponentReferenceSetType ( NXOpen::Assemblies::ReplaceComponentBuilder::ComponentReferenceSet  componentReferenceSet,
const NXString referenceSetName 
)

Set the reference set
Created in NX6.0.0.



License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
componentReferenceSetReference set
referenceSetNameName of the reference set. Used only when componentReferenceSet is NXOpen::Assemblies::ReplaceComponentBuilder::ComponentReferenceSetOthers
void NXOpen::Assemblies::ReplaceComponentBuilder::SetComponentReferenceSetType ( NXOpen::Assemblies::ReplaceComponentBuilder::ComponentReferenceSet  componentReferenceSet,
const char *  referenceSetName 
)

Set the reference set
Created in NX6.0.0.



License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
componentReferenceSetReference set
referenceSetNameName of the reference set. Used only when componentReferenceSet is NXOpen::Assemblies::ReplaceComponentBuilder::ComponentReferenceSetOthers
void NXOpen::Assemblies::ReplaceComponentBuilder::SetMaintainRelationships ( bool  maintainRelationships)

Sets the maintain relationships
Created in NX6.0.0.



License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
maintainRelationshipsmaintainrelationships
void NXOpen::Assemblies::ReplaceComponentBuilder::SetReplaceAllOccurrences ( bool  replaceAllOccurrences)

Sets the replace all occurrences
Created in NX6.0.0.



License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
replaceAllOccurrencesreplacealloccurrences
void NXOpen::Assemblies::ReplaceComponentBuilder::SetReplacementPart ( const NXString replacementPart)

Sets the replacement part.


Created in NX6.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
replacementPartreplacementpart
void NXOpen::Assemblies::ReplaceComponentBuilder::SetReplacementPart ( const char *  replacementPart)

Sets the replacement part.


Created in NX6.0.0.

License requirements : assemblies ("ASSEMBLIES MODULE")

Parameters
replacementPartreplacementpart

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