From 6c2db92a41188bb3becbd20e1b5dcaeda7099eab Mon Sep 17 00:00:00 2001 From: azv Date: Thu, 5 May 2016 17:34:17 +0300 Subject: [PATCH] Store document in Platine test case for debug purposes --- src/ModelAPI/ModelAPI.i | 1 + src/PythonAPI/examples/Platine.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/ModelAPI/ModelAPI.i b/src/ModelAPI/ModelAPI.i index aaf61bdc4..f05afc1f0 100644 --- a/src/ModelAPI/ModelAPI.i +++ b/src/ModelAPI/ModelAPI.i @@ -101,6 +101,7 @@ %include "ModelAPI_ResultCompSolid.h" // std::list -> [] +%template(StringList) std::list; %template(ObjectList) std::list >; %template(ResultList) std::list >; %template(DocumentList) std::list >; diff --git a/src/PythonAPI/examples/Platine.py b/src/PythonAPI/examples/Platine.py index edec616e0..f037cece4 100644 --- a/src/PythonAPI/examples/Platine.py +++ b/src/PythonAPI/examples/Platine.py @@ -4,6 +4,7 @@ import geom import model +import ModelAPI # Initialisation model.begin() @@ -199,6 +200,11 @@ b3 = body_3() boolean = model.addAddition(part, boolean.result() + b3.result()) model.do() +# START DEBUG PURPOSES +# prepare a study without last operation to trap floating problem with degenerated line +results = ModelAPI.StringList() +ModelAPI.ModelAPI_Session.get().save("/misc/dn48/newgem/azv/testPlatine", results) +# END DEBUG PURPOSES b4 = body_4() boolean = model.addAddition(part, boolean.result() + b4.result()) -- 2.39.2