NX二次开发UF_WAVE_set_link_region_data 函数介绍

152 阅读3分钟

UF_WAVE_set_link_region_data

Defined in: uf_wave.h 
int UF_WAVE_set_link_region_data(const tag_t linked_feature, const int n_seed_faces, const tag_t * seed_faces, const int n_boundary_faces, const tag_t * boundary_faces, const tag_t xform, const logical update_at_timestamp, const logical traverse_interior_edges, const logical delete_openings )

overview 概述

Sets the seed faces, boundary faces, xform and traverse_interior_edges and delete_openings logicals of a linked region feature. This reparents it if the faces are changed. n_seed_faces is the length of the array seed_faces, which gives the new seed faces for the region feature. n_boundary_faces is the length of the array boundary_faces, which gives the new boundary faces for the region feature. All faces in the input arrays have to be in the same body, which need not be in the same part as the previous sources of the feature. The part containing the body is fully loaded if it is not already fully loaded. The xform can be set to NULL_TAG or any assy_ctxt_xform in the same part as the linked_feature whose to_part_occ contains the body. If n_seed_faces and n_boundary_faces are both 0, the feature's link is broken (and xform must also be NULL_TAG). This also accepts the link as broken. The update_at_timestamp argument sets the update behavior of the feature, in the same way as it does when a linked feature is created. It is ignored if the link is being broken. At present, there must only be one face in the seed_faces array, unless the link is being broken.


设置连接区域特征的种子面、边界面、 xform 和 traverse _ inside _ edge 以及 delete _ open 逻辑。如果面孔改变了,它就会重生。N _ eed _ faces 是数组籽面的长度,它为区域特征提供了新的籽面。N- 边界面是数组边界面的长度,它为区域特征提供了新的边界面。输入数组中的所有面都必须位于同一个主体中,而这个主体不需要位于特征的前一个源的同一部分中。如果包含主体的部分尚未满载,则该部分已满载。可以将 xform 设置为 NULL _ TAG 或任何 assy _ ctxt _ xform,将其与包含主体的 to _ part _ occ 的 link _ Feature 设置为相同的部分。如果 n _ eed _ faces 和 n _ edge _ faces 都为0,则特性的链接将断开(xform 也必须为 NULL _ TAG)。这也接受链接断开。Update _ at _ time戳参数设置特性的更新行为,其方式与创建链接特性时的方式相同。如果链接被中断,则忽略它。目前,籽 _ faces 数组中必须只有一个 face,除非链接被中断。

UFUN例子

获取源码例子请搜索 里海NX二次开发3000例专栏

parameters 参数

const tag_tlinked_featureInputThe linked region feature whose properties are to be set.
要设置其属性的链接区域特性。
const intn_seed_facesInputThe number of seed faces; can be 0, in which case the link is broken.
种子面的数目; 可以是0,在这种情况下链接被破坏。
const tag_t *seed_facesInputThe array of seed faces.
种子面阵列。
const intn_boundary_facesInputThe number of boundary faces.
边界面的数目。
const tag_t *boundary_facesInputThe array of boundary faces.
边界面的数组。
const tag_txformInputThe new transform which determines the position of the linked region feature relative to its source geometry. Must be NULL_TAG (identity transform) or an assy_ctxt_xform in the same part as linked_feature.
确定连接区域特征相对于其源几何形状的位置的新变换。必须是 NULL _ TAG (身份转换)或与 link _ Feature 相同部分中的 assy _ ctxt _ xform。
const logicalupdate_at_timestampInputIf true, the linked region feature now updates at its timestamp. If false, the feature now updates after its source geometry has updated.
如果为 true,则链接区域特性现在将在其时间戳处更新。如果为 false,那么该特性将在其源几何图形更新之后进行更新。
const logicaltraverse_interior_edgesInputIf true, the traversal algorithm now pass es through holes in the body; if false, it now only passes over the outside surface of the body.
如果为真,遍历算法现在通过身体中的孔; 如果为假,它现在只通过身体的外表面。
const logicaldelete_openingsInputIf true, any holes in the resulting sheet are now closed up, if false they are now left.
如果为真,则结果表中的任何漏洞现在都已关闭,如果为假,则留下它们。