void create_note(double center[3])//坐标注释
{
UF_DISP_refresh();
UF_OBJ_disp_props_t disp;
disp.layer = 201;
disp.color = 186;
disp.blank_status = UF_OBJ_NOT_BLANKED;
disp.line_width = UF_OBJ_WIDTH_NORMAL;
disp.font = 0;
double char_size=5.0;
int hardware = 1;
char msg[256], msg1[256], msg2[256];
sprintf_s(msg, "x:%.0f\ny:%.0f", center[0],center[1]);
center[0] += tempsize[type].D;
center[1] += tempsize[type].D;
center[2] = point[2];
UF_DISP_display_temporary_text(NULL_TAG,UF_DISP_USE_WORK_VIEW,msg,center,UF_DISP_MIDDLELEFT,&disp,char_size,hardware);
}
【UG\NX二次开发】创建临时文本
于 2023-11-09 16:24:55 首次发布