青华模具培训学校

 找回密码
 注册

QQ登录

只需一步,快速开始

青华模具培训学院
查看: 1373|回复: 0

[教程] UG api二次开发实用入门教程_装配树的常用函数

[复制链接]
发表于 2014-4-14 15:49 | 显示全部楼层 |阅读模式

/* 得到当前的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 );


( T. Z) g: h9 Q  p) H8 Z8 y# k
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|关于我们|sitemap|小黑屋|Archiver|手机版|UG网-UG技术论坛-青华数控模具培训学校 ( 粤ICP备15108561号 )

GMT+8, 2025-1-23 12:00 , Processed in 0.066759 second(s), 19 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表