找回密码
 立即注册

QQ登录

只需一步,快速开始

微信扫码登录

搜索
查看: 3531|回复: 2

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

[复制链接]

14

主题

33

回帖

660

积分

三级士官

积分
660
发表于 2014-4-14 15:53:34 | 显示全部楼层 |阅读模式
  1. /* 得到当前的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 );
复制代码

688

主题

2763

回帖

8万

积分

大将

积分
85010

灌水王优秀版主论坛元老论坛技术员论坛贡献可爱天使

发表于 2014-4-14 20:43:43 | 显示全部楼层
支持一下楼主,谢谢分享。

4

主题

-2

回帖

50

积分

上等兵

积分
50
发表于 2014-8-26 23:39:31 | 显示全部楼层
支持一下。。。就是排版有点乱
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

咨询QQ:1359218528|发帖须知!|Archiver|手机版|小黑屋|UG爱好者论坛 ( 京ICP备10217105号-2 )

GMT+8, 2025-1-31 22:29

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

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