#include "BuildAPI_SubShapes.h"
+#include <ModelHighAPI_Dumper.h>
#include <ModelHighAPI_Tools.h>
//==================================================================================================
execute();
}
+//==================================================================================================
+void BuildAPI_SubShapes::dump(ModelHighAPI_Dumper& theDumper) const
+{
+ FeaturePtr aBase = feature();
+ std::string aPartName = theDumper.name(aBase->document());
+
+ theDumper << aBase << " = model.addSubShapes(" << aPartName << ", "
+ << aBase->selection(BuildPlugin_SubShapes::BASE_SHAPE_ID()) << ", "
+ << aBase->selectionList(BuildPlugin_SubShapes::SUBSHAPES_ID()) << ")" << std::endl;
+}
+
//==================================================================================================
SubShapesPtr addSubShapes(const std::shared_ptr<ModelAPI_Document>& thePart,
const ModelHighAPI_Selection& theBaseShape,
/// Modify sub-shapes attribute of the feature.
BUILDAPI_EXPORT
void setSubShapes(const std::list<ModelHighAPI_Selection>& theSubShapes);
+
+ /// Dump wrapped feature
+ BUILDAPI_EXPORT
+ virtual void dump(ModelHighAPI_Dumper& theDumper) const;
};
/// Pointer on SubShapes object.