Salome HOME
Python test scripts, first pass
[modules/hydro.git] / doc / salome / examples / h013_caseDigueManualMesh.py
index 48f1e6920c26413e177e76067d91f6ed657ade24..a21a2800d574d766f8787bb4e33ef3a9950c9d59 100644 (file)
@@ -17,7 +17,7 @@ from HYDROPy import *
 from PyQt5.QtCore import *
 from PyQt5.QtGui import *
 
-hydro_doc = HYDROData_Document.Document( theStudy._get_StudyId() )
+hydro_doc = HYDROData_Document.Document()
 
 hydro_doc.SetLocalCS( 430000, 6.35e+06 )
 
@@ -387,7 +387,7 @@ garonne_1_riveGauche.SetName("garonne_1_riveGauche")
 garonne_1_digue.SetName("garonne_1_digue")
 
 # Export of the calculation case
-garonne_1_entry = garonne_1.Export( theStudy._get_StudyId() )
+garonne_1_entry = garonne_1.Export()
 
 #----------------------
 # --- Geometry
@@ -400,7 +400,7 @@ import math
 import SALOMEDS
 from salome.hydrotools.controls import controlGeomProps
 
-geompy = geomBuilder.New(theStudy)
+geompy = geomBuilder.New()
 
 print("Entry:", garonne_1_entry)
 HYDRO_garonne_1 = salome.IDToObject( str( garonne_1_entry ) )
@@ -486,7 +486,7 @@ from salome.smesh import smeshBuilder
 from salome.hydrotools.controls import controlMeshStats, controlSubMeshStats
 import tempfile
 
-smesh = smeshBuilder.New(theStudy)
+smesh = smeshBuilder.New()
 
 # --- algorithms and hypothesis
 garonne_1 = smesh.Mesh(HYDRO_garonne_1)
@@ -585,4 +585,4 @@ controlSubMeshStats(riveGauche_1, 6585)
 controlSubMeshStats(digue_1, 832)
 
 if salome.sg.hasDesktop():
-  salome.sg.updateObjBrowser(1)
+  salome.sg.updateObjBrowser()