EgtExecutor 2.2b1 :

- aggiunta funzione Exe e Lua AutoNestSetReportFile.
This commit is contained in:
Dario Sassi
2020-02-04 07:38:53 +00:00
parent dbda122216
commit 80d503e16f
3 changed files with 25 additions and 0 deletions
+9
View File
@@ -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)
BIN
View File
Binary file not shown.
+16
View File
@@ -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) ;