admin 发表于 2014-2-23 16:18:33

UG NX二次开发中,使用ufun装配方面的常用函数具体描述


„/* 得到当前的work part prototype tag */
extern tag_t UF_ASSEM_ask_work_part ( );
„/* 设置当前的work part prototype tag */
extern int UF_ASSEM_set_work_part ( tag_t part );
„/* 得到当前的work part occurrence tag */
extern tag_t UF_ASSEM_ask_work_occurrence ( );
„/* 设置当前的work part occurrence tag */
extern int UF_ASSEM_set_work_occurrence ( tag_t part_occur );
„/* 得到根part的occurrence tag, 输入的part必须是根part prototype tag */
extern tag_t UF_ASSEM_ask_root_part_occ ( tag_t part );
„/* 得到某个instance的父part prototype tag */
extern tag_t UF_ASSEM_ask_parent_of_instance ( tag_t instance );

/* 得到某个instance的part prototype tag */
extern tag_t UF_ASSEM_ask_child_of_instance ( tag_t instance );
/* 得到父part下某个instance name的instance tag */
extern tag_t UF_ASSEM_ask_instance_of_name ( tag_t parent_part, const char * instance_name );
/* 得到父part下某个instance的part occurrence tag */
extern tag_t UF_ASSEM_ask_part_occ_of_inst ( tag_t parent_part_occ, tag_t instance );
/* 得到某个instance的所有part occurrence tag */
extern int UF_ASSEM_ask_part_occs_of_inst ( tag_t instance, tag_t ** part_occs );
/* 得到某个part occurrence的instance tag */
extern tag_t UF_ASSEM_ask_inst_of_part_occ ( tag_t part_occur );
/* 得到父part下某个part prototype的所有part occurrence tag */
extern int UF_ASSEM_ask_occs_of_part ( tag_t parent_part, tag_t part, tag_t ** part_occs );
/* 得到某个object prototype的所有object occurrence tag */
extern int UF_ASSEM_ask_occs_of_entity ( tag_t object, tag_t ** occurrences );
/* 得到某个object或part occurrence的object或part prototype tag */
extern tag_t UF_ASSEM_ask_prototype_of_occ ( tag_t occurrence );
/* 得到某个object或part occurrence的父part occurrence tag */
extern tag_t UF_ASSEM_ask_part_occurrence ( tag_t occurrence );
/* 得到某个part occurrence下所有子part occurrence tag */
extern int UF_ASSEM_ask_all_part_occ_children ( tag_t part_occur, tag_t ** child_part_occs );
/* 同上 */
extern int UF_ASSEM_ask_part_occ_children ( tag_t part_occur, tag_t ** child_part_occs );
/* 得到某个part occurrence中所有object occurrence tag的个数 */
extern int UF_ASSEM_count_ents_in_part_occ ( tag_t part_occur );
/* 得到某个part occurrence中某个object prototype的object occurrence tag */
extern tag_t UF_ASSEM_find_occurrence ( tag_t part_occur, tag_t object_prototype );
/* 得到某个part occurrence在当前work part中的part occurrence tag */
extern int UF_ASSEM_get_occ_in_work_occ ( tag_t part_occ, tag_t * occ_in_work );
/* 判断某个part或object tag是否是occurrence tag */
extern logical UF_ASSEM_is_occurrence ( tag_t entity );
/* 判断某个part是否是occurrence tag */
extern logical UF_ASSEM_is_part_occurrence ( tag_t occurrence );
/* 判断某个part occurrence是否属于当前的work part */
extern int UF_ASSEM_occ_is_in_work_part ( tag_t part_occ, logical * is_in_work );
/* 循环查找某个part occurrence中的所有object occurrence tag */
extern tag_t UF_ASSEM_cycle_ents_in_part_occ ( tag_t part_occur, tag_t object_occur );
/* 循环查找某个part prototype下的所有instance tag */
extern tag_t UF_ASSEM_cycle_inst_of_part ( tag_t parent_part, tag_t instance );




tomlllttt 发表于 2014-4-6 22:47:50

赞!!!!!!!!!!!!!
页: [1]
查看完整版本: UG NX二次开发中,使用ufun装配方面的常用函数具体描述