From cf3b42a33d60d43a6e2bd82cd939bacd52fc3c0b Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Sun, 15 Mar 2026 18:40:37 +0100 Subject: [PATCH] CamAuto 3.1c3 : - aggiunta gestione parametro WaterJetOnSinks (per macchine Combinate Lama+WJ) - aggiunto parametro WaterJetOptimize (per evitare di fare passate sovrapposte, da gestire). --- CamAuto.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CamAuto.lua b/CamAuto.lua index 178c8dd..12cf844 100644 --- a/CamAuto.lua +++ b/CamAuto.lua @@ -1,4 +1,4 @@ --- 2026/03/06 18:00:00 +-- 2026/03/14 18:00:00 -- Programma per Cam automatico in OmagCut -- Legenda codici errore (CAM.ERR) : -- 0 = tutto bene @@ -17,7 +17,7 @@ _ENV = EgtProtectGlobal() EgtEnableDebug( false) -- Versione -local CAMAUTO_VER = 'ver 3.1c2' +local CAMAUTO_VER = 'ver 3.1c3' -- Determino il tipo di macchina local bIsMultiCut = ( EgtGetHeadId( 'H101') ~= nil) @@ -134,6 +134,8 @@ local dDeltaIntCorner = CAM.CORNERSAFETY local bMillingOnCorners = CAM.MILLINGONCORNERS local bMillingOnSinks = CAM.MILLINGONSINKS local dDeltaLenPartMilling = - ( CAM.MILLINGSHORT or 0.0) +local bWaterJetOptimize = CAM.WATERJETOPTIMIZE +local bWaterJetOnSinks = CAM.WATERJETONSINKS local dRawHeight = CAM.RAWHEIGHT local dOffsAxisBlock = - ( CAM.REGROT or 0.0) local colOnCut = Color3d( 255, 165, 0) @@ -317,7 +319,7 @@ function CAM.AnalyzePart( nPartId) nOutLayId = EgtGetNextName( nOutLayId, 'OutLoop') end -- Ciclo sui layer di contorno interno del pezzo - local bAllCrv = ( bMillingOnSinks and ( sMill ~= "" or sWaterJet ~= "")) + local bAllCrv = (( bMillingOnSinks and sMill ~= "") or ( bWaterJetOnSinks and sWaterJet ~= "") or sSaw == "") local dDrillDiam = CAM.GetToolDiameterFromMdb( sDrill) local dMillDiam = CAM.GetToolDiameterFromMdb( sMill) local dDripDrillDiam = CAM.GetToolDiameterFromMdb( sDripDrill)