OPENC函数UF_UI_ONT UF_OPER (过切检查) (UF_OPER_is_path_gouged)

 1     UF_initialize();
 2 
 3     int count=0;
 4     tag_t *objects=NULL;
 5     logical result=false;
 6     //选择节点
 7     UF_UI_ONT_ask_selected_nodes(&count,&objects);
 8     UF_UI_open_listing_window();
 9     for (int i=0;i<count;i++)
10     {
11         //过切检查
12         UF_OPER_is_path_gouged (objects[i],&result);
13         if (result==true)
14         {
15             UF_UI_write_listing_window("发现过切
");
16         } 
17         else
18         {
19             UF_UI_write_listing_window("未发现过切
");
20         }
21     }
22 
23 
24 
25     UF_terminate();

原文地址:https://www.cnblogs.com/zzyfym/p/12118124.html