Salome HOME
precise error message
[modules/smesh.git] / src / SMESH_SWIG / SMESH_demo_hexa2_upd.py
index 245fccec4b652631dff625b1484dcb6d67e0c855..ba48f57f6ea79a3efc8195e624400176345c6e22 100755 (executable)
@@ -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,
@@ -123,6 +124,7 @@ for i in range(8):
     idEdgeZ.append(geompy.addToStudyInFather(vol,edgeZ[i],"EdgeZ"+str(i+1)))
 
 ### ---------------------------- SMESH --------------------------------------
+smesh.SetCurrentStudy(salome.myStudy)
 
 # ---- init a Mesh with the volume