Salome HOME
precise error message
[modules/smesh.git] / src / SMESH_SWIG / SMESH_test1.py
index 25ce49704e3d5f6da65db3b06abec6a0d01b6ac4..bc8278027ca246c6f816c7164a2712bcda6aa53a 100644 (file)
@@ -1,3 +1,4 @@
+#  -*- coding: iso-8859-1 -*-
 #  Copyright (C) 2007-2008  CEA/DEN, EDF R&D, OPEN CASCADE
 #
 #  Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
@@ -26,7 +27,6 @@ import salome
 import geompy
 import smesh
 
-
 # ---- define a box
 
 box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
@@ -59,6 +59,8 @@ idedge = geompy.addToStudyInFather(face, edge, name)
 
 # ---- SMESH
 
+smesh.SetCurrentStudy(salome.myStudy)
+
 # ---- Init a Mesh with the box
 
 mesh = smesh.Mesh(box, "Meshbox")