EgtExecutor :
- aggiunte EXE/LUA RemoveAllOperations.
This commit is contained in:
+42
-31
@@ -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() ;
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user