购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008 QQ号:85585969
UF_DRF_object_s数据结构 该结构用于尺寸标注
数据成员
————————————————————————————
object_tag
tag_t object_tag
标签相关的对象取决于object_assoc_type,
对象可能是一个点,线,弧,圆锥,三次样条曲线,曲线,模式,坚实的曲线,实用符号(中心线),注释,或忽略
—————————————————————————————
object_view_tag
tag_t object_view_tag
标签的成员object_tag的视图
——————————————————————————————
object_assoc_type
UF_DRF_assoc_type_t object_assoc_type
UF_DRF_end_point 端点
UF_DRF_arc_center 圆弧
UF_DRF_tangency 相切
UF_DRF_intersection 交点
UF_DRF_dwg_pos 图纸上的点?
UF_DRF_utility_symbol
UF_DRF_on_annotation
UF_DRF_on_stub
—————————————————————————————
object_assoc_modifier
int object_assoc_modifier
对象结合性修饰符
if (object_assoc_type == UF_DRF_end_point)
【object_assoc_modifier=UF_DRF_first_end_point;//起点】
【object_assoc_modifier=UF_DRF_last_end_point; //终点】
if (object_assoc_type == UF_DRF_tangency)
【object_assoc_modifier=0;//参数比例(0 - 100)计算近似切线点对象】
if object_assoc_type = UF_DRF_arc_center
【object_assoc_modifier被忽略】
if object_assoc_type = UF_DRF_intersection
【object_assoc_modifier被忽略】
if object_assoc_type = UF_DRF_dwg_pos
【object_assoc_modifier被忽略】
if object_assoc_type = UF_DRF_utility_symbol
【object_assoc_modifier被忽略】
————————————————————————————————
tag_t object2_tag
- if object_assoc_type = UF_DRF_intersection 【对象必须在视图上】
- if object_assoc_type=UF_DRF_end_point 【object2_tag被忽略】
- if object_assoc_type=UF_DRF_arc_center 【object2_tag被忽略】
- if object_assoc_type=UF_DRF_tangency 【object2_tag被忽略】
- if object_assoc_type=UF_DRF_dwg_pos 【object2_tag被忽略】
- if object_assoc_type=UF_DRF_utility_symbol 【object2_tag被忽略】
——————————————————————————————————
assoc_dwg_pos
double assoc_dwg_pos[ 2 ]

●●●请先
登陆 或
注册 后查看●●●
——————————————————————————
对象数据结构列子
//=========================================
//UF_DRF_object_p_t object;
//可以用 UF_DRF_object_t object[0]; 表示
//========================================
//获得点标识
UF_DRF_object_t object;
/* 初始化的对象结构 */
UF_DRF_init_object_structure(&object);
// 获得点标识
object.object_tag = base_pt_tag1; //点标识
object.object_view_tag = NULL_TAG;
object.object_assoc_type = UF_DRF_end_point;
//========================================
//获得直线上的点标识
UF_DRF_object_t object;
/* 初始化的对象结构 */
UF_DRF_init_object_structure(&object);
/* 获得直线上的点标识 */
object.object_tag = line_tag; //直线标识
object.object_view_tag = NULL_TAG;
object.object_assoc_type = UF_DRF_end_point;
object.object_assoc_modifier = UF_DRF_first_end_point;
//======================================
//获得圆弧上的点标识
UF_DRF_object_t object;
/* 初始化的对象结构 */
UF_DRF_init_object_structure(&object);
//获得圆弧上的点标识
object.object_tag = arc2_tag; //圆弧标识
object.object_view_tag = NULL_TAG;
object.object_assoc_type = UF_DRF_arc_center;
object.object_assoc_modifier = 0;