在external progamm,我尝试用"UF_PART_open ("D:\\HUANGC++\\sample0\\piston.part",[$piston,&error_status )]" 去打开piston.
然后用以下语句输出piston的所有特征.可是运行结果无输出.请指教.
"
/*Tag current parts*/
part = UF_PART_ask_nth_part( curr_part );
UF_PART_ask_part_name(part,part_fspec);
printf(title0, part_fspec );
count_1 = 0;
type = UF_feature_type;
count_1 = 0;
type = UF_feature_type;
feature = NULL_TAG;
/*cycle*/
UF_OBJ_cycle_objs_in_part( part, type, [$feature )]
/*end point of cycle*/
while ( feature !=NULL_TAG )
{
count_1++;
UF_OBJ_cycle_objs_in_part( part, type, [$feature )]
}
cout<<"UF_OBJ_cycle_objs_in_part shows %d features\n"<< count_1 ;" |