EgtExecutor :

- aggiunte EXE/LUA RemoveAllOperations.
This commit is contained in:
Dario Sassi
2015-10-28 12:08:13 +00:00
parent 21487cc6f2
commit ceef9cb3ac
2 changed files with 59 additions and 34 deletions
+42 -31
View File
@@ -854,6 +854,47 @@ ExeTdbSave( void)
return pGseCtx->m_pMachMgr->TdbSave() ;
}
//-----------------------------------------------------------------------------
// Operazioni
//-----------------------------------------------------------------------------
int
ExeGetFirstOperation( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero la prima operazione della macchinata corrente
return pGseCtx->m_pMachMgr->GetFirstOperation() ;
}
//-----------------------------------------------------------------------------
int
ExeGetNextOperation( int nId)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero la successiva operazione della macchinata corrente
return pGseCtx->m_pMachMgr->GetNextOperation( nId) ;
}
//-----------------------------------------------------------------------------
int
ExeGetOperationType( int nId)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero il tipo di operazione della macchinata corrente
return pGseCtx->m_pMachMgr->GetOperationType( nId) ;
}
//-----------------------------------------------------------------------------
bool
ExeRemoveAllOperations( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// elimino tutte le operazioni della macchinata corrente tranne il primo posizionamento
return pGseCtx->m_pMachMgr->RemoveAllOperations( true) ;
}
//-----------------------------------------------------------------------------
// Lavorazioni
@@ -924,37 +965,7 @@ ExeApplyMachining( void)
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// imposto la geometria alla lavorazione corrente
return pGseCtx->m_pMachMgr->Apply() ;
}
//-----------------------------------------------------------------------------
int
ExeGetFirstOperation( void)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero la prima operazione della macchinata corrente
return pGseCtx->m_pMachMgr->GetFirstOperation() ;
}
//-----------------------------------------------------------------------------
int
ExeGetNextOperation( int nId)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero la successiva operazione della macchinata corrente
return pGseCtx->m_pMachMgr->GetNextOperation( nId) ;
}
//-----------------------------------------------------------------------------
int
ExeGetOperationType( int nId)
{
GseContext* pGseCtx = GetCurrGseContext() ;
VERIFY_CTX_MACHMGR( pGseCtx, false)
// recupero il tipo di operazione della macchinata corrente
return pGseCtx->m_pMachMgr->GetOperationType( nId) ;
return pGseCtx->m_pMachMgr->MachiningApply() ;
}
//-----------------------------------------------------------------------------