EgtExecutor 1.6w4 :

- aggiunta a EXE e LUA GetAxisToken.
This commit is contained in:
Dario Sassi
2016-11-16 18:45:39 +00:00
parent be90ca0ce6
commit 853ee94ca9
3 changed files with 30 additions and 0 deletions
+20
View File
@@ -2646,6 +2646,25 @@ LuaGetHeadId( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaGetAxisToken( lua_State* L)
{
// 1 parametro : sAxis
string sAxis ;
LuaCheckParam( L, 1, sAxis)
LuaClearStack( L) ;
// recupero il token dell'asse
string sToken ;
bool bOk = ExeGetAxisToken( sAxis, sToken) ;
// restituisco il risultato
if ( bOk)
LuaSetParam( L, sToken) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaSetAxisPos( lua_State* L)
@@ -2940,6 +2959,7 @@ LuaInstallMachMgr( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtGetTableId", LuaGetTableId) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetAxisId", LuaGetAxisId) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetHeadId", LuaGetHeadId) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtGetAxisToken", LuaGetAxisToken) ;
// Machine Calc
bOk = bOk && luaMgr.RegisterFunction( "EgtSetCalcTable", LuaSetCalcTable) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtSetCalcTool", LuaSetCalcTool) ;