NX Open C++ Reference Guide
|
Represents a Assemblies::ReplaceComponentBuilder builder
To create a new instance of this class, use Assemblies::AssemblyManager::CreateReplaceComponentBuilder
Default values.
More...
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. | |
int | ComponentLayer () |
Returns the layer for the new replacement part. | |
NXOpen::Assemblies::ReplaceComponentBuilder::ComponentLayerOption | ComponentLayerOptionType () |
Returns the layer options Created in NX6.0.0. | |
NXString | ComponentName () |
Returns the component name Created in NX6.0.0. | |
NXOpen::Assemblies::ReplaceComponentBuilder::ComponentNameOption | ComponentNameType () |
Returns the component name options Created in NX7.5.0. | |
NXOpen::SelectDisplayableObjectList * | ComponentsToReplace () |
Returns the objects to be replaced. | |
NXOpen::Assemblies::ReplaceComponentBuilder::ComponentReferenceSet | GetComponentReferenceSetType (NXString *referenceSetName) |
Get the reference set. | |
bool | MaintainRelationships () |
Returns the maintain relationships Created in NX6.0.0. | |
NXOpen::PartLoadStatus * | RegisterReplacePartLoadStatus () |
Register the part load status with the replace operation. | |
bool | ReplaceAllOccurrences () |
Returns the replace all occurrences Created in NX6.0.0. | |
NXString | ReplacementPart () |
Returns the replacement part. | |
void | SetAllowTemporaryPartsToReplace (bool allowTemporaryPartsToReplace) |
Sets the flag to determine whether unsaved parts are allowed to replace. | |
void | SetComponentLayer (int componentLayer) |
Sets the layer for the new replacement part. | |
void | SetComponentLayerOptionType (NXOpen::Assemblies::ReplaceComponentBuilder::ComponentLayerOption componentLayerOption) |
Sets the layer options Created in NX6.0.0. | |
void | SetComponentName (const NXString &componentName) |
Sets the component name Created in NX6.0.0. | |
void | SetComponentNameType (NXOpen::Assemblies::ReplaceComponentBuilder::ComponentNameOption componentNameOption) |
Sets the component name options Created in NX7.5.0. | |
void | SetComponentReferenceSetType (NXOpen::Assemblies::ReplaceComponentBuilder::ComponentReferenceSet componentReferenceSet, const NXString &referenceSetName) |
Set the reference set Created in NX6.0.0. | |
void | SetMaintainRelationships (bool maintainRelationships) |
Sets the maintain relationships Created in NX6.0.0. | |
void | SetReplaceAllOccurrences (bool replaceAllOccurrences) |
Sets the replace all occurrences Created in NX6.0.0. | |
void | SetReplacementPart (const NXString &replacementPart) |
Sets the replacement part. |
Represents a Assemblies::ReplaceComponentBuilder builder
To create a new instance of this class, use Assemblies::AssemblyManager::CreateReplaceComponentBuilder
Default values.
Property | Value |
---|---|
ComponentLayer |
1 |
ComponentLayerOptionType |
Maintain |
ComponentName | |
ComponentNameType |
AsSpecified |
MaintainRelationships |
1 |
ReplaceAllOccurrences |
0 |
Created in NX6.0.0.
Represents possible layer option for replacement part.
Represents possible component name option for replace operation.
Represents possible reference set for replacement part.
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. |
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
Returns the layer for the new replacement part.
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
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.
referenceSetName | Name of the reference set |
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 the replace all occurrences
Created in NX6.0.0.
License requirements : None
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")
allowTemporaryPartsToReplace | allowtemporarypartstoreplace |
void NXOpen::Assemblies::ReplaceComponentBuilder::SetComponentLayer | ( | int | componentLayer | ) |
Sets the layer for the new replacement part.
Created in NX6.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
componentLayer | componentlayer |
void NXOpen::Assemblies::ReplaceComponentBuilder::SetComponentLayerOptionType | ( | NXOpen::Assemblies::ReplaceComponentBuilder::ComponentLayerOption | componentLayerOption | ) |
Sets the layer options
Created in NX6.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
componentLayerOption | componentlayeroption |
void NXOpen::Assemblies::ReplaceComponentBuilder::SetComponentName | ( | const NXString & | componentName | ) |
Sets the component name
Created in NX6.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
componentName | componentname |
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")
componentNameOption | componentnameoption |
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")
componentReferenceSet | Reference set |
referenceSetName | Name of the reference set. Used only when componentReferenceSet is Assemblies::ReplaceComponentBuilder::ComponentReferenceSetOthers NOTE: The full Unicode character set is not supported for this parameter. |
void NXOpen::Assemblies::ReplaceComponentBuilder::SetMaintainRelationships | ( | bool | maintainRelationships | ) |
Sets the maintain relationships
Created in NX6.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
maintainRelationships | maintainrelationships |
void NXOpen::Assemblies::ReplaceComponentBuilder::SetReplaceAllOccurrences | ( | bool | replaceAllOccurrences | ) |
Sets the replace all occurrences
Created in NX6.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
replaceAllOccurrences | replacealloccurrences |
void NXOpen::Assemblies::ReplaceComponentBuilder::SetReplacementPart | ( | const NXString & | replacementPart | ) |
Sets the replacement part.
Created in NX6.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
replacementPart | replacementpart |