NX Open C++ Reference Guide
|
An instance of this class can be used to convert Mating Conditions to Assembly Constraints in its owning assembly or in child parts of its owning assembly. More...
Public Types | |
enum | PartContext { PartContextInOwningPart, PartContextInLoadedChildren, PartContextInAllChildren } |
Defines in which parts mating conditions will be converted. More... | |
Public Member Functions | |
NXOpen::Positioning::MatingConverter::PartContext | Context () |
Returns the current conversion context in which mating conditions will be converted. More... | |
void | ConvertMatingConditions () |
Converts Mating Conditions to Assembly Constraints according to the properties defined on this NXOpen::Positioning::MatingConverter object. More... | |
void | DeleteResults () |
Removes details from the mating conversion results of the individual constraints that were converted. More... | |
void | Destroy () |
Deletes this NXOpen::Positioning::MatingConverter immediately. More... | |
std::vector < NXOpen::Positioning::Constraint * > | GetConvertedConstraints () |
Returns all constraints converted by this conversion operation. More... | |
std::vector < NXOpen::Positioning::Constraint * > | GetConvertedParts () |
Returns all parts converted by this conversion operation. More... | |
std::vector< NXString > | GetLatestResults (bool showAllResults) |
Returns textual descriptions of the results of the last conversion operation. More... | |
std::vector< NXString > | GetResults (bool showAllResults) |
Returns textual descriptions of the results of all prior conversion operations for all the parts described by the current context set using NXOpen::Positioning::MatingConverter::SetContext . More... | |
bool | LoadReferencedGeometry () |
Returns whether to load unloaded referenced geometry before performing a conversion. More... | |
NXOpen::PartLoadStatus * | LoadStatus () |
Returns the load status resulting from a conversion operation. More... | |
int | NumberOfConvertedParts () |
Returns the number of parts parts converted by this conversion operation. More... | |
void | SetContext (NXOpen::Positioning::MatingConverter::PartContext context) |
Sets the current conversion context in which mating conditions will be converted. More... | |
void | SetLoadReferencedGeometry (bool loadGeometry) |
Sets whether to load unloaded referenced geometry before performing a conversion. More... | |
Public Member Functions inherited from NXOpen::TaggedObject | |
tag_t | Tag () const |
Returns the tag of this object. More... | |
An instance of this class can be used to convert Mating Conditions to Assembly Constraints in its owning assembly or in child parts of its owning assembly.
The owning assembly is the NXOpen::Assemblies::ComponentAssembly from which this object was obtained using NXOpen::Assemblies::ComponentAssembly::CreateMatingConverter .
Not directly created by user.
Created in NX5.0.0.
Defines in which parts mating conditions will be converted.
NXOpen::Positioning::MatingConverter::PartContext NXOpen::Positioning::MatingConverter::Context | ( | ) |
Returns the current conversion context in which mating conditions will be converted.
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
void NXOpen::Positioning::MatingConverter::ConvertMatingConditions | ( | ) |
Converts Mating Conditions to Assembly Constraints according to the properties defined on this NXOpen::Positioning::MatingConverter object.
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
void NXOpen::Positioning::MatingConverter::DeleteResults | ( | ) |
Removes details from the mating conversion results of the individual constraints that were converted.
This will be applied to the mating conversion results in the parts described by the current context (determined by NXOpen::Positioning::MatingConverter::SetContext ). Note that the summary information for each part in the conversion results is not modified by this function.
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
void NXOpen::Positioning::MatingConverter::Destroy | ( | ) |
Deletes this NXOpen::Positioning::MatingConverter immediately.
Created in NX6.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
std::vector<NXOpen::Positioning::Constraint *> NXOpen::Positioning::MatingConverter::GetConvertedConstraints | ( | ) |
Returns all constraints converted by this conversion operation.
Use NXOpen::Positioning::Constraint::GenerateConversionReport to obtain the conversion status of these constraints.
std::vector<NXOpen::Positioning::Constraint *> NXOpen::Positioning::MatingConverter::GetConvertedParts | ( | ) |
Returns all parts converted by this conversion operation.
std::vector<NXString> NXOpen::Positioning::MatingConverter::GetLatestResults | ( | bool | showAllResults | ) |
Returns textual descriptions of the results of the last conversion operation.
showAllResults | Whether to show results for all converted constraints even if no issues arose during their conversion |
std::vector<NXString> NXOpen::Positioning::MatingConverter::GetResults | ( | bool | showAllResults | ) |
Returns textual descriptions of the results of all prior conversion operations for all the parts described by the current context set using NXOpen::Positioning::MatingConverter::SetContext .
showAllResults | Whether to show results for all converted constraints even if no issues arose during their conversion |
bool NXOpen::Positioning::MatingConverter::LoadReferencedGeometry | ( | ) |
Returns whether to load unloaded referenced geometry before performing a conversion.
When all referenced geometry is loaded the conversion operation is more effective. If it isn't loaded, then the conversion operation will often need to be completed next time the assembly and geometry are loaded together.
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
NXOpen::PartLoadStatus* NXOpen::Positioning::MatingConverter::LoadStatus | ( | ) |
Returns the load status resulting from a conversion operation.
This indicates any problems which arose when loading parts during conversion.
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
int NXOpen::Positioning::MatingConverter::NumberOfConvertedParts | ( | ) |
Returns the number of parts parts converted by this conversion operation.
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
void NXOpen::Positioning::MatingConverter::SetContext | ( | NXOpen::Positioning::MatingConverter::PartContext | context | ) |
Sets the current conversion context in which mating conditions will be converted.
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
context | The new context |
void NXOpen::Positioning::MatingConverter::SetLoadReferencedGeometry | ( | bool | loadGeometry | ) |
Sets whether to load unloaded referenced geometry before performing a conversion.
When all referenced geometry is loaded the conversion operation is more effective. If it isn't loaded, then the conversion operation will often need to be completed next time the assembly and geometry are loaded together.
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
loadGeometry | Whether to load referenced-geometry |