From: dbv Date: Mon, 15 Aug 2016 12:53:32 +0000 (+0300) Subject: Issue #1648: Dump Python in the High Level Parameterized Geometry API X-Git-Tag: V_2.5.0~137^2~54 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d700611df972aa2eeaf353d8b2608c9542ca9680;p=modules%2Fshaper.git Issue #1648: Dump Python in the High Level Parameterized Geometry API Dump for FeaturesAPI_RemoveSubShapes --- diff --git a/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp b/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp index d7418c52b..b5dd098c9 100644 --- a/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp +++ b/src/FeaturesAPI/FeaturesAPI_RemoveSubShapes.cpp @@ -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; - theDumper << aDocName << ".setSubShapesToKeep(" << anAttrSubShapes << ")" << std::endl; + theDumper << aBase << ".setSubShapesToKeep(" << anAttrSubShapes << ")" << std::endl; } //================================================================================================== diff --git a/src/PythonAPI/model/features/__init__.py b/src/PythonAPI/model/features/__init__.py index ad4104ea1..e7ff9b1c5 100644 --- a/src/PythonAPI/model/features/__init__.py +++ b/src/PythonAPI/model/features/__init__.py @@ -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 addIntersection, addPartition +from FeaturesAPI import addIntersection, addPartition, addRemoveSubShapes from FeaturesAPI import addGroup, addRecover