UG\NX CAM二次开发 设置几何体自动毛坯 UF_CAM_set_auto_blank

文章作者:代工
来源网站:NX CAM二次开发专栏


简介:

        UG\NX CAM二次开发 设置几何体自动毛坯 UF_CAM_set_auto_blank

效果:

代码:

void MyClass::do_it(){     
 
 //获取加工环境tag
 tag_t setup_tag=NULL_TAG;
 UF_SETUP_ask_setup(&setup_tag);
 //返回当前工序导航器选中的对象数量和tag
 int count=0;
 tag_t * objects;
 UF_UI_ONT_ask_selected_nodes(&count, &objects);
 double offset [6]={0,0,0,0,0,0}; 
UF_CAM_set_auto_blank(objects[0],UF_CAM_auto_block_type,offset);
//UF_CAM_offset_from_part_type 部件偏置
//UF_CAM_auto_block_type 包容块 
//只能指定几何体
}

猜你喜欢

转载自blog.csdn.net/WangPaiFeiXingYuan/article/details/132840166