From 80d503e16fe190725c0156f21d042bade05f850d Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Tue, 4 Feb 2020 07:38:53 +0000 Subject: [PATCH] EgtExecutor 2.2b1 : - aggiunta funzione Exe e Lua AutoNestSetReportFile. --- EXE_NstAutoNesting.cpp | 9 +++++++++ EgtExecutor.rc | Bin 16176 -> 16176 bytes LUA_Nesting.cpp | 16 ++++++++++++++++ 3 files changed, 25 insertions(+) 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 64a1b7bce7f0d93f818ac9474ca514951a3b4391..195c2191235ad1cea533772d0dc2df36cc3d3e3d 100644 GIT binary patch delta 103 zcmdl`x1nysH#Sxy1|0^&&A-{4nVFM-3`efTEO4>oOp`YVR)EAOJ8~s&?h~?r$(psNd^E;fgV!; delta 103 zcmdl`x1nysH#Sy71|0^I&A-{4nVA!T3`efTEO4>oOp`YVR)EAOJ8~s&?h~?r$(psNd^E>p&nxZ 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) ;