EgtExecutor 1.6n2 :

- sostuite Exe e Lua IsMachiningNotEmpty con IsMachiningEmpty.
This commit is contained in:
Dario Sassi
2016-02-09 09:52:47 +00:00
parent 906ecb1fe2
commit 52bdabb7ea
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1295,12 +1295,12 @@ ExeGetMachiningGeometry( SELVECTOR& vIds)
//-----------------------------------------------------------------------------
bool
ExeIsMachiningNotEmpty( void)
ExeIsMachiningEmpty( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// restituisco lo stato della lavorazione corrente
return pGseCtx->m_pMachMgr->IsNotEmpty() ;
return pGseCtx->m_pMachMgr->IsEmpty() ;
}
//-----------------------------------------------------------------------------
BIN
View File
Binary file not shown.
+4 -4
View File
@@ -1496,14 +1496,14 @@ LuaGetMachiningGeometry( lua_State* L)
//-------------------------------------------------------------------------------
static int
LuaIsMachiningNotEmpty( lua_State* L)
LuaIsMachiningEmpty( lua_State* L)
{
// nessun parametro
LuaClearStack( L) ;
// recupero lo stato della lavorazione corrente
bool bNotEmpty = ExeIsMachiningNotEmpty() ;
bool bEmpty = ExeIsMachiningEmpty() ;
// restituisco il risultato
LuaSetParam( L, bNotEmpty) ;
LuaSetParam( L, bEmpty) ;
return 1 ;
}
@@ -2050,7 +2050,7 @@ LuaInstallMachMgr( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtApplyMachining", LuaApplyMachining) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetMachiningParam", LuaGetMachiningParam) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetMachiningGeometry", LuaGetMachiningGeometry) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtIsMachiningNotEmpty", LuaIsMachiningNotEmpty) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtIsMachiningEmpty", LuaIsMachiningEmpty) ;
// Simulation
bOk = bOk && luaMgr.RegisterFunction( "EgtSimStart", LuaSimStart) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtSimMove", LuaSimMove) ;