|
file:///C:\Users\Administrator\AppData\Roaming\Tencent\Users\429570094\QQ\WinTemp\RichOle\OD%I71F%SOW9IWT3R8G2FZW.png如何获得左边这些体的tag,我这个方法总是循环多出了很多的tag
tag_t disp_part_tag=NULL_TAG,next_tag=NULL_TAG,subtype=NULL_TAG;
int type 1=UF_solid_type;
double tj=0;
disp_part_tag=UF_PART_ask_display_part ( ); //得到当前部件文件标识
UF_OBJ_cycle_objs_in_part(disp_part_tag,type1,&next_tag);
while(next_tag!=NULL_TAG )
{
double acc_value [ 11 ] ={.01,0,0,0,0,0,0,0,0,0,0};
double mass_props [ 47 ];
double statistics [ 13 ];
UF_MODL_ask_mass_props_3d(&next_tag,1,1,3,NULL ,1,acc_value,mass_props,statistics);
tj = mass_props[1]+ tj;
UF_OBJ_cycle_objs_in_part(disp_part_tag,type,&next_tag);
}
|
|