EgtMachKernel :
- prime modifiche per nuova versionedi NewLinkMgr (aggiunta OnSpecialLink).
This commit is contained in:
+9
-12
@@ -719,12 +719,18 @@ GenMachining::Update( bool bPostApply)
|
||||
bool bVpl ;
|
||||
if ( ! FromString( ExtractInfo( m_Params.m_sUserNotes, "Vpl:"), bVpl))
|
||||
bVpl = true ;
|
||||
bool bLinkOk = AdjustStartEndMovements( bVpl) ;
|
||||
string sLinkInfo = ( bLinkOk ? "" : m_pMchMgr->GetOutstrokeInfo()) ;
|
||||
if ( ! AdjustStartEndMovements( bVpl)) {
|
||||
string sInfo = m_pMchMgr->GetOutstrokeInfo() ;
|
||||
if ( sInfo.empty())
|
||||
m_pMchMgr->SetLastError( 2806, "Error in GenMachining : link movements not calculable") ;
|
||||
else
|
||||
m_pMchMgr->SetLastError( 2807, "Error in GenMachining : 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( 2808, sErr) ;
|
||||
else
|
||||
@@ -732,15 +738,6 @@ GenMachining::Update( bool bPostApply)
|
||||
return false ;
|
||||
}
|
||||
|
||||
// se non riuscito collegamento con lavorazione precedente
|
||||
if ( ! bLinkOk) {
|
||||
if ( sLinkInfo.empty())
|
||||
m_pMchMgr->SetLastError( 2806, "Error in GenMachining : link movements not calculable") ;
|
||||
else
|
||||
m_pMchMgr->SetLastError( 2807, "Error in GenMachining : link outstroke ") ;
|
||||
return false ;
|
||||
}
|
||||
|
||||
return true ;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user