NX二次开发UF_MODL_ask_general_pad 函数介绍

89 阅读3分钟

UF_MODL_ask_general_pad

Defined in: uf_modl_pads.h 
int UF_MODL_ask_general_pad(tag_t general_pad_tag, UF_MODL_faces_p_t placement_faces, UF_MODL_offset_trans_faces_p_t top_faces, UF_MODL_pocketpad_outline_p_t outline, UF_MODL_parm_p_t placement_radius, UF_MODL_parm_p_t top_radius )

overview 概述

Retrieves the parameters used to create a general pad.


检索用于创建常规垫的参数。

UFUN例子

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

parameters 参数

tag_tgeneral_pad_tagInputObject identifier of the general pad feature whose parameters are to be retrieved.
要检索其参数的通用垫特征的对象标识符。
UF_MODL_faces_p_tplacement_facesOutput to UF_freeThe faces used to define the shape of the pad at the placement faces. The first face is used to determine the target body. The caller must allocate a UF_MODL_faces_t structure and pass a pointer to that structure. This will be filled with allocated data which must be freed by calling UF_MODL_free_general_pad.
用于在放置面上定义焊盘形状的面。第一个面用于确定目标体。调用方必须分配一个 UF _ MODL _ faces _ t 结构并传递一个指向该结构的指针。这将被分配的数据填充,这些数据必须通过调用 UF _ MODL _ free _ general _ pad 来释放。
UF_MODL_offset_trans_faces_p_ttop_facesOutput to UF_freeThe definition of the top of the pad. The top can either be an offset or translation of the specified faces. If the top was an offset or translate of the placement faces, then the UF_MODL_faces_p_t pointer within this structure, points to the placement faces structure. The caller must allocate a UF_MODL_offset_trans_faces_t structure and pass a pointer to that structure. This will be filled with allocated data which must be freed by calling UF_MODL_free_general_pad.
垫子顶部的定义。顶部可以是指定面的偏移量或平移量。如果顶部是放置面的偏移量或平移量,那么该结构中的 UF _ MODL _ faces _ p _ t 指针指向放置面结构。调用方必须分配一个 UF _ MODL _ off _ trans _ faces _ t 结构,并传递一个指向该结构的指针。这将被分配的数据填充,这些数据必须通过调用 UF _ MODL _ free _ general _ pad 来释放。
UF_MODL_pocketpad_outline_p_toutlineOutput to UF_freeThe definition of the curves used to define the shape of the pad. The shape can be defined by a single set of curves at either the placement face or the top face, and then the other curves are derived with a taper angle. The shape can also be defined by specifying curves at both the placement face and the top face. The caller must allocate a UF_MODL_pocketpad_outline_t structure and pass a pointer to that structure. This will be filled with allocated data which must be freed by calling UF_MODL_free_general_pad.
曲线的定义用于定义垫片的形状。这种形状可以在放置面或顶面上由一组曲线定义,然后用锥角导出其他曲线。形状也可以通过在放置面和顶面指定曲线来定义。调用方必须分配一个 UF _ MODL _ pocketpad _ profile _ t 结构,并传递一个指向该结构的指针。这将被分配的数据填充,这些数据必须通过调用 UF _ MODL _ free _ general _ pad 来释放。
UF_MODL_parm_p_tplacement_radiusOutput to UF_freeThe specification of the radius desired between the side of the pad and the placement face. The caller must allocate a UF_MODL_parm_t structure and pass a pointer to that structure. This will be filled with allocated data which must be freed by calling UF_MODL_free_general_pad.
垫片侧面与放置面之间所需半径的规范。调用方必须分配一个 UF _ MODL _ parm _ t 结构并传递一个指向该结构的指针。这将被分配的数据填充,这些数据必须通过调用 UF _ MODL _ free _ general _ pad 来释放。
UF_MODL_parm_p_ttop_radiusOutput to UF_freeThe specification of the radius desired between the side of the pad and the top of the pad. The caller must allocate a UF_MODL_parm_t structure and pass a pointer to that structure. This will be filled with allocated data which must be freed by calling UF_MODL_free_general_pad.
衬垫侧面和衬垫顶部之间所需半径的规范。调用方必须分配一个 UF _ MODL _ parm _ t 结构并传递一个指向该结构的指针。这将被分配的数据填充,这些数据必须通过调用 UF _ MODL _ free _ general _ pad 来释放。