NX9+VS2012 #include <uf.h> #include <uf_ui_ont.h> #include <uf_ui_param.h> #include <uf_ui.h> UF_initialize(); //获取当前加工导航器选中的对象数量和TAG int count = 0; tag_t* objects = NULL_TAG; UF_UI_ONT_ask_selected_nodes(&count, &objects); for (int i = 0; i < count; i++) { //编辑CAM加工对象 int dialog_response = 0; UF_UI_PARAM_edit_object(objects[i], &dialog_response); if (dialog_response == UF_UI_OK) { uc1601("点击确定", 1); } else if (dialog_response == UF_UI_APPLY) { uc1601("点击应用", 1); } else if (dialog_response == UF_UI_BACK) { uc1601("点击返回", 1); } else if (dialog_response == UF_UI_CANCEL) { uc1601("点击取消", 1); } } //释放 UF_free(objects); UF_terminate(); Caesar卢尚宇 2020年5月2日