点击查看详细介绍

制图设置视图可见线和隐藏线的颜色、线宽、线形

nxopen 21天前 71 1

UG NX 二次开发(C、C#、WPF)技术交流群:641226372      UG二次开发(C、C#、WPF)


//设置视图可见线和隐藏线
void SetViewVisibleHiddenLine(tag_t viewTag, bool isShowHiddenLine, int visibleHcolor, int hiddenHcolor)
{
    UF_DRAW_view_prfs_t view_parms;
    UF_DRAW_ask_view_display(viewTag, &view_parms);

    view_parms.smooth=UF_DRAW_smooth_on;//开启光顺边
    if (visibleHcolor>-1) 
    {
        view_parms.visible_line_color = visibleHcolor;            //可见线颜色
        view_parms.smooth_edge_color = visibleHcolor;            //光顺边颜色
    }
    view_parms.visible_line_width = UF_OBJ_WIDTH_THIN;       //可见线线宽
    view_parms.visible_line_font = UF_OBJ_FONT_SOLID;        //可见线实线
    view_parms.smooth_edge_width = UF_OBJ_WIDTH_THIN;        //光顺边线宽
    view_parms.smooth_edge_font  = UF_OBJ_FONT_SOLID;        //光顺边实线
    view_parms.hidden_line = UF_DRAW_hidden_line_removal_on;

●●●请先 登陆注册 后查看●●●

    tag_t drawTag = NULL_TAG;
    UF_DRAW_ask_current_drawing(&drawTag);
    if (drawTag != NULL_TAG)
        UF_DRAW_update_one_view(drawTag, viewTag); //更新视图显示

}




0

最新回复 (1)
  • 熊武强 11天前
    1

    好东西,学习一下

请登录后发表新帖