From f3d4f2a2966659d0c6bb78a19c1c618cb3f5bde3 Mon Sep 17 00:00:00 2001 From: dbv Date: Tue, 25 Sep 2018 15:06:44 +0300 Subject: [PATCH] Fixed checkPythonDump() --- src/ModelHighAPI/ModelHighAPI_Tools.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2