文章作者:代工
来源网站:NX CAM二次开发专栏
简介:
UG\NX CAM二次开发 查询工序所在的几何组TAG UF_OPER_ask_geom_group
效果:
代码:
void MyClass::do_it()
{ int count=0;tag_t * objects;UF_UI_ONT_ask_selected_nodes(&count, &objects);for (int i=0; i<count; i++){tag_t operTag = objects[i];//获取操作的刀具tag_t toolGroup=NULL_TAG;UF_OPER_ask_cutter_group(operTag, &toolGroup);char name[130];UF_OBJ_ask_name(toolGroup, name);print(name);//获取操作的几何体tag_t geomGroup=NULL_TAG;UF_OPER_ask_geom_group(operTag, &geomGroup);UF_OBJ_ask_name(geomGroup, name);print(name);//获取操作