diff --git a/CAMAuto/Strategies/Profiling.lua b/CAMAuto/Strategies/Profiling.lua index e1a90dd..cbc90f2 100644 --- a/CAMAuto/Strategies/Profiling.lua +++ b/CAMAuto/Strategies/Profiling.lua @@ -45,6 +45,7 @@ function Profiling.Make( Proc, Part) Machining.LeadIn.dPerpDistance = TOOLS[ToolInfo.nToolIndex].dTotDiameter / 2 + 30 Machining.LeadOut.dTangentDistance = 0 Machining.LeadOut.dPerpDistance = TOOLS[ToolInfo.nToolIndex].dTotDiameter / 2 + 30 + -- se profilo di testa elseif Proc.bHeadProfile then Machining.nWorkside = MCH_MILL_WS.LEFT Machining.bInvert = true @@ -54,13 +55,21 @@ function Profiling.Make( Proc, Part) Machining.LeadIn.dPerpDistance = - ( TOOLS[ToolInfo.nToolIndex].dTotDiameter / 2 + 1) Machining.LeadOut.dTangentDistance = TOOLS[ToolInfo.nToolIndex].dTotDiameter / 2 + 30 Machining.LeadOut.dPerpDistance = 0 + -- se profilo laterale else Machining.LeadIn.nType = MCH_MILL_LI.TANGENT Machining.LeadOut.nType = MCH_MILL_LO.TANGENT Machining.LeadIn.dTangentDistance = TOOLS[ToolInfo.nToolIndex].dTotDiameter / 2 + 30 - Machining.LeadIn.dPerpDistance = 0 + Machining.LeadIn.dPerpDistance = 40 Machining.LeadOut.dTangentDistance = TOOLS[ToolInfo.nToolIndex].dTotDiameter / 2 + 30 - Machining.LeadOut.dPerpDistance = 0 + Machining.LeadOut.dPerpDistance = 40 + -- se ho due tool devo spostare maggiormente l'utensile per non farlo alzare in z + if Proc.nToolsToUse > 1 and i > 1 then + Machining.LeadIn.dPerpDistance = 60 + end + if Proc.nToolsToUse > 1 then + Machining.LeadOut.dPerpDistance = 60 + end end Machining.Geometry = Proc.id AuxiliaryData.bIsProfiling = true