//【单独显示实体组】并调整视图 void onlyShowSelObj(std::vector<tag_t> body_list, bool bFitView = true) { if (body_list.empty())return; Session* theSession = Session::GetSession(); try { theSession->DisplayManager()->HideByType(NXOpen::DisplayManager::ShowHideType::ShowHideTypeAll, NXOpen::DisplayManager::ShowHideScope::ShowHideScopeWorkPartAndOccurrence); for (inti = 0; i < body_list.size(); i++) { if (UF_OBJ_ask_status(body_list[i]) == UF_OBJ_ALIVE) UF_CALL(UF_OBJ_set_blank_status(body_list[i], UF_OBJ_NOT_BLANKED)); } if (bFitView) { UF_CALL(UF_VIEW_fit_view(NULL_TAG, 0.8)); } } catch (exception& ex) { //---- Enter your exception handling code here ----- uc1601((char*)ex.what(), 1); } }