From 2c98483de006ee04762667d1835ca8464fb4d1ec Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Thu, 29 Feb 2024 09:19:38 +0100 Subject: [PATCH 1/2] In LapJoit.MakeMoreFaces passato b3Solid alla funzione ManageAntiSplintByMill --- LuaLibs/ProcessLapJoint.lua | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/LuaLibs/ProcessLapJoint.lua b/LuaLibs/ProcessLapJoint.lua index 6f7d229..20790c7 100644 --- a/LuaLibs/ProcessLapJoint.lua +++ b/LuaLibs/ProcessLapJoint.lua @@ -95,6 +95,7 @@ -- 2024/02/13 In MakeMoreFaces escluse le Groove 2 facce dalla gestione Special3faces. -- 2024/02/22 Migliorato calcolo area non pinzabile in testa HCING e coda TCING -- Rimosso un caso di controllo per HCING/TCING +-- 2024/02/29 In MakeMoreFaces passato b3Solid alla funzione ManageAntiSplintByMill -- Tabella per definizione modulo local ProcessLapJoint = {} @@ -5500,9 +5501,9 @@ local function MakeMoreFaces( Proc, nPhase, nRawId, nPartId, dOvmHead, bSinglePa if not bOk then return false, sWarn end end if nChamfer < 2 and nQAntisplintResult == 2 then - local bOk, sWarn2 - bOk, sWarn2 = ManageAntiSplintByMill( Proc, nPhase, nRawId, nPartId, b3Raw, - nFacInd, nAddGrpId, bMillDown) + local bOk, sWarn2 = ManageAntiSplintByMill( Proc, nPhase, nRawId, nPartId, b3Raw, + nFacInd, nAddGrpId, bMillDown, dDiamTool, nil, + nil, nil, nil, b3Solid) if not bOk then return false, sWarn2 end end -- se smusso non esclusivo @@ -5517,17 +5518,17 @@ local function MakeMoreFaces( Proc, nPhase, nRawId, nPartId, dOvmHead, bSinglePa local dToolTotalLength = 0 local dToolThDiameter = 999 local dToolDiameter = 0 - if EgtMdbSetCurrMachining( sPocketing) then - local sTuuidPk = EgtMdbGetCurrMachiningParam( MCH_MP.TUUID) - if EgtTdbSetCurrTool( EgtTdbGetToolFromUUID( sTuuidPk) or '') then - dMaxToolCutDepth = EgtTdbGetCurrToolMaxDepth() or dMaxToolCutDepth - dMaxToolMaterial = EgtTdbGetCurrToolParam( MCH_TP.MAXMAT) or dMaxToolMaterial - dToolDiameter = EgtTdbGetCurrToolParam( MCH_TP.DIAM) or dToolDiameter - dToolThLength = EgtTdbGetCurrToolThLength() or dToolThLength - dToolThDiameter = EgtTdbGetCurrToolParam( MCH_TP.STEMDIAM) or dToolThDiameter - dToolTotalLength = EgtTdbGetCurrToolParam( MCH_TP.TOTLEN) or dToolTotalLength - end + if EgtMdbSetCurrMachining( sPocketing) then + local sTuuidPk = EgtMdbGetCurrMachiningParam( MCH_MP.TUUID) + if EgtTdbSetCurrTool( EgtTdbGetToolFromUUID( sTuuidPk) or '') then + dMaxToolCutDepth = EgtTdbGetCurrToolMaxDepth() or dMaxToolCutDepth + dMaxToolMaterial = EgtTdbGetCurrToolParam( MCH_TP.MAXMAT) or dMaxToolMaterial + dToolDiameter = EgtTdbGetCurrToolParam( MCH_TP.DIAM) or dToolDiameter + dToolThLength = EgtTdbGetCurrToolThLength() or dToolThLength + dToolThDiameter = EgtTdbGetCurrToolParam( MCH_TP.STEMDIAM) or dToolThDiameter + dToolTotalLength = EgtTdbGetCurrToolParam( MCH_TP.TOTLEN) or dToolTotalLength end + end local dMachiningDepth = 0 -- se il gambo è più largo dell'utensile verifico se la lunghezza del gambo è maggiore della distanza di sicurezza calcolata local dShankLength = dToolTotalLength - dToolThLength - dMaxToolCutDepth From 2e2c897b47b6cb1a9958037c05a376aa9a1529e5 Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Thu, 29 Feb 2024 11:59:24 +0100 Subject: [PATCH 2/2] In DTTenon.Make Aumentato numero passaggi (massimo 8) --- LuaLibs/ProcessDtTenon.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/LuaLibs/ProcessDtTenon.lua b/LuaLibs/ProcessDtTenon.lua index 3d77ec7..1735c8f 100644 --- a/LuaLibs/ProcessDtTenon.lua +++ b/LuaLibs/ProcessDtTenon.lua @@ -5,6 +5,7 @@ -- 2023/02/08 Aumentato il range per cui i tenoni vengono lavorati in sottosquadro. -- 2023/03/27 Migliorate condizioni scelta pretaglio con lama o fresa; gestione unificata con ProcessTenon. -- 2023/03/28 Corretta gestione faccia di base quando divisa in più parti per distanza massima da lavorare. +-- 2024/02/29 Aumentato numero passaggi CR su tenone. Massimo 8 -- Tabella per definizione modulo local ProcessDtTenon = {} @@ -268,8 +269,8 @@ function ProcessDtTenon.Make( Proc, nPhase, nRawId, nPartId, dOvmHead) dMaxDist = 2 * ( b3DtTen:getRadius() - b3DtAux:getRadius()) end EgtOutLog( 'MaxDist=' .. EgtNumToString( dMaxDist, 3), 3) - -- Cicli di lavorazione (max 6) - local MAX_PASS = 6 + -- Cicli di lavorazione (max 8) + local MAX_PASS = 8 local nStep = min( ceil( dMaxDist / ( 0.7 * dTDiam)), MAX_PASS) local dStep = min( dMaxDist, 0.7 * dTDiam * MAX_PASS) / nStep for i = nStep, 1, -1 do