示例#1
0
 internal static Snap.NX.Feature CommitFeature(FeatureBuilder featureBuilder)
 {
     if (!Globals.NXOpenWorkPart.Preferences.Modeling.GetHistoryMode())
     {
         throw new InvalidOperationException("SNAP functions cannot create features when NX is in History Free mode. Please switch to History mode");
     }
     return(featureBuilder.CommitFeature());
 }