UF_MODL_ask_horz_dime
Defined in: uf_modl.h
int UF_MODL_ask_horz_dime(tag_t feature_obj_id, tag_t constraint, int edit, double fixed [ 2 ] , double feature [ 2 ] , double fixc [ 2 ] , double feac [ 2 ] , char * * how_far, tag_t * tool, tag_t * part )
overview 概述
The routine UF_MODL_ask_horz_dime returns the values associated to the horizontal dimension constraint. All coordinates are with respect to the dimension plane, therefore there are only two values (x,y).
Using UF_MODL_ask_constraints and UF_MODL_ask_constraint_type, find the feature's "LINK_FACE_PARMS" constraint. Use this constraint tag as the "link_face_parms" input argument to the function UF_MODL_ask_link_face_plane to obtain the dimension plane coordinate system.
例程 UF _ MODL _ ask _ horz _ dime 返回与水平维度约束相关联的值。所有坐标都相对于维面,因此只有两个值(x,y)。使用 UF _ MODL _ ask _ limit 和 UF _ MODL _ ask _ limit _ type,查找特性的“ LINK _ FACE _ PARMS”约束。使用这个约束标记作为函数 UF _ MODL _ ask _ link _ face _ lane 的“ link _ face _ parms”输入参数,以获得维度平面坐标系。
UFUN例子
获取源码例子请搜索 里海NX二次开发3000例专栏
parameters 参数
| tag_t | feature_obj_id | Input | Identifier for the feature. 特性的标识符。 |
| tag_t | constraint | Input | Identifier for constraint 约束的标识符 |
| int | edit | Input | This is an unused flag. It used to determine whether to return the right-hand side or both sides of an expression. Currently, both sides of an expression are returned. 这是一个未使用的标志。它用于确定是返回表达式的右边还是两边。当前,表达式的两边都返回。 |
| double | fixed [ 2 ] | Output | Dimension attachment point on the part 零件上的尺寸连接点 |
| double | feature [ 2 ] | Output | Dimension attachment point on the feature 特征上的尺寸连接点 |
| double | fixc [ 2 ] | Output | Center of arc if attachment point is tangent to arc edge on part, otherwise it is the same as the fixed point. 如果附着点与零件上的圆弧边相切,则为圆弧中心,否则与定点相同。 |
| double | feac [ 2 ] | Output | Center of arc if attachment point is tangent to arc edge on feature, otherwise it is the same as the feature point. 如果附着点与特征上的圆弧边相切,则为圆弧中心,否则与特征点相同。 |
| char * * | how_far | Output to UF_free | Expression distance. This must be freed by calling UF_free. 表达式距离。这必须通过调用 UF _ free 来释放。 |
| tag_t * | tool | Output | Edge on the tool or NULL_TAG for centerline 工具上的边缘或中心线的 NULL _ TAG |
| tag_t * | part | Output | Edge on the part 边缘部分 |