]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1648: Dump Python in the High Level Parameterized Geometry API
authordbv <dbv@opencascade.com>
Mon, 15 Aug 2016 12:53:32 +0000 (15:53 +0300)
committerdbv <dbv@opencascade.com>
Mon, 15 Aug 2016 12:54:25 +0000 (15:54 +0300)
Dump for FeaturesAPI_RemoveSubShapes

src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp
src/PythonAPI/model/features/__init__.py

index d7418c52bffac018a719cb7c9278525df1d64ab3..b5dd098c9be008baecb2bddc73c25b53e700a9ed 100644 (file)
@@ -60,7 +60,7 @@ void FeaturesAPI_RemoveSubShapes::dump(ModelHighAPI_Dumper& theDumper) const
   AttributeSelectionListPtr anAttrSubShapes = aBase->selectionList(FeaturesPlugin_RemoveSubShapes::SUBSHAPES_ID());
 
   theDumper << aBase << " = model.addRemoveSubShapes(" << aDocName << ", " << anAttrBaseShape << ")" << std::endl;
   AttributeSelectionListPtr anAttrSubShapes = aBase->selectionList(FeaturesPlugin_RemoveSubShapes::SUBSHAPES_ID());
 
   theDumper << aBase << " = model.addRemoveSubShapes(" << aDocName << ", " << anAttrBaseShape << ")" << std::endl;
-  theDumper << aDocName << ".setSubShapesToKeep(" << anAttrSubShapes << ")" << std::endl;
+  theDumper << aBase << ".setSubShapesToKeep(" << anAttrSubShapes << ")" << std::endl;
 }
 
 //==================================================================================================
 }
 
 //==================================================================================================
index ad4104ea13a0151685b76f87d4b0ac7785476c81..e7ff9b1c5ba5000a4134fed34c28e3578ebd0ac1 100644 (file)
@@ -6,5 +6,5 @@ from FeaturesAPI import addExtrusion, addExtrusionCut, addExtrusionFuse
 from FeaturesAPI import addRevolution, addRevolutionCut, addRevolutionFuse
 from FeaturesAPI import addPipe
 from FeaturesAPI import addCut, addFuse, addCommon, addSmash, addFill
 from FeaturesAPI import addRevolution, addRevolutionCut, addRevolutionFuse
 from FeaturesAPI import addPipe
 from FeaturesAPI import addCut, addFuse, addCommon, addSmash, addFill
-from FeaturesAPI import addIntersection, addPartition
+from FeaturesAPI import addIntersection, addPartition, addRemoveSubShapes
 from FeaturesAPI import addGroup, addRecover
 from FeaturesAPI import addGroup, addRecover