X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FSMESH%2Finput%2Fsmesh_migration.rst;h=dad99f4bf571f2ccb255e506c847bb26631f851a;hp=5a2202486c227ca283c9222df3ff27723e4114b3;hb=3f36e2f8be3687a5c1b48595f878df46c4d81e74;hpb=f513b3c72c0c9c1a0c68bae34813cb41ac6fdcd5 diff --git a/doc/salome/gui/SMESH/input/smesh_migration.rst b/doc/salome/gui/SMESH/input/smesh_migration.rst index 5a2202486..dad99f4bf 100644 --- a/doc/salome/gui/SMESH/input/smesh_migration.rst +++ b/doc/salome/gui/SMESH/input/smesh_migration.rst @@ -1,8 +1,8 @@ .. _smesh_migration_page: -***************************************************** -Modifing Mesh Python scripts from SALOME 6 and before -***************************************************** +****************************************************** +Modifying Mesh Python scripts from SALOME 6 and before +****************************************************** In SALOME 7.2, the Python interface for Mesh has been slightly modified to offer new functionality: @@ -10,6 +10,9 @@ In SALOME 7.2, the Python interface for Mesh has been slightly modified to offer Scripts generated for SALOME 6 and older versions must be adapted to work in SALOME 7.2 with full functionality. The compatibility mode allows old scripts to work in almost all cases, but with a warning. +See also *"Modifying Geometry Python scripts from SALOME 6 and before"* page in the Geometry module's +User Guide. + * **Salome initialisation** must always be done as shown below. (*salome_init()* can be invoked safely several times):: @@ -28,12 +31,12 @@ The compatibility mode allows old scripts to work in almost all cases, but with import SMESH, SALOMEDS from salome.smesh import smeshBuilder - smesh = smeshBuilder.New(salome.myStudy) + smesh = smeshBuilder.New() * Of course, **from smesh import** * is **no more possible.** - You have to explicitely write *smesh.some_method()*. + You have to explicitly write *smesh.some_method()*. * All **algorithms** have been transferred from the namespace *smesh* to the namespace *smeshBuilder*. @@ -84,7 +87,7 @@ The compatibility mode allows old scripts to work in almost all cases, but with Compound1 = smesh.Concatenate([Mesh_inf.GetMesh(), Mesh_sup.GetMesh()], 0, 1, 1e-05) -* If you need to **import a SMESH Plugin** explicitely, keep in mind that they are now located in separate namespaces. +* If you need to **import a SMESH Plugin** explicitly, keep in mind that they are now located in separate namespaces. For instance::