UG 特征抑制/取消抑制/判断特征是否抑制

 1 std::vector<NXOpen::Features::Feature *> allFeatures;
 2 allFeatures = theSession->Parts()->Work()->Features()->GetFeatures();
 3 
 4 for(int i = 0; i < allFeatures.size(); i++)
 5 {
 6     allFeatures[i]->Suppress();//抑制特征
 7     allFeatures[i]->Unsuppress();//取消抑制
 8     if(allFeatures[i]->Suppressed())
 9     {
10         //特征抑制
11     }
12     else
13     {
14         //特征未抑制
15     }
16 }

 

posted @ 2021-11-05 17:14  刘朋1102  阅读(1040)  评论(0)    收藏  举报