EgtMachkernel :
- aggiunta gestione OnSpecialApplyMachining appena prima del calcolo dei collegamenti tra lavorazioni.
This commit is contained in:
+26
-15
@@ -77,6 +77,7 @@ const double LIM_SIN_DIFF_DIR = 0.175 ;
|
||||
// 2323 = "Error in Milling : machining depth (xxx) bigger than MaxDepth (yyy)"
|
||||
// 2324 = "Error in Milling : LeadOut must be out of rawpart"
|
||||
// 2325 = "Error in Milling : Mirror for Double calculation failed"
|
||||
// 2326 = "Error in Milling : special apply not calculable"
|
||||
// 2351 = "Warning in Milling : Skipped entity (xx)"
|
||||
// 2352 = "Warning in Milling : No machinable path"
|
||||
// 2353 = "Warning in Milling : Tool name changed (xx)"
|
||||
@@ -904,16 +905,6 @@ Milling::Update( bool bPostApply)
|
||||
// assegno estremi degli assi dei vari percorsi di lavorazione e della lavorazione nel suo complesso
|
||||
CalcAndSetAxesBBox() ;
|
||||
|
||||
// gestione movimenti all'inizio e fine di ogni singolo percorso di lavorazione
|
||||
if ( ! AdjustStartEndMovements()) {
|
||||
string sInfo = m_pMchMgr->GetOutstrokeInfo() ;
|
||||
if ( sInfo.empty())
|
||||
m_pMchMgr->SetLastError( 2319, "Error in Milling : link movements not calculable") ;
|
||||
else
|
||||
m_pMchMgr->SetLastError( 2320, "Error in Milling : link outstroke ") ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
// se lavorazione in doppio, calcolo assi e movimenti di approccio e retrazione relativi
|
||||
if ( GetDoubleType( m_Params.m_sUserNotes) != 0) {
|
||||
// elimino le entità CLIMB, RISE e HOME della lavorazione in doppio
|
||||
@@ -942,11 +933,31 @@ Milling::Update( bool bPostApply)
|
||||
return false ;
|
||||
}
|
||||
|
||||
// esecuzione eventuali personalizzazioni
|
||||
string sErr ;
|
||||
if ( bPostApply && ! PostApply( sErr)) {
|
||||
if ( ! IsEmptyOrSpaces( sErr))
|
||||
m_pMchMgr->SetLastError( 2321, sErr) ;
|
||||
// esecuzione eventuali personalizzazioni speciali
|
||||
string sSpecErr ;
|
||||
if ( bPostApply && ! SpecialApply( sSpecErr)) {
|
||||
if ( ! IsEmptyOrSpaces( sSpecErr))
|
||||
m_pMchMgr->SetLastError( 2326, sSpecErr) ;
|
||||
else
|
||||
m_pMchMgr->SetLastError( 2326, "Error in Milling : special apply not calculable") ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
// gestione movimenti all'inizio e fine di ogni singolo percorso di lavorazione
|
||||
if ( ! AdjustStartEndMovements()) {
|
||||
string sInfo = m_pMchMgr->GetOutstrokeInfo() ;
|
||||
if ( sInfo.empty())
|
||||
m_pMchMgr->SetLastError( 2319, "Error in Milling : link movements not calculable") ;
|
||||
else
|
||||
m_pMchMgr->SetLastError( 2320, "Error in Milling : link outstroke ") ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
// esecuzione eventuali personalizzazioni finali
|
||||
string sPostErr ;
|
||||
if ( bPostApply && ! PostApply( sPostErr)) {
|
||||
if ( ! IsEmptyOrSpaces( sPostErr))
|
||||
m_pMchMgr->SetLastError( 2321, sPostErr) ;
|
||||
else
|
||||
m_pMchMgr->SetLastError( 2321, "Error in Milling : post apply not calculable") ;
|
||||
return false ;
|
||||
|
||||
Reference in New Issue
Block a user