Salome HOME
0021375: EDF 1671 SMESH: Dump study of current state
authoreap <eap@opencascade.com>
Thu, 9 Feb 2012 13:18:11 +0000 (13:18 +0000)
committereap <eap@opencascade.com>
Thu, 9 Feb 2012 13:18:11 +0000 (13:18 +0000)
+    def SetDumpPythonHistorical(self, isHistorical):

src/SMESH_SWIG/smeshDC.py

index 50bd078cba814ea65c712ef1d8a089a877e6bb56..5fb8e044cf31268eeff1bddc4133e09948e3d7b9 100644 (file)
@@ -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):