|
在二次开发里面每建立一个新的特征树的时候整个模型就要再生一次,但是我希望它能等所有的修改完成后再进行再生,这要怎么做?- /*---------------------------------------------------------------*\
- 构建和求解截面
- \*---------------------------------------------------------------*/
- status = UserSectionBuild1_gear ( ( ProSection )(value_data.v.p),index,t );
- ProElempathFree (&path);
- path_items[0].type = PRO_ELEM_PATH_ITEM_TYPE_ID;
- path_items[0].path_item.elem_id = PRO_E_STD_MATRLSIDE;
-
- status = ProElempathAlloc (&path);
- status = ProElempathDataSet (path, path_items, 1);
- status = ProElemtreeElementGet ( created_elemtree, path, &pro_e_std_matrlside);
- status = ProElementValueGet ( pro_e_std_matrlside, &value );
- value_data.type = PRO_VALUE_TYPE_INT;
- value_data.v.i =PRO_EXT_MATERIAL_SIDE_TWO;//
- status = ProValueDataSet ( value, &value_data );
- status = ProElementValueSet ( pro_e_std_matrlside, value );
- ProElempathFree (&path);
- status = ProElementValueSet ( pro_e_std_matrlside, value );
- ProElempathFree (&path);
- path_items[0].type = PRO_ELEM_PATH_ITEM_TYPE_ID;
- path_items[0].path_item.elem_id = PRO_E_STD_DIRECTION;
- status = ProElempathAlloc (&path);
- status = ProElempathDataSet (path, path_items, 1);
- status = ProElemtreeElementGet ( created_elemtree, path,&pro_e_std_direction);
- status = ProElementValueGet ( pro_e_std_direction, &value );
- value_data.type = PRO_VALUE_TYPE_INT;
- value_data.v.i = PRO_EXT_CR_IN_SIDE_ONE;
- status = ProValueDataSet ( value, &value_data );
- status = ProElementValueSet ( pro_e_std_direction, value );
- ProElempathFree (&path);
- opts[0] = PRO_FEAT_CR_INCOMPLETE_FEAT;
- status = ProSelectionAsmcomppathGet (model_sel, &comp_path);
-
- status = ProFeatureRedefine (NULL, &feature, created_elemtree,opts, 1, &errors);
-
-
- return (status);
- }
复制代码
这是建立特征树的后面部分代码, 要去掉哪几句?或者说哪几句是用来再生的? |
|