+ static Model_ValidatorsFactory* aValidators =
+ static_cast<Model_ValidatorsFactory*>(ModelAPI_Session::get()->validators());
+
+ std::shared_ptr<ModelAPI_Data> aData = theFeature->data();
+ // "Action" features has no data, but still valid. e.g "Remove Part"
+ if (!aData->isValid()) {
+ if (!theFeature->isAction())
+ theError = "There is no data.";
+ return theFeature->isAction();
+ }