Events_InfoMessage& theError) const
{
FeaturePtr aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(theAttribute->owner());
- ResultParameterPtr aParam =
- std::dynamic_pointer_cast<ModelAPI_ResultParameter>(aFeature->firstResult());
AttributeStringPtr aStrAttr =
std::dynamic_pointer_cast<ModelAPI_AttributeString>(theAttribute);
return false;
}
- if (!aParam.get()) {
- theError = "Result is empty.";
- return false;
- }
-
theError = aFeature->string(ParametersPlugin_Parameter::EXPRESSION_ERROR_ID())->value();
return theError.empty();
}