X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_SWIG%2FSMESH_fixation_hexa.py;h=076e13bf264fcc1fd5b5fb1eed919d336f7f961c;hb=ed26bf4db7ca95b5fcb33ee167556f841840b98e;hp=32eb83eb5564cd26a8554d25014899e871ef93bc;hpb=442fd64c19a6e27a339ca36264c15ec91732cf32;p=modules%2Fsmesh.git diff --git a/src/SMESH_SWIG/SMESH_fixation_hexa.py b/src/SMESH_SWIG/SMESH_fixation_hexa.py index 32eb83eb5..076e13bf2 100644 --- a/src/SMESH_SWIG/SMESH_fixation_hexa.py +++ b/src/SMESH_SWIG/SMESH_fixation_hexa.py @@ -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()