X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshers_I%2FStdMeshers_Arithmetic1D_i.cxx;h=ef47c3f0a1d058c083e08f9c012df002300e3b98;hb=79b1ac2b6df9117f16f11d444b1f165d477a1813;hp=9c39bc72b794d6825bf620cd5f4f19bc5a8623a4;hpb=ea3e3193e3d50a44a4b3a069fc4fc1239c22f27b;p=modules%2Fsmesh.git diff --git a/src/StdMeshers_I/StdMeshers_Arithmetic1D_i.cxx b/src/StdMeshers_I/StdMeshers_Arithmetic1D_i.cxx index 9c39bc72b..ef47c3f0a 100644 --- a/src/StdMeshers_I/StdMeshers_Arithmetic1D_i.cxx +++ b/src/StdMeshers_I/StdMeshers_Arithmetic1D_i.cxx @@ -17,7 +17,7 @@ // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // // @@ -26,16 +26,18 @@ // Module : SMESH // $Header$ -using namespace std; #include "StdMeshers_Arithmetic1D_i.hxx" #include "SMESH_Gen_i.hxx" #include "SMESH_Gen.hxx" +#include "SMESH_PythonDump.hxx" #include "Utils_CorbaException.hxx" #include "utilities.h" #include +using namespace std; + //============================================================================= /*! * StdMeshers_Arithmetic1D_i::StdMeshers_Arithmetic1D_i @@ -92,11 +94,8 @@ void StdMeshers_Arithmetic1D_i::SetLength(CORBA::Double theLength, } // Update Python script - TCollection_AsciiString aStr, aStrLen ((double)theLength), aStrFlag ((int)theIsStart); - SMESH_Gen_i::AddObject(aStr, _this()) += ".SetLength("; - aStr += aStrLen + ", " + aStrFlag + ")"; - - SMESH_Gen_i::AddToCurrentPyScript(aStr); + SMESH::TPythonDump() << _this() << ".SetLength( " + << theLength << ", " << theIsStart << " )"; } //=============================================================================