diff --git a/EXE_NstAutoNesting.cpp b/EXE_NstAutoNesting.cpp index 3fa2169..f96ba04 100644 --- a/EXE_NstAutoNesting.cpp +++ b/EXE_NstAutoNesting.cpp @@ -194,6 +194,15 @@ ExeAutoNestSetInterpartGap( double dGap) return s_pAutoNester->SetInterpartGap( dGap) ; } +//----------------------------------------------------------------------------- +bool +ExeAutoNestSetReportFile( const string& sReportFile) +{ + if ( IsNull( s_pAutoNester)) + return false ; + return s_pAutoNester->SetReportFile( sReportFile) ; +} + //----------------------------------------------------------------------------- bool ExeAutoNestCompute( bool bMinimizeOnXvsY, int nMaxTime) diff --git a/EgtExecutor.rc b/EgtExecutor.rc index 64a1b7b..195c219 100644 Binary files a/EgtExecutor.rc and b/EgtExecutor.rc differ diff --git a/LUA_Nesting.cpp b/LUA_Nesting.cpp index e239ccd..3bc685b 100644 --- a/LUA_Nesting.cpp +++ b/LUA_Nesting.cpp @@ -234,6 +234,21 @@ LuaAutoNestSetInterpartGap( lua_State* L) return 1 ; } +//------------------------------------------------------------------------------- +static int +LuaAutoNestSetReportFile( lua_State* L) +{ + // 1 parametro : sReportFile + string sReportFile ; + LuaCheckParam( L, 1, sReportFile) + LuaClearStack( L) ; + // imposto file di report di tutti i dati di nesting + bool bOk = ExeAutoNestSetReportFile( sReportFile) ; + // restituisco il risultato + LuaSetParam( L, bOk) ; + return 1 ; +} + //------------------------------------------------------------------------------- static int LuaAutoNestCompute( lua_State* L) @@ -361,6 +376,7 @@ LuaInstallNesting( LuaMgr& luaMgr) bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestAddAnotherOutlineToPart", LuaAutoNestAddAnotherOutlineToPart) ; bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestAddToolOutlineToPart", LuaAutoNestAddToolOutlineToPart) ; bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestSetInterpartGap", LuaAutoNestSetInterpartGap) ; + bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestSetReportFile", LuaAutoNestSetReportFile) ; bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestCompute", LuaAutoNestCompute) ; bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestCancelComputation", LuaAutoNestCancelComputation) ; bOk = bOk && luaMgr.RegisterFunction( "EgtAutoNestGetComputationStatus", LuaAutoNestGetComputationStatus) ;