EgtExecutor 1.6s2 :

- aggiunte ExeGetTable e ExeTdbGetToolFromUUID
- aggiunta a Lua EgtGetTableName.
This commit is contained in:
Dario Sassi
2016-07-02 15:03:58 +00:00
parent e0f8602aeb
commit 970c07edd5
3 changed files with 38 additions and 0 deletions
+20
View File
@@ -720,6 +720,16 @@ ExeSetTable( const string& sTable)
return pGseCtx->m_pMachMgr->SetTable( sTable) ;
}
//-----------------------------------------------------------------------------
bool
ExeGetTable( string& sTable)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero il nome della tavola corrente della macchinata corrente
return pGseCtx->m_pMachMgr->GetTable( sTable) ;
}
//-----------------------------------------------------------------------------
bool
ExeGetTableRef( int nInd, Point3d& ptPos)
@@ -842,6 +852,16 @@ ExeTdbGetNextTool( int nFamily, string& sName, int& nType)
return pGseCtx->m_pMachMgr->TdbGetNextTool( nFamily, sName, nType) ;
}
//----------------------------------------------------------------------------
bool
ExeTdbGetToolFromUUID( const string& sTuuid, string& sName)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// restituisce nome dell'utensile di dato UUID
return pGseCtx->m_pMachMgr->TdbGetToolFromUUID( sTuuid, sName) ;
}
//-----------------------------------------------------------------------------
bool
ExeTdbSetCurrTool( const string& sName)