|
楼主 |
发表于 2018-3-14 15:39:33
|
显示全部楼层
char file_name[526] = "D:\\Endmill_x_t.prt";
UF_import_part_modes_t modes;
double dest_csys[6]={1,0,0,0,1,0};
double dest_point[3]={0,0,0};
double scale = 1.0;
tag_t group=NULL_TAG;
modes.layer_mode = 0;
modes.group_mode = 1;
modes.view_mode = 0;
modes.cam_mode = FALSE;
UF_PART_import ( file_name, &modes, dest_csys, dest_point, scale, &group );
//布尔运算;
tag_t original_target;
tag_t original_tool;
tag_t frec_eid;
original_target=block1;
original_tool=group;
logical retain_target_body=FALSE;
logical retain_tool_body=TRUE;
UF_MODL_subtract_bodies_with_retained_options(original_target,original_tool,retain_target_body,retain_tool_body,&frec_eid); |
|