EgtMachKernel :
- migliorati test su tolleranza fori - piccole correzioni per lavorazioni vuote o disabilitate.
This commit is contained in:
+10
-2
@@ -530,9 +530,17 @@ Machining::CalculateAxesValues( void)
|
||||
{
|
||||
if ( m_pMchMgr == nullptr || m_pGeomDB == nullptr)
|
||||
return false ;
|
||||
// recupero la lavorazione precedente
|
||||
int nPrevOpId = m_pMchMgr->GetPrevOperation( GetOwner()) ;
|
||||
// recupero la lavorazione precedente non vuota
|
||||
int nPrevOpId = m_pMchMgr->GetPrevActiveOperation( m_nOwnerId) ;
|
||||
Machining* pPrevMch = dynamic_cast<Machining*>( m_pGeomDB->GetUserObj( nPrevOpId)) ;
|
||||
while ( pPrevMch != nullptr) {
|
||||
if ( pPrevMch->IsNotEmpty())
|
||||
break ;
|
||||
else {
|
||||
nPrevOpId = m_pMchMgr->GetPrevActiveOperation( nPrevOpId) ;
|
||||
pPrevMch = dynamic_cast<Machining*>( m_pGeomDB->GetUserObj( nPrevOpId)) ;
|
||||
}
|
||||
}
|
||||
// recupero l'utensile precedente
|
||||
string sPrevTool ;
|
||||
if ( pPrevMch != nullptr)
|
||||
|
||||
Reference in New Issue
Block a user