EgtExecutor 1.9e5 :
- aggiunta funzione Exe e Lua estimate.
This commit is contained in:
+11
-1
@@ -2564,7 +2564,7 @@ ExeSimStop( void)
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Generazione
|
||||
// Generazione e Stima T&L
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeGenerate( const string& sCncFile, const string& sInfo)
|
||||
@@ -2575,6 +2575,16 @@ ExeGenerate( const string& sCncFile, const string& sInfo)
|
||||
return pMachMgr->Generate( sCncFile, sInfo) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
bool
|
||||
ExeEstimate( const string& sEstFile, const string& sInfo)
|
||||
{
|
||||
IMachMgr* pMachMgr = GetCurrMachMgr() ;
|
||||
VERIFY_MACHMGR( pMachMgr, false)
|
||||
// eseguo la stima di tempi e lunghezze di lavoro della macchinata corrente
|
||||
return pMachMgr->Estimate( sEstFile, sInfo) ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Machine Calc
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Binary file not shown.
+20
-2
@@ -2715,7 +2715,7 @@ LuaSimStop( lua_State* L)
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
// Generation
|
||||
// Generation & T&L estimation
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaGenerate( lua_State* L)
|
||||
@@ -2733,6 +2733,23 @@ LuaGenerate( lua_State* L)
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
static int
|
||||
LuaEstimate( lua_State* L)
|
||||
{
|
||||
// 1 o 2 parametro : sEstFile [, sInfo]
|
||||
string sEstFile ;
|
||||
LuaCheckParam( L, 1, sEstFile)
|
||||
string sInfo ;
|
||||
LuaGetParam( L, 2, sInfo) ;
|
||||
LuaClearStack( L) ;
|
||||
// eseguo la stima dei tempi e delle lunghezze di lavorazione
|
||||
bool bOk = ExeEstimate( sEstFile, sInfo) ;
|
||||
// restituisco il risultato
|
||||
LuaSetParam( L, bOk) ;
|
||||
return 1 ;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
// Machine Calc
|
||||
//-------------------------------------------------------------------------------
|
||||
@@ -3482,8 +3499,9 @@ LuaInstallMachMgr( LuaMgr& luaMgr)
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSimGetMoveInfo", LuaSimGetMoveInfo) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSimSetStep", LuaSimSetStep) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtSimStop", LuaSimStop) ;
|
||||
// Generation
|
||||
// Generation & T&L estimation
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGenerate", LuaGenerate) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtEstimate", LuaEstimate) ;
|
||||
// Machine
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetBaseId", LuaGetBaseId) ;
|
||||
bOk = bOk && luaMgr.RegisterFunction( "EgtGetTableId", LuaGetTableId) ;
|
||||
|
||||
Reference in New Issue
Block a user