Salome HOME
Merge multi-study removal branch.
[modules/smesh.git] / src / SMESH_SWIG / SMESH_fixation_netgen.py
index ed2c999f4f64480be14a3da4721f4e426ee7b8ac..fbcbc1a18a808d3922d1bc887a8c5679b6c16391 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()
 
 print "-------------------------- create Mesh, algorithm, hypothesis"
 
@@ -76,4 +76,4 @@ if ret != 0:
 else:
     print "problem when computing the mesh"
 
-salome.sg.updateObjBrowser(True)
+salome.sg.updateObjBrowser()