X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_PythonDump.cxx;fp=src%2FSMESH_I%2FSMESH_PythonDump.cxx;h=6fbf726b7285ae0ebd8f0469abb00e6e8a842a4d;hb=4cd676f92c936b15ce41a4f7168a9dcd18e92773;hp=4b48c7bebb1270764bdc84c96d4438b42ce45cfc;hpb=0a237be4b91b6db526b340c534f40a385d6d65ab;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_PythonDump.cxx b/src/SMESH_I/SMESH_PythonDump.cxx index 4b48c7beb..6fbf726b7 100644 --- a/src/SMESH_I/SMESH_PythonDump.cxx +++ b/src/SMESH_I/SMESH_PythonDump.cxx @@ -1002,13 +1002,16 @@ TCollection_AsciiString SMESH_Gen_i::DumpPython_impl const TCollection_AsciiString anOldGen ( SMESH::TPythonDump::SMESHGenName() ); const TCollection_AsciiString helper; // to comfortably append C strings to TCollection_AsciiString const TCollection_AsciiString tab( isMultiFile ? "\t" : "" ), nt = helper + "\n" + tab; - + TCollection_AsciiString optionalComment; + std::list< TCollection_AsciiString > lines; // lines of a script std::list< TCollection_AsciiString >::iterator linesIt; lines.push_back( aSMESHGen + " = smeshBuilder.New()" ); - if ( !isPublished ) - lines.push_back( aSMESHGen + ".SetEnablePublish( False )" ); + if ( isPublished ) + optionalComment = helper + "#"; + lines.push_back( optionalComment + aSMESHGen + ".SetEnablePublish( False ) # Set to False to avoid publish in study if not needed or in some particular situations:" ); + lines.push_back( " # multiples meshes built in parallel, complex and numerous mesh edition (performance)" ); lines.push_back( helper + "aFilterManager = " + aSMESHGen + ".CreateFilterManager()" ); lines.push_back( helper + "aMeasurements = " + aSMESHGen + ".CreateMeasurements()" );