EgtExecutor 2.2b1 :
- aggiunta funzione Exe e Lua AutoNestSetReportFile.
This commit is contained in:
@@ -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)
|
||||
|
||||
Binary file not shown.
@@ -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) ;
|
||||
|
||||
Reference in New Issue
Block a user