- //SessionPtr aMgr = ModelAPI_Session::get();
- //ModelAPI_ValidatorsFactory* aFactory = aMgr->validators();
- //FeaturePtr aFeature = feature();
- //if(aFactory->validate(aFeature)) {
- // aFeature->execute();
- //}
+ if (isForce) {
+ SessionPtr aMgr = ModelAPI_Session::get();
+ ModelAPI_ValidatorsFactory* aFactory = aMgr->validators();
+ FeaturePtr aFeature = feature();
+ if(aFactory->validate(aFeature))
+ aFeature->execute();
+ }