X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_SWIG%2FSMESH_fixation_netgen.py;fp=src%2FSMESH_SWIG%2FSMESH_fixation_netgen.py;h=ec532d57f7bb69714dbb6a1a422b52cc211f8792;hp=c8c00f67fc0da85e058463ab9655a369fb49eeae;hb=bd7477efc255f965c479d88d1be1ee3dbf4aa760;hpb=90f8a739556fe584f49dc7b2027afd91de3f0066 diff --git a/src/SMESH_SWIG/SMESH_fixation_netgen.py b/src/SMESH_SWIG/SMESH_fixation_netgen.py index c8c00f67f..ec532d57f 100644 --- a/src/SMESH_SWIG/SMESH_fixation_netgen.py +++ b/src/SMESH_SWIG/SMESH_fixation_netgen.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() 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()