NX CAM二次开发-UF_OPER_ask_oper_type查询指定操作的子类型

NX9+VS2012

#include <uf.h>
#include <uf_ui.h>
#include <uf_ui_ont.h>
#include <uf_oper.h>
#include <uf_obj.h>


UF_initialize();

//获取当前加工导航器选中的对象数量和TAG
int count = 0;
tag_t* objects = NULL_TAG;
UF_UI_ONT_ask_selected_nodes(&count, &objects);

UF_UI_open_listing_window();
for (int i = 0; i < count; i++)
{
    //查询指定操作的子类型
    int type = 0;
    UF_OPER_ask_oper_type(objects[i], &type);

    //打印
    char msg[256];
    sprintf_s(msg, "%d", type);
    UF_UI_write_listing_window(msg);
}

//释放
UF_free(objects);

UF_terminate();

Caesar卢尚宇
2020年5月21日

作者: 阿飞

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

关于作者:......

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

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