From ebc415d946b98915f91c71a96c7e555969e46e6d Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 9 Feb 2012 13:18:11 +0000 Subject: [PATCH] 0021375: EDF 1671 SMESH: Dump study of current state + def SetDumpPythonHistorical(self, isHistorical): --- src/SMESH_SWIG/smeshDC.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/SMESH_SWIG/smeshDC.py b/src/SMESH_SWIG/smeshDC.py index 50bd078cb..5fb8e044c 100644 --- a/src/SMESH_SWIG/smeshDC.py +++ b/src/SMESH_SWIG/smeshDC.py @@ -540,6 +540,16 @@ class smeshDC(SMESH._objref_SMESH_Gen): def DumpPython(self, theStudy, theIsPublished=True, theIsMultiFile=True): return SMESH._objref_SMESH_Gen.DumpPython(self, theStudy, theIsPublished, theIsMultiFile) + ## Set mode of DumpPython(), \a historical or \a snapshot. + # In the \a historical mode, the Python Dump script includes all commands + # performed by SMESH engine. In the \a snapshot mode, commands + # relating to objects removed from the Study are excluded from the script + # as well as commands not influencing the current state of meshes + def SetDumpPythonHistorical(self, isHistorical): + if isHistorical: val = "true" + else: val = "false" + SMESH._objref_SMESH_Gen.SetOption(self, "historical_python_dump", val) + ## Sets the current study and Geometry component # @ingroup l1_auxiliary def init_smesh(self,theStudy,geompyD):