X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FGEOM%2Finput%2Fgeompy_migration.doc;h=fcac5fb05cc212d218b00be660a7d0f9f1ce48e7;hb=97d9c2c6b1eb1b8c37b74e9409ebdb89c42c8c27;hp=d0af5c85e0a52652e03db51e9fc141e52c62c098;hpb=74c2e02ab17e41c38dcb91ad0e1319419f397408;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 d0af5c85e..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 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)