NX二次开发-UFUN参数选择对话框UF_UI_select_parameters

 1 #include <uf.h>
 2 #include <uf_ui.h>
 3 #include <uf_modl.h>
 4 
 5 
 6 UF_initialize();
 7 
 8 //参数选择对话框
 9 UF_FEATURE_SIGN sign = UF_NULLSIGN;
10 double dBlockOrig[3] = { 0.0, 0.0, 0.0 };
11 char* sBlockLengh[3] = { "1", "2", "3" };
12 tag_t tBlockObj;
13 char sMessage[] = "参数选择对话框";
14 int iCount;
15 tag_t* atExp;
16 int iResponse;
17 UF_MODL_create_block1(sign, dBlockOrig, sBlockLengh, &tBlockObj);
18 UF_UI_select_parameters(sMessage, tBlockObj, &iCount, &atExp, &iResponse);
19 UF_free(atExp);
20 
21 UF_terminate();
22 
23 Caesar卢尚宇
24 2019年7月1日

原文地址:https://www.cnblogs.com/nxopen2018/p/11116303.html