然后用以下语句输出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 ;"作者: spline 时间: 2003-8-6 08:01
UF_PART_ask_nth_part
----------------------------------------------------------------------------
Returns the tag of the "n'th" part in the session. The parts are
considered to be numbered 0 to (UF_PART_ask_num_parts()-1). If
the "n'th" part doesn't exist, a NULL_TAG is returned.
Return
returns a part tag or a NULL_TAG if the part does not exist