点击查看详细介绍

UG二次开发---Draft模式中怎样Add Baseview?

zengshengqu 19年前 14454 3

购买与咨询 NX 二次开发视频教程,请联系微信号:13890821008  QQ号:85585969  


进入二维图,要创建一个base view(如主视图,俯视图等),我查了document里面的函数
如extern int UF_DRAW_add_auxiliary_view (
const tag_t drawing_tag,
const tag_t parent_view_tag,
const tag_t hinge_line_tag,
double dwg_reference_point[ 2 ],
tag_t * aux_view_tag );
都有一个parent_view_tag, 但是要新创建一个base view,没有parent_view_tag啊?
请教怎么解决,有没有其他的函数或者方法创建一个base view!

0

最新回复 (3)
  • gao264 19年前
    1

    Help里这不都有自带例子的嘛,没有视图先用UF_DRAW_add_orthographic_view加

  • zengshengqu 19年前
    2

    /*
    The code in the following example creates an orthographic view.
    */

    #include

  • ice-snow 18年前
    3

    要首次添加一个视图可以用uc6481或者UF_DRAW_import_view:
    uc6481 add view to drawing

    extern int uc6481 (
    const char * dwg_name,
    const char * view_name,
    const double * reference_pt,
    const int view_status );


    UF_DRAW_import_view

    extern int UF_DRAW_import_view (
    const tag_t drawing_tag,
    const tag_t view_tag,
    double dwg_reference_point[ 2 ],
    UF_DRAW_view_info_t * view_info,
    tag_t * draw_view_tag );

    以下是帮助文档给出的例子:
    /*
    This example imports the BOTTOM view onto the drawing as an
    active view, with a scale of 1.0, no anchor point.

请登录后发表新帖