NX CAM二次开发 UFUN获取当前选择操作名称 UF_UI_ONT_ask_selected_nodes
//libugopenint_cam.lib
#include <uf_ui_ont.h>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
int i = 0, count = 0;
tag_p_t objects = NULL;
UF_UI_ONT_ask_selected_nodes(&count, &objects);
if (0 == count)
{
uc1601("请先选择程序再试.", 1);
return;
}
for (i = 0; i < count; ++i)
{
char ch[31] = "";
UF_OBJ_ask_name(objects[i], ch);
uc1601(ch, 1);
}
UF_free(&objects);
objects = NULL;
UF_terminate();
}