Author of the article: OEM
Source website: NX CAM secondary development column
Introduction:
UG\NX CAM secondary development sets the starting point and normal direction of the safety plane UF_CAM_set_auto_blank
Effect:
Code:
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 origin [ 3 ]={0,0,20} ;
double normal [ 3 ]={0,0,1};
UF_CAM_set_clear_plane_data(objects[0],origin,normal);
//只能指定mcs
}