X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers_I%2FStdMeshers_Deflection1D_i.cxx;h=72a715d81e5e187680547ef54cfa57a9f3d13307;hp=0f3f4a942e7a122538cd0b9fd41a2eda66f03f02;hb=71d173d51a36d3a3ad7b51972b5be88c2df9865e;hpb=ea3e3193e3d50a44a4b3a069fc4fc1239c22f27b diff --git a/src/StdMeshers_I/StdMeshers_Deflection1D_i.cxx b/src/StdMeshers_I/StdMeshers_Deflection1D_i.cxx index 0f3f4a942..72a715d81 100644 --- a/src/StdMeshers_I/StdMeshers_Deflection1D_i.cxx +++ b/src/StdMeshers_I/StdMeshers_Deflection1D_i.cxx @@ -31,6 +31,7 @@ using namespace std; #include "StdMeshers_Deflection1D_i.hxx" #include "SMESH_Gen_i.hxx" #include "SMESH_Gen.hxx" +#include "SMESH_PythonDump.hxx" #include "Utils_CorbaException.hxx" #include "utilities.h" @@ -92,11 +93,7 @@ void StdMeshers_Deflection1D_i::SetDeflection( CORBA::Double theValue ) } // Update Python script - TCollection_AsciiString aStr, aStrVal ((double)theValue); - SMESH_Gen_i::AddObject(aStr, _this()) += ".SetDeflection("; - aStr += aStrVal + ")"; - - SMESH_Gen_i::AddToCurrentPyScript(aStr); + SMESH::TPythonDump() << _this() << ".SetDeflection( " << theValue << " )"; } //=============================================================================