+
+//--------------------------------------------------------------------------------------
+void removeParameter(const std::shared_ptr<ModelAPI_Document> & thePart,
+ const ParameterPtr & theParameter)
+{
+ FeaturePtr aParam = theParameter->feature();
+ if (aParam) {
+ ModelAPI_ReplaceParameterMessage::send(aParam, 0);
+ thePart->removeFeature(aParam);
+ }
+}