NX二次开发UF_MODL_ask_sweep 函数介绍

76 阅读3分钟

UF_MODL_ask_sweep

Defined in: uf_modl_freeform.h 
int UF_MODL_ask_sweep(tag_t feature_obj_id, UF_STRING_p_t s_guide, UF_STRING_p_t s_section, UF_STRING_p_t s_spine, UF_METHOD_p_t orientation, UF_METHOD_p_t scaling, int * alignment, int * inter, int * body_type, double tol [ 3 ] )

overview 概述

Returns the creation data for a freeform Sweep feature.


返回自由扫描特性的创建数据。

UFUN例子

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

parameters 参数

tag_tfeature_obj_idInputFeature object identifier of sweep
扫描的特征对象标识符
UF_STRING_p_ts_guideOutput to UF_freePointer to the string list structure containing the data defining the guide curves used to create the feature. See structure section of manual for details. Use UF_MODL_free_string_list to deallocate memory.
指向字符串列表结构的指针,该结构包含定义用于创建特性的导向曲线的数据。有关详细信息,请参阅手册的结构部分。使用 UF _ MODL _ free _ string _ list 释放内存。
UF_STRING_p_ts_sectionOutput to UF_freePointer to the string list structure containing the date defining the section curves used to create the feature. See structure section of manual for details. Use UF_MODL_free_string_list to deallocate memory.
指向包含定义用于创建特性的剖面曲线的日期的字符串列表结构的指针。有关详细信息,请参阅手册的结构部分。使用 UF _ MODL _ free _ string _ list 释放内存。
UF_STRING_p_ts_spineOutput to UF_freePointer to the string list structure for the spine string. Use UF_MODL_free_string_list to deallocate memory.
指向脊柱字符串的字符串列表结构的指针。使用 UF _ MODL _ free _ string _ list 释放内存。
UF_METHOD_p_torientationOutputPointer to the orientation list structure. int method Orientation method (for s_guide-> num = 1) 1 = Face normals 2 = Vector direction 3 = Another curve 4 = Fixed (parallel sweep) 5 = A point 6 = Angular law 7 = Forced direction int inter NOT USED tag_t id Base surface (for orientation->method =1) Datum Axis (for orientation->method = 2,7) double value[3] Orientation 3D vector (for orientation->method = 2,7) Orientation 3D point (for orientation->method = 5) Law Function Value (for orientation->method=6) [0] = Angle law function offset [1] = Angle law function scale UF_STRING_p_t s_curve Pointer to curve structure list (for orientation->method = 3 or 6)
指向方向列表结构的指针。方向法(对于 s _ guide-> num = 1)1 = 面法线2 = 矢量方向3 = 另一条曲线4 = 固定(平行扫描)5 = 点6 = 角定律7 = 强迫方向 int interNOTUSED tag _ t id 基准面(方向-> 方法 = 1)基准轴(方向-> 方法 = 2,7)双值[3]方向三维矢量(方向-> 方法 = 2,7)方向三维点(方向-> 方法 = 5)定律函数值(方向-> 方法 = 6)[0] = 角度定律函数偏移量[1] = 角度定律函数刻度 UF _ STRING _ p _ t s _ 曲线指针到曲线结构列表(方向-> 方法 = 3或6)
UF_METHOD_p_tscalingOutputPointer to the scaling list structure. int method Scaling method (for s_guide-> num = 1) 1 = Constant scale 2 = Blended 3 = Another curve 4 = A point 5 = Area law (for s_guide->num = 2) 6 = Scale laterally 7 = Scale uniformly int inter Scale blended interpolation ( for scaling->method = 2) tag_t id NOT USED double value[3] Scale values [0] = Scale factor (for scaling->method = 1) [0-1] = Scale range (for scaling->method = 2) [0-2] = 3D absolute point (for scaling->method = 4) Law Function Value (for scaling->method=5) [0] = Area law function offset [1] = Area law function scale UF_STRING_p_t s_curve Pointer to curve structure list (for scaling->method = 3 or 5)
指向缩放列表结构的指针。标度法(对于 s _ guide-> num = 1)1 = 常量标度2 = 混合3 = 另一条曲线4 = A 点5 = 面积定律(对于 s _ guide-> num = 2)6 = 标度横向7 = 刻度均匀缩放混合插值(缩放-> 方法 = 2) tag _ t id NOT USED 双值[3]缩放值[0] = 缩放因子(缩放-> 方法 = 1)[0-1] = 缩放范围(缩放-> 方法 = 2)[0-2] = 3D 绝对点(缩放-> 方法 = 4)定律函数值(缩放-> 方法 = 5)[0]= 面积定律函数偏移量[1] = 面积定律函数标度 UF _ STRING _ p _ t s _ 曲线指向曲线结构列表(用于缩放-> 方法 = 3或5)
int *alignmentOutputAlignment method: 1 = Parameter 2 = Arc Length
对准方法: 1 = 参数2 = 弧长
int *interOutputInterpolation method (for s_section->num > 1): 1 = Linear 2 = Cubic
插值法(对于 s _ section-> num > 1) : 1 = 线性2 = 三次
int *body_typeOutputType of body: 0 = Sheet 1 = Solid
车身类型: 0 = 表1 = 结实
doubletol [ 3 ]OutputTolerances: [0] = Distance [1] = Angle (in degrees) [2] = Intersection
公差: [0] = 距离[1] = 角度(度)[2] = 交点