CamAuto 3.1c3 :

- aggiunta gestione parametro WaterJetOnSinks (per macchine Combinate Lama+WJ)
- aggiunto parametro WaterJetOptimize (per evitare di fare passate sovrapposte, da gestire).
This commit is contained in:
Dario Sassi
2026-03-15 18:40:37 +01:00
parent 3488381355
commit cf3b42a33d
+5 -3
View File
@@ -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)