Salome HOME
Merge multi-study removal branch.
[modules/smesh.git] / src / SMESH_SWIG / SMESH_fixation_hexa.py
index 7d9245c3b5f908379f52129fed7dcb0f284fbde5..0f464cf4259c10df0c3a05d41b8f025daa30f794 100644 (file)
@@ -30,7 +30,7 @@ import SMESH_fixation
 
 import SMESH, SALOMEDS
 from salome.smesh import smeshBuilder
-smesh =  smeshBuilder.New(salome.myStudy)
+smesh =  smeshBuilder.New()
 
 compshell = SMESH_fixation.compshell
 idcomp = SMESH_fixation.idcomp
@@ -50,7 +50,7 @@ status = geompy.CheckShape(compshell)
 print " check status ", status
 
 ### ---------------------------- SMESH --------------------------------------
-smesh.SetCurrentStudy(salome.myStudy)
+smesh.UpdateStudy()
 
 # ---- init a Mesh with the compshell
 shape_mesh = salome.IDToObject( idcomp  )
@@ -99,4 +99,4 @@ if ret != 0:
 else:
     print "problem when Computing the mesh"
 
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()