代码: inttype=0, subtype=0; UF_OBJ_ask_type_and_subtype(objTag,&type, &subtype);
SubType, Body_Type;14charmsg[256];15UF_OBJ_cycle_objs_in_part(UF_PART_ask_display_part(), UF_solid_type, &ObjectTag);//遍历体16while(ObjectTag !=NULL_TAG
const int subtype Input Subtype of type to ask settings of const int property Input Property of type/subtype to ask settings of UF_OBJ_cre_settings_p_t settings Output Color, line font and width object creation settings for the specified type and subtype. UF_OBJ_ask_def_cre_settings (vie...
UF_OBJ_ask_name获得对象的名字 UF_OBJ_ask_name_origin UF_OBJ_ask_owning_part UF_OBJ_ask_partially_shaded UF_OBJ_ask_status UF_OBJ_ask_translucency UF_OBJ_ask_type_and_subtype获取对象类型、子类型 UF_OBJ_cycle_all UF_OBJ_cycle_by_name UF_OBJ_cycle_by_name_and_type UF_OBJ_cycle_by_n...
UF_OBJ_ask_type_and_subtype( Object_id, 20年前 8910 3 购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008 QQ号:85585969 从实体遍历出线用UF_OBJ_cycle_obj_in_part()似乎不行。 用UF_OBJ_ask_type_and_subtype( object_id, 收藏 0 ...
13 int Type, SubType, Body_Type; 14 int Count = 0; 15 char msg[256]; 16 UF_OBJ_cycle_objs_in_part(UF_PART_ask_display_part(), UF_solid_type, &ObjectTag); 17 while (ObjectTag != NULL_TAG) 18 { 19 UF_OBJ_ask_type_and_subtype(ObjectTag, &Type, &SubType); ...
int Type, SubType, Body_Type; char msg[256]; UF_OBJ_cycle_objs_in_part(UF_PART_ask_display_part(), UF_solid_type, &ObjectTag); while (ObjectTag != NULL_TAG) { UF_OBJ_ask_type_and_subtype(ObjectTag, &Type, &SubType);
type=UF_solid_type; UF_OBJ_cycle_objs_in_part( part, type, &solid ); UF_OBJ_ask_type_and_subtype(solid, &type, &subtype); if (subtype == UF_solid_body_subtype) solid_body[i++]=solid; } UF_CALL(UF_GEXP_create_distance(solid_body[0], NULL_TAG,solid_body[1], NULL_TAG, ...
11//⽅法1:UF_OBJ_cycle_objs_in_part 12 std::vector<tag_t> SolidVector;13 tag_t ObjectTag = NULL_TAG;14int Type, SubType, Body_Type;15char msg[256];16 UF_OBJ_cycle_objs_in_part(UF_PART_ask_display_part(), UF_solid_type, &ObjectTag);17while (ObjectTag != NULL_TA...
int subtype1;theUfSession.Obj.AskTypeAndSubtype(PartTag, out type1, out subtype1);//获得类型和⼦类型 if (type1 == UFConstants.UF_solid_type & subtype1 == UFConstants.UF_solid_body_subtype)//判断实体类型 { //设置颜⾊ theUfSession.Obj.SetColor(PartTag, 186);} theUfSession.Obj....