NX Open C++ Reference Guide
|
此类的实例可用于将配套条件转换为其拥有的组件或其拥有组件的子部件中的装配约束.
More...
Public Types | |
enum | PartContext { PartContextInOwningPart, PartContextInLoadedChildren, PartContextInAllChildren } |
定义零件匹配条件将被转换的部分ed. More... | |
Public Member Functions | |
NXOpen::Positioning::MatingConverter::PartContext | Context () |
返回当前转换上下文,其中匹配条件将被转换. | |
void | ConvertMatingConditions () |
根据定义的属性将匹配条件转换为装配约束Positioning::MatingConverter object. | |
void | DeleteResults () |
从转换的单个约束的匹配转换结果中移除细节. | |
void | Destroy () |
Deletes this Positioning::MatingConverter immediately. | |
std::vector < NXOpen::Positioning::Constraint * > | GetConvertedConstraints () |
返回由此转换操作转换的所有约束. | |
std::vector < NXOpen::Positioning::Constraint * > | GetConvertedParts () |
返回通过此转换操作转换的所有部件. | |
std::vector< NXString > | GetLatestResults (bool showAllResults) |
Returns textual 描述结果的最后的转换操作 | |
std::vector< NXString > | GetResults (bool showAllResults) |
返回当前上下文集合所描述的所有部分的所有先前转换操作的结果的文本描述Positioning::MatingConverter::SetContext . | |
bool | LoadReferencedGeometry () |
返回是否在执行转换之前加载未加载的引用几何体. | |
NXOpen::PartLoadStatus * | LoadStatus () |
返回转换操作产生的负载状态. | |
int | NumberOfConvertedParts () |
返回通过此转换操作转换的部分部件的数量. | |
void | SetContext (NXOpen::Positioning::MatingConverter::PartContext context) |
设置当前转换上下文,其中匹配条件将被转换. | |
void | SetLoadReferencedGeometry (bool loadGeometry) |
设置是否在执行转换之前加载未加载的引用几何图形. | |
![]() | |
tag_t | GetTag () const |
<b>Deprecated</b>:<br> Use Tag instead. | |
tag_t | Tag () const |
Returns the tag of this object. | |
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.
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 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 @link Positioning::MatingConverter::SetContext Positioning::MatingConverter::SetContext@endlink ). 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 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 @link Positioning::Constraint::GenerateConversionReport Positioning::Constraint::GenerateConversionReport@endlink to obtain the conversion status of these constraints. @return The converted constraints
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
std::vector<NXOpen::Positioning::Constraint *> NXOpen::Positioning::MatingConverter::GetConvertedParts | ( | ) |
Returns all parts converted by this conversion operation.
@return The converted constraints
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
std::vector<NXString> NXOpen::Positioning::MatingConverter::GetLatestResults | ( | bool | showAllResults | ) |
Returns textual descriptions of the results of the last conversion operation.
@return The generated results
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
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 .
@return The generated results
Created in NX5.0.0.
License requirements : assemblies ("ASSEMBLIES MODULE")
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 |