/*===============================================================*\ FUNCTION : ProUtilFeatCreate PURPOSE : Creates feature in no mode option returns : PRO_TK_NO_ERROR - Successfully executed \*===============================================================*/ ProError ProUtilFeatCreate(ProAsmcomppath *p_comp_path ,ProMdl model, ProElement pro_e_feature_tree, ProFeature *feature) { ProError status = PRO_TK_GENERAL_ERROR; ProSelection model_sel; ProModelitem model_item; ProErrorlist p_errors; ProFeatureCreateOptions no_mode_option[1]; int no_opts = 1; no_mode_option[0] = PRO_FEAT_CR_NO_OPTS; status = ProMdlToModelitem( model, &model_item ); TEST_CALL_REPORT("ProMdlToModelitem", "ProUtilFeatCreate", status, status != PRO_TK_NO_ERROR ); status = ProSelectionAlloc (p_comp_path, &model_item, &model_sel); status = ProFeatureCreate (model_sel, pro_e_feature_tree, no_mode_option, no_opts, feature, &p_errors); TEST_CALL_REPORT("ProFeatureCreate", "ProUtilFeatCreate", status, status != PRO_TK_NO_ERROR ); ProSelectionFree(&model_sel); return status; }
Selector::~Selector() { switch( ProSelectionFree( &m_self ) ) { case PRO_TK_NO_ERROR: break; } }