Salome HOME
Install tests.set
[modules/smesh.git] / src / SMESH_SWIG / SMESH_fixation_netgen.py
index a002f3c20f518384c4471d3a48c7418f480e09f7..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(1)
+salome.sg.updateObjBrowser()