一直在找的安全高度代码,终于找到方法了

 1     //获取当前的UF_SETUP对象
 2     tag_t setupTag = NULL_TAG;
 3     UF_SETUP_ask_setup(&setupTag);
 4 
 5     //获取几何的根组
 6     tag_t rootGeomGroup = NULL_TAG;
 7     UF_SETUP_ask_geom_root(setupTag, &rootGeomGroup);
 8 
 9     //在几何根组下查找名为MCS_MILL的TAG
10     tag_t geomGroupObj = NULL_TAG;
11     UF_NCGROUP_ask_object_of_name(rootGeomGroup, "MCS_MILL", &geomGroupObj);
12 
13     double origin[3] = { 0.0,0.0,100.0 };
14     double normal[3] = { 0.0,0.0,200.0 };
15     int err = UF_CAM_set_clear_plane_data(geomGroupObj, origin, normal);
16     if( err <= 0 )
17     {
18         uc1601("创建成功", 1);
19     }
20     else
21     {
22         char msg[256];
23         UF_get_fail_message(err, msg);
24         uc1601(msg, 1);
25     }
上一篇:UFUN函数 UF_ATTR函数(UF_ATTR_assign ,UF_ATTR_read_value )


下一篇:NX二次开发-UFUN不用UI控件,鼠标选中对象获得tag UF_UI_ask_global_sel_object_list