]> SALOME platform Git repositories - modules/smesh.git/blobdiff - src/SMESH_SWIG/SMESH_BuildCompound.py
Salome HOME
Issue 0020701: EDF SMESH : GetName Method of smeshDC.py
[modules/smesh.git] / src / SMESH_SWIG / SMESH_BuildCompound.py
index e82abfa409e4d1b0d198e0206993a0110c7481b7..2ef1446fc79ba32cb51b06d1cd9ec2cdaeafc233 100644 (file)
@@ -29,6 +29,7 @@
 # ! as some sequences of symbols from this example are used during
 # ! documentation generation to identify certain places of this file
 #
+import salome
 import geompy
 import smesh
 
@@ -61,6 +62,8 @@ geompy.addToStudy(Box_sup, "Box_sup")
 geompy.addToStudyInFather(Box_sup, Fsup2, "Fsup")
 geompy.addToStudyInFather(Box_sup, Finf2, "Finf")
 
+smesh.SetCurrentStudy(salome.myStudy)
+
 ## create a bottom mesh
 Mesh_inf = smesh.Mesh(Box_inf, "Mesh_inf")
 algo1D_1=Mesh_inf.Segment()