Salome HOME
Issue #1834: Fix length of lines
[modules/shaper.git] / src / BuildAPI / BuildAPI_Shell.cpp
index 86151b4cfffabe3f5bb292062cfaf23db19293d4..0e825e40efd28f5326e82af39997c7fda8c05653 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "BuildAPI_Shell.h"
 
+#include <ModelHighAPI_Dumper.h>
 #include <ModelHighAPI_Tools.h>
 
 //==================================================================================================
@@ -39,6 +40,16 @@ void BuildAPI_Shell::setBase(const std::list<ModelHighAPI_Selection>& theBaseObj
   execute();
 }
 
+//==================================================================================================
+void BuildAPI_Shell::dump(ModelHighAPI_Dumper& theDumper) const
+{
+  FeaturePtr aBase = feature();
+  std::string aPartName = theDumper.name(aBase->document());
+
+  theDumper << aBase << " = model.addShell(" << aPartName << ", "
+    << aBase->selectionList(BuildPlugin_Shell::BASE_OBJECTS_ID()) << ")" << std::endl;
+}
+
 //==================================================================================================
 ShellPtr addShell(const std::shared_ptr<ModelAPI_Document>& thePart,
                   const std::list<ModelHighAPI_Selection>& theBaseObjects)