Salome HOME
0020623: EDF 1209 SMESH: Load script/execfile add the objects in the wrong study
[modules/smesh.git] / src / SMESH_SWIG / ex01_cube2build.py
index 34bb6e39d575338774e82cd4fb08e9ce8a468f58..3c1da5aabeac4e0041d68e8b45f33a985201cf4e 100644 (file)
@@ -287,6 +287,8 @@ piece_id = addToStudy(piece, "ex01_cube2build")
 # Meshing
 # =======
 
+smesh.SetCurrentStudy(salome.myStudy)
+
 # Create hexahedrical mesh on piece
 # ---------------------------------