NX Open C++ Reference Guide
|
Used in selection methods to set the types of objects that are selectable. More...
Public Member Functions | |
MaskTriple (int typeInitial, int subtypeInitial, int solidBodySubtypeInitial) | |
Constructor for the MaskTriple struct. | |
Public Attributes | |
int | SolidBodySubtype |
Solid body subtype. | |
int | Subtype |
Object subtype. | |
int | Type |
Object type. | |
Used in selection methods to set the types of objects that are selectable.
Commonly used: @code
For C++: in order to select... set... any edge type=UF_solid_type, subtype=UF_all_subtype, solid_body_subtype=UF_UI_SEL_FEATURE_ANY_EDGE any face type=UF_solid_type, subtype=UF_all_subtype, solid_body_subtype=UF_UI_SEL_FEATURE_ANY_FACE
For .NET: in order to select... set... any edge type=NXOpen.UF.UFConstants.UF_solid_type, subtype=0, solid_body_subtype=NXOpen.UF.UFConstants.UF_UI_SEL_FEATURE_ANY_EDGE any face type=NXOpen.UF.UFConstants.UF_solid_type, subtype=0, solid_body_subtype=NXOpen.UF.UFConstants.UF_UI_SEL_FEATURE_ANY_FACE
NXOpen::Selection::MaskTriple::MaskTriple | ( | int | typeInitial, |
int | subtypeInitial, | ||
int | solidBodySubtypeInitial | ||
) |
Constructor for the MaskTriple struct.
typeInitial | Object type. This can be one of the object types that are listed in uf_object_types.h. For example, for point, use UF_point_type in C++ and NXOpen.UF.UFConstants.UF_point_type in .NET. |
subtypeInitial | Object subtype. This can either be 0 (UF_all_subtype) for any subtype, or a subtype of the selected type. The subtypes are listed in uf_object_types.h. |
solidBodySubtypeInitial | Solid body subtype. This is only meaningful when the type is UF_solid_type. In that case, this should be set to one of the solid type constants listed in uf_ui_types.h under "Constants for selection solid_type". For example, to select any face, use UF_UI_SEL_FEATURE_ANY_FACE in C++ and NXOpen.UF.UFConstants.UF_UI_SEL_FEATURE_ANY_FACE in .NET |
int NXOpen::Selection::MaskTriple::SolidBodySubtype |
Solid body subtype.
This is only meaningful when the type is UF_solid_type. In that case, this should be set to one of the solid type constants listed in uf_ui_types.h under "Constants for selection solid_type". For example, to select any face, use UF_UI_SEL_FEATURE_ANY_FACE in C++ and NXOpen.UF.UFConstants.UF_UI_SEL_FEATURE_ANY_FACE in .NET
int NXOpen::Selection::MaskTriple::Subtype |
Object subtype.
This can either be 0 (UF_all_subtype) for any subtype, or a subtype of the selected type. The subtypes are listed in uf_object_types.h.
int NXOpen::Selection::MaskTriple::Type |
Object type.
This can be one of the object types that are listed in uf_object_types.h. For example, for point, use UF_point_type in C++ and NXOpen.UF.UFConstants.UF_point_type in .NET.