NX CAM二次开发-UF_SETUP_ask_program_root获得程序组视图的根节点

NX9+VS2012

#include <uf.h>
#include <uf_setup.h>
#include <uf_ui.h>


UF_initialize();

//获取加工设置
tag_t setup_tag = NULL_TAG;
UF_SETUP_ask_setup(&setup_tag);
if (setup_tag == NULL_TAG)
{
    uc1601("提示:请先初始化加工环境", 1);
    return;
}

//获得程序组视图的根节点
tag_t program_group = NULL_TAG;
UF_SETUP_ask_program_root(setup_tag, &program_group);

//打印
char msg[256];
sprintf_s(msg, "%d", program_group);
uc1601(msg, 1);

UF_terminate();

Caesar卢尚宇
2020年5月2日

作者: 阿飞

出处: https://www.cnblogs.com/nxopen2018/>

关于作者:......

如有问题, 可在底部(留言)咨询.

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