EgtMachKernel 1.6p3 :
- gestione script OnSetTable in file mde per modificare dati assi - migliorato sequenziamento curve per lavorazione - eliminata tabella LOC per variabili locali in generazione part program - aggiunte funzioni EmtModifyAxisStroke e EmtModifyAxisHome richiamabili da lua macchina - aggiunta ExistsTable in interfaccia.
This commit is contained in:
+16
-1
@@ -26,6 +26,12 @@
|
||||
|
||||
using namespace std ;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
static const string EMC_VAR = "EMC" ; // tabella variabili locali per calcolo
|
||||
static const string EVAR_TABNAME = ".TABNAME" ; // (string) nome della tavola macchina
|
||||
static const string ON_SET_TABLE = "OnSetTable" ;
|
||||
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
bool
|
||||
Machine::SetCurrTable( const string& sTable)
|
||||
@@ -39,7 +45,16 @@ Machine::SetCurrTable( const string& sTable)
|
||||
m_nCalcTabId = GDB_ID_NULL ;
|
||||
return false ;
|
||||
}
|
||||
return true ;
|
||||
// lancio eventuale funzione lua di personalizzazione
|
||||
if ( LuaExistsFunction( ON_SET_TABLE)) {
|
||||
bool bOk = LuaCreateGlobTable( EMC_VAR) ;
|
||||
bOk = bOk && LuaSetGlobVar( EMC_VAR + EVAR_TABNAME, sTable) ;
|
||||
bOk = bOk && LuaCallFunction( ON_SET_TABLE) ;
|
||||
bOk = bOk && LuaResetGlobVar( EMC_VAR) ;
|
||||
return bOk ;
|
||||
}
|
||||
else
|
||||
return true ;
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user