EgtExecutor 1.9k2 :

- aggiunta funzione Exe e Lua TdbGetCurrToolMaxDepth.
This commit is contained in:
Dario Sassi
2018-11-28 17:06:06 +00:00
parent 4718207552
commit 3787a4a1fd
3 changed files with 30 additions and 3 deletions
+10
View File
@@ -1276,6 +1276,16 @@ ExeTdbGetCurrToolParam( int nType, string& sVal)
return pMachMgr->TdbGetCurrToolParam( nType, sVal) ;
}
//-----------------------------------------------------------------------------
bool
ExeTdbGetCurrToolMaxDepth( double& dMaxDepth)
{
IMachMgr* pMachMgr = GetCurrMachMgr() ;
VERIFY_MACHMGR( pMachMgr, false)
// recupero il massimo affondamento dell'utensile
return pMachMgr->TdbGetCurrToolMaxDepth( dMaxDepth) ;
}
//-----------------------------------------------------------------------------
bool
ExeTdbReload( void)
BIN
View File
Binary file not shown.
+20 -3
View File
@@ -1,7 +1,7 @@
//----------------------------------------------------------------------------
// EgalTech 2015-2015
// EgalTech 2015-2018
//----------------------------------------------------------------------------
// File : LUA_MachMgr.cpp Data : 24.03.15 Versione : 1.6c8
// File : LUA_MachMgr.cpp Data : 27.11.18 Versione : 1.9k2
// Contenuto : Funzioni Machining Manager per LUA.
//
//
@@ -1365,7 +1365,7 @@ LuaTdbGetCurrToolParam( lua_State* L)
int nType ;
LuaCheckParam( L, 1, nType)
LuaClearStack( L) ;
// recupero il parametro dell'utensile voluto
// recupero il parametro voluto dell'utensile corrente
if ( ( nType & TPA_BOOL) != 0) {
bool bVal ;
bool bOk = ExeTdbGetCurrToolParam( nType, bVal) ;
@@ -1403,6 +1403,22 @@ LuaTdbGetCurrToolParam( lua_State* L)
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaTdbGetCurrToolMaxDepth( lua_State* L)
{
// nessun parametro
LuaClearStack( L) ;
// recupero il massimo affondamento dell'utensile corrente
double dVal ;
bool bOk = ExeTdbGetCurrToolMaxDepth( dVal) ;
if ( bOk)
LuaSetParam( L, dVal) ;
else
LuaSetParam( L) ;
return 1 ;
}
//-------------------------------------------------------------------------------
static int
LuaTdbReload( lua_State* L)
@@ -3544,6 +3560,7 @@ LuaInstallMachMgr( LuaMgr& luaMgr)
bOk = bOk && luaMgr.RegisterFunction( "EgtTdbIsCurrToolModified", LuaTdbIsCurrToolModified) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtTdbSetCurrToolParam", LuaTdbSetCurrToolParam) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtTdbGetCurrToolParam", LuaTdbGetCurrToolParam) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtTdbGetCurrToolMaxDepth", LuaTdbGetCurrToolMaxDepth) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtTdbReload", LuaTdbReload) ;
bOk = bOk && luaMgr.RegisterFunction( "EgtTdbSave", LuaTdbSave) ;
// Setup