From 5946abf896048df437e5de37ad193fc4e6106bb7 Mon Sep 17 00:00:00 2001 From: vsr Date: Mon, 17 Mar 2014 13:53:30 +0400 Subject: [PATCH] 0022513: [CEA 1084] _objref_SMESH_Mesh instance has no attribute 'GetMEDMesh' --- doc/salome/gui/input/using_pluginsmanager.doc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/salome/gui/input/using_pluginsmanager.doc b/doc/salome/gui/input/using_pluginsmanager.doc index 8d9214828..65a76920d 100644 --- a/doc/salome/gui/input/using_pluginsmanager.doc +++ b/doc/salome/gui/input/using_pluginsmanager.doc @@ -163,13 +163,14 @@ Some important methods and objects to use are as follows: to retrieve the salome object from selection. It can be a GEOM, SMESH, or any other module object. - If it is a mesh, then it is possible to call GetMEDMesh() on the object. + If it is a mesh, then it is possible to call methods of the SMESH::SMESH_Mesh interface + on the object, for example GetShapeToMesh(). If it is not a mesh, this call will raise an exception. - So it is possible to write the mesh retrieval in the following way: + So it is possible to write the code retrieving the shape a mesh is built on in the following way: \code mesh = None try: - mesh = salomeObj.GetMEDMesh() + shape = salomeObj.GetShapeToMesh() except: print "The selection is not a mesh" \endcode -- 2.39.2