点击查看详细介绍

用于尺寸标注函数 UF_DRF_object_s 结构体的详细说明

liss28 9年前 5908 43

购买与咨询 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;

5

最新回复 (43)
  • xyq407 9年前
    1

    回复:楼主 想看本例 全部代码,谢谢

  • xyq407 9年前
    2

    想看本例 全部代码,谢谢

  • iorek 9年前
    3

    pmi的东西是一定要关注的

  • qazqaz000 9年前
    4

    一定要关注的一定要关注的

  • cccc163 9年前
    5

    想看本例 全部代码,谢谢

  • zz127118 VIP会员 8年前
    6

    asdfawsssssssssssss

  • q1355188058 8年前
    7

    学习基础。。。。。。。。

  • xbp08301666 8年前
    8

    感谢楼主无私分享!!!

  • bbs1860 8年前
    9

    学习中,谢谢分享!!!

  • wang2006fei 8年前
    10

    回复:楼主好强大的代码!!

  • whd0320 8年前
    11

    该部分隐藏内容需要回复后查看

  • king_chinese VIP会员 8年前
    12

    用于尺寸标注函数 UF_DRF_object_s 结构体的详细说明

  • zby186 VIP会员 8年前
    13

    楼主好强大的代码!!

  • wguitar VIP会员 8年前
    14

    66666666666666666666

  • ymh8425282 8年前
    15

    楼主 想看本例 全部代码,谢谢

请登录后发表新帖