selection0->SetSelectModeAsString("Multiple");//控件设置为多选
//过滤面
Selection::SelectionAction action = Selection::SelectionActionClearAndEnableSpecific;
std::vector<Selection::MaskTriple> maskArray(1);
maskArray[0] = Selection::MaskTriple(UF_face_type, 0, 0);
selection0->GetProperties()->SetSelectionFilter("SelectionFilter", action, maskArray);
//过滤注释
Selection::SelectionAction action = Selection::SelectionActionClearAndEnableSpecific;
vector<Selection::MaskTriple> markArray(1);
markArray[0] = Selection::MaskTriple(UF_drafting_entity_type,UF_draft_note_subtype,0);
selection0->GetProperties()->SetSelectionFilter("SelectionFilter", action, markArray);
//过滤-组件
Selection::SelectionAction action = Selection::SelectionActionClearAndEnableSpecific;
std::vector<Selection::MaskTriple> maskArray(1);
maskArray[0] = Selection::MaskTriple(UF_component_type, 0, 0);
selection0->GetProperties()->SetSelectionFilter("SelectionFilter", action, maskArray);
//装配或者建模的实体
Selection::SelectionScope scope = Selection::SelectionScopeUseDefault;
Selection::SelectionAction action = Selection::SelectionActionClearAndEnableSpecific;
std::vector<Selection::MaskTriple> maskArray(3);
maskArray[0] = Selection::MaskTriple(UF_solid_type, UF_solid_body_subtype, 0);
maskArray[1] = Selection::MaskTriple(UF_component_type, UF_component_subtype, 0);
maskArray[2] = Selection::MaskTriple(UF_solid_type, UF_solid_body_subtype, UF_UI_SEL_FEATURE_SOLID_BODY);
selection0->GetProperties()->SetSelectionFilter("SelectionFilter", action, maskArray);
selection0->SetSelectModeAsString("Multiple");//多选
selection0->GetProperties()->SetEnum("MaximumScope", 11); //11-工作部件和组件内