-// void StdMeshers_AutomaticLength_i::SetLength( CORBA::Double theLength )
-// throw ( SALOME::SALOME_Exception )
-// {
-// MESSAGE( "StdMeshers_AutomaticLength_i::SetLength" );
-// ASSERT( myBaseImpl );
-// try {
-// this->GetImpl()->SetLength( theLength );
-// }
-// catch ( SALOME_Exception& S_ex ) {
-// 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);
-// }
+void StdMeshers_AutomaticLength_i::SetFineness( CORBA::Double theFineness )
+ throw ( SALOME::SALOME_Exception )
+{
+ ASSERT( myBaseImpl );
+ try {
+ this->GetImpl()->SetFineness( theFineness );
+ }
+ catch ( SALOME_Exception& S_ex ) {
+ THROW_SALOME_CORBA_EXCEPTION( S_ex.what(),
+ SALOME::BAD_PARAM );
+ }
+ // Update Python script
+ SMESH::TPythonDump() << _this() << ".SetFineness( " << theFineness << " )";
+}