using namespace std;
#include "StdMeshers_LocalLength_i.hxx"
+#include "SMESH_Gen_i.hxx"
#include "SMESH_Gen.hxx"
#include "Utils_CorbaException.hxx"
#include "utilities.h"
+#include <TCollection_AsciiString.hxx>
+
//=============================================================================
/*!
* StdMeshers_LocalLength_i::StdMeshers_LocalLength_i
THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
SALOME::BAD_PARAM );
}
+
+ // Update Python script
+ TCollection_AsciiString aStr, aStrLen ((double)theLength);
+ SMESH_Gen_i::AddObject(aStr, _this()) += ".SetLength(";
+ aStr += aStrLen + ")";
+
+ SMESH_Gen_i::AddToCurrentPyScript(aStr);
}
//=============================================================================