EgtMachKernel :

- prime modifiche per nuova versionedi NewLinkMgr (aggiunta OnSpecialLink).
This commit is contained in:
Dario Sassi
2025-07-07 15:01:59 +02:00
parent 3283f1780f
commit 2ed88f66e9
21 changed files with 604 additions and 613 deletions
+9 -12
View File
@@ -602,12 +602,18 @@ SawRoughing::Update( bool bPostApply)
CalcAndSetAxesBBox() ;
// gestione movimenti all'inizio di ogni singolo percorso di lavorazione e alla fine della lavorazione
bool bLinkOk = AdjustStartEndMovements() ;
string sLinkInfo = ( bLinkOk ? "" : m_pMchMgr->GetOutstrokeInfo()) ;
if ( ! AdjustStartEndMovements()) {
string sInfo = m_pMchMgr->GetOutstrokeInfo() ;
if ( sInfo.empty())
m_pMchMgr->SetLastError( 2613, "Error in SawRoughing : link movements not calculable") ;
else
m_pMchMgr->SetLastError( 2614, "Error in SawRoughing : link outstroke ") ;
return false ;
}
// esecuzione eventuali personalizzazioni
string sErr ;
if ( bPostApply && ! PostApply( bLinkOk, sErr) && bLinkOk) {
if ( bPostApply && ! PostApply( sErr)) {
if ( ! IsEmptyOrSpaces( sErr))
m_pMchMgr->SetLastError( 2615, sErr) ;
else
@@ -615,15 +621,6 @@ SawRoughing::Update( bool bPostApply)
return false ;
}
// se non riuscito collegamento con lavorazione precedente
if ( ! bLinkOk) {
if ( sLinkInfo.empty())
m_pMchMgr->SetLastError( 2613, "Error in SawRoughing : link movements not calculable") ;
else
m_pMchMgr->SetLastError( 2614, "Error in SawRoughing : link outstroke ") ;
return false ;
}
return true ;
}