UG爱好者
标题:
UG api二次开发实用入门教程_装配树的常用函数
[打印本页]
作者:
2847657989
时间:
2014-4-14 15:53
标题:
UG api二次开发实用入门教程_装配树的常用函数
/* 得到当前的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 );
复制代码
作者:
3D小王
时间:
2014-4-14 20:43
支持一下楼主,谢谢分享。
作者:
ug_love
时间:
2014-8-26 23:39
支持一下。。。就是排版有点乱
欢迎光临 UG爱好者 (https://www.ugsnx.com/)
Powered by Discuz! X3.2