UG软件二次开发基础4.pptVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
UG软件二次开发基础(四) 函数的含义? 可以通过查询UG/Open API的函数时获得。 注 意!!! 在UG/OPEN API的功能函数中用到的描述实体的几何特性值的变量是字符型(char)的数据,而不是我们通常习惯使用的实型数据(double)。 如:本例中block的长、宽、高的表示即用char *block_len[3] = {1,2,3}来说明。 应用举例 线性阵列(line instance)和环形阵列(Circular instance) 线性阵列 线性阵列 指一个特征在一个实体上按给定距离和方向进行行和列复制多个,最后结果象一个矩阵一样排列。 环形阵列 环形阵列 指一个特征在一个实体上按给定半径和角度复制多个,最后结果成环形排列。 任 务 在block(长方体)或cylinder(圆柱体)上进行槽或孔的线性阵列。 需要的功能函数 UF_MODL_create_block1 生成实体block UF_MODL_create_cyl1 生成实体cylinder UF_MODL_create_list 生成实体链表(被阵 列的实体必须进入链表) UF_MODL_put_list_item 把实体ID号加入 链表尾 UF_MODL_create_linear_iset 完成线性阵列 功能函数说明 UF_MODL_create_cyl1 Creates a cylinder. The origin indicates where the center of the bottom face is located for the cylinder. The direction vector controls the axis on which the cylinder is created. The diameter and height control the size of the cylinder. The sign parameter controls the boolean operation performed. The output of this function is the object identifier associated to the cylinder. 功能函数说明 extern int UF_MODL_create_cyl1 ( UF_FEATURE_SIGN sign, double origin[ 3 ], char * height, char * diam, double direction[ 3 ], tag_t * cyl_obj_id ); 功能函数说明 UF_MODL_create_list Creates a linked list of objects. A list of objects may contain identifiers for bodies, features, faces and edges. You use this routine to create a list for those modeling routines that require a list as an input; please do not use this for ask routines that return lists. 功能函数说明 extern int UF_MODL_create_list ( uf_list_p_t * list ); uf_list_p_t * list Output List of object identifiers 功能函数说明 UF_MODL_put_list_item Adds the input object identifier to the end of the list that you input. NOTE: Duplicate tags added to the list are ignored. 功能函数说明 extern int UF_MODL_put_list_item ( uf_list_p_t list, tag_t obj_id ); uf_list_p_t list Input List of object identifiers. tag_t obj_id Input Object identifier to put into list 功能函数说明 UF_MODL_create_linea

文档评论(0)

ajgoaw + 关注
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档