NX二次开发 UFUN设置对象高亮状态UF_DISP_set_highlight
#include <uf_modl.h>
#include <uf_obj.h>
#include <uf_layer.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
//创建直线
tag_t line_tag = NULL_TAG;
UF_CURVE_line_t line_coords;
line_coords.start_point[0] = 0.0;
line_coords.start_point[1] = 0.0;
line_coords.start_point[2] = 0.0;
line_coords.end_point[0] = 100.0;
line_coords.end_point[1] = 100.0;
line_coords.end_point[2] = 0.0;
UF_CURVE_create_line(&line_coords, &line_tag);
int work_layer = 1;
UF_LAYER_ask_work_layer(&work_layer);//获得工作图层
UF_OBJ_set_layer(line_tag, work_layer);//设置对象图层
UF_OBJ_set_color(line_tag, 186);//设置对象颜色
UF_OBJ_set_blank_status(line_tag, UF_OBJ_NOT_BLANKED);//设置
本文介绍了在NX二次开发中,如何利用UFUN库的UF_DISP_set_highlight函数来改变对象的高亮状态,详细阐述了该函数的使用方法及其在C++编程中的应用。
订阅专栏 解锁全文
613

被折叠的 条评论
为什么被折叠?



