From: dbv Date: Tue, 25 Sep 2018 12:06:44 +0000 (+0300) Subject: Fixed checkPythonDump() X-Git-Tag: V9_2_0a1~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f3d4f2a2966659d0c6bb78a19c1c618cb3f5bde3;p=modules%2Fshaper.git Fixed checkPythonDump() --- diff --git a/src/ModelHighAPI/ModelHighAPI_Tools.cpp b/src/ModelHighAPI/ModelHighAPI_Tools.cpp index 58e9748f1..dc328a5f6 100644 --- a/src/ModelHighAPI/ModelHighAPI_Tools.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Tools.cpp @@ -457,7 +457,7 @@ typedef std::map > static bool dumpToPython(SessionPtr theSession, const char* theFilename, - bool theDumpByGeom, + const char* theSelectionType, const std::string& theErrorMsgContext) { // 2431: set PartSet as a current document @@ -468,7 +468,7 @@ static bool dumpToPython(SessionPtr theSession, if (aDump.get()) { aDump->string("file_path")->setValue(theFilename); aDump->string("file_format")->setValue("py"); - aDump->boolean("geometric_dump")->setValue(theDumpByGeom); + aDump->string("selection_type")->setValue(theSelectionType); aDump->execute(); } bool isProblem = !aDump.get() || !aDump->error().empty(); // after "finish" dump will be removed @@ -521,10 +521,10 @@ bool checkPythonDump() SessionPtr aSession = ModelAPI_Session::get(); // dump with the selection by names - if (!dumpToPython(aSession, aFileForNamingDump, false, anErrorByNaming)) + if (!dumpToPython(aSession, aFileForNamingDump, "topological_naming", anErrorByNaming)) return false; // dump with the selection by geometry - if (!dumpToPython(aSession, aFileForGeometryDump, true, anErrorByGeometry)) + if (!dumpToPython(aSession, aFileForGeometryDump, "geometric_selection", anErrorByGeometry)) return false; // map from document name to feature name to feature data