EgtMachKernel :

- in foratura con teste con uscite multiple ammesse anche frese che lavorano di testa.
This commit is contained in:
Dario Sassi
2024-06-13 12:21:53 +02:00
parent fbf91fcafa
commit d098e4bcbc
+3 -3
View File
@@ -741,7 +741,7 @@ Drilling::VerifyMultiParallelFixedDrills( void)
continue ;
string sToolName ;
if ( m_pMchMgr->GetLoadedTool( m_TParams.m_sHead, nT + 1, sToolName) && ! sToolName.empty()) {
// verifico sia una punta a forare
// recupero la tipologia di utensile
int nType = TT_NONE ;
string sCurrTool ; m_pMchMgr->TdbGetCurrToolParam( TPA_NAME, sCurrTool) ;
if ( m_pMchMgr->TdbSetCurrTool( sToolName)) {
@@ -749,9 +749,9 @@ Drilling::VerifyMultiParallelFixedDrills( void)
if ( ! IsEmptyOrSpaces( sCurrTool))
m_pMchMgr->TdbSetCurrTool( sCurrTool) ;
}
// verifico punta con direzione corretta
// verifico punta o fresa con direzione corretta
Point3d ptExit ; Vector3d vtTool, vtAux ;
if ( ( nType & TF_DRILLBIT) != 0 &&
if ( ( ( nType & TF_DRILLBIT) != 0 || nType == TT_MILL_STD) &&
m_pMchMgr->GetCurrMachine()->GetHeadExitPosDirAux(m_TParams.m_sHead, nT + 1, ptExit, vtTool, vtAux) &&
AreSameVectorApprox( vtTool, vtMainTool))
return true ;