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. | |
void | ConvertMatingConditions () |
Converts Mating Conditions to Assembly Constraints according to the properties defined on this Positioning::MatingConverter object. | |
void | DeleteResults () |
Removes details from the mating conversion results of the individual constraints that were converted. | |
void | Destroy () |
Deletes this Positioning::MatingConverter immediately. | |
std::vector < NXOpen::Positioning::Constraint * > | GetConvertedConstraints () |
Returns all constraints converted by this conversion operation. | |
std::vector < NXOpen::Positioning::Constraint * > | GetConvertedParts () |
Returns all parts converted by this conversion operation. | |
std::vector< NXString > | GetLatestResults (bool showAllResults) |
Returns textual descriptions of the results of the last conversion operation. | |
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 Positioning::MatingConverter::SetContext . | |
bool | LoadReferencedGeometry () |
Returns whether to load unloaded referenced geometry before performing a conversion. | |
NXOpen::PartLoadStatus * | LoadStatus () |
Returns the load status resulting from a conversion operation. | |
int | NumberOfConvertedParts () |
Returns the number of parts parts converted by this conversion operation. | |
void | SetContext (NXOpen::Positioning::MatingConverter::PartContext context) |
Sets the current conversion context in which mating conditions will be converted. | |
void | SetLoadReferencedGeometry (bool loadGeometry) |
Sets whether to load unloaded referenced geometry before performing a conversion. |
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 Assemblies::ComponentAssembly from which this object was obtained using Assemblies::ComponentAssembly::CreateMatingConverter .
Not directly created by user.
Created in NX5.0.0.
Defines in which parts mating conditions will be converted.
Returns the current conversion context in which mating conditions will be converted.
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
Converts Mating Conditions to Assembly Constraints according to the properties defined on this Positioning::MatingConverter object.
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
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 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")
Deletes this 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 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 Positioning::MatingConverter::SetContext .
showAllResults | Whether to show results for all converted constraints even if no issues arose during their conversion |
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")
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")
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 |