1 //选择对象控件设置过滤
2 Selection::SelectionAction action = Selection::SelectionActionClearAndEnableSpecific;
3 std::vector<:masktriple> maskArray(1);
4 maskArray[0] = Selection::MaskTriple(UF_solid_type, UF_solid_body_subtype, UF_UI_SEL_FEATURE_SOLID_BODY); // Bodies
5 selection0->GetProperties()->SetSelectionFilter("SelectionFilter", action, maskArray);
6 /*
7 maskArray[0] = Selection::MaskTriple( UF_solid_type, UF_all_subtype, UF_UI_SEL_FEATURE_ANY_FACE); // Faces
8 maskArray[0] = Selection::MaskTriple( UF_solid_type, UF_all_subtype, UF_UI_SEL_FEATURE_ANY_EDGE); // Edges
9 maskArray[0] = Selection::MaskTriple( UF_component_type, 0, 0 ); // Components
10 maskArray[0] = Selection::MaskTriple( UF_line_type, 0, 0 ); // Lines
11 maskArray[0] = Selection::MaskTriple( UF_drafting_entity_type, 0, 0 ); // Drafting objects