X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_SWIG%2Fsmesh.py;h=9fb73ab1168d82e16a2cda765c513c8f1f69b7d2;hb=f107c3dc690789dd4e03b3cc04c588213c1fe0e8;hp=9cfc32f086efad3cab08eb5de5de77d7c0a285a9;hpb=d6941cf3470c170ead7727966a851e564f027944;p=modules%2Fsmesh.git diff --git a/src/SMESH_SWIG/smesh.py b/src/SMESH_SWIG/smesh.py index 9cfc32f08..9fb73ab11 100644 --- a/src/SMESH_SWIG/smesh.py +++ b/src/SMESH_SWIG/smesh.py @@ -87,28 +87,30 @@ if smesh: print """ =============================================================================== -WARNING: | -Usage of smesh.py is deprecated in SALOME V7.2! | -smesh.py will be removed in a future version! | -TODO: | -The following changes in your scripts are required to avoid this message: | - | -replace | -------- | - | -import smesh, SMESH, SALOMEDS | -smesh.SetCurrentStudy(theStudy) | - | -with | ----- | - | -import SMESH, SALOMEDS | -from salome.smesh import smeshBuilder | -smesh = smeshBuilder.New(theStudy) | - | -you also need to modify some lines where smeshBuilder is used instead of smesh| - | -algo=smesh.xxxx ==> algo.smeshBuilder.xxxx | - | +WARNING: +Usage of smesh.py is deprecated in SALOME V7.2! +smesh.py will be removed in a future version! +TODO: +The following changes in your scripts are required to avoid this message: + +replace +------- + +import smesh, SMESH +smesh.SetCurrentStudy(theStudy) + +with +---- + +import SMESH +from salome.smesh import smeshBuilder +smesh = smeshBuilder.New(salome.myStudy) + +you also need to modify some lines where smeshBuilder is used instead of smesh + +algo=smesh.xxxx ==> algo=smeshBuilder.xxxx + +See also SMESH User's Guide for more details + =============================================================================== """