X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FGEOM%2Finput%2Fgeompy_migration.doc;h=fcac5fb05cc212d218b00be660a7d0f9f1ce48e7;hb=a0e22ed86a0df64143edb095e07295a014b32c88;hp=db0754869bcafd1a86985050cf7f97f3634dcbd6;hpb=6f5fe2aa0f7f59b83ddb12240699db86c5197744;p=modules%2Fgeom.git diff --git a/doc/salome/gui/GEOM/input/geompy_migration.doc b/doc/salome/gui/GEOM/input/geompy_migration.doc index db0754869..fcac5fb05 100644 --- a/doc/salome/gui/GEOM/input/geompy_migration.doc +++ b/doc/salome/gui/GEOM/input/geompy_migration.doc @@ -1,16 +1,16 @@ /*! -\page geompy_migration_page Modifing Geometry Python scripts from SALOME 6 and before +\page geompy_migration_page Modifying Geometry Python scripts from SALOME 6 and before -\n With SALOME 7.2, the Python interface for Geometry has been slightly modified to offer new functionality: +\n In SALOME 7.2, the Python interface for Geometry has been slightly modified to offer new functionality: -\n Scripts generated for SALOME 6 and older versions must be adapted to work in SALOME 7.2 with all functionality. -\n A compatibility mode allows old scripts to work in almost all cases, but with a warning. +\n Scripts generated for SALOME 6 and older versions must be adapted to work in SALOME 7.2 with full functionality. +\n The compatibility mode allows old scripts to work in almost all cases, but with a warning. Salome initialisation must always be done as shown below \n (salome_init() can be invoked safely several times): @@ -20,12 +20,12 @@ salome.salome_init() \endcode Geometry initialisation is modified. -\n old mode: +\n the old mode: \code import geompy geompy.init_geom(theStudy) \endcode -new mode: +\n the new mode: \code import GEOM from salome.geom import geomBuilder @@ -36,8 +36,8 @@ geompy = geomBuilder.New(salome.myStudy) Of course, from geompy import * is no more possible. \n You have to explicitely write geompy.some_method(). -\n Some variables are no longer in namespace geompy.GEOM but in namespace GEOM. -\n All the occurences of geompy.GEOM. can be replaced by GEOM.. +\n Some variables have been transferred from the namespace geompy.GEOM to the namespace GEOM. +\n All occurrences of geompy.GEOM. can be replaced by GEOM.. \n For instance: \code param_polyline = geompy.MakeCurveParametric("t", "sin(t)", "cos(t)", 0., 100., 100, geompy.GEOM.Polyline, theNewMethod=True)