From 1007e08e9d40453e107b415ff8d985ffbce8d2cc Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Fri, 17 Oct 2025 13:25:02 +0200 Subject: [PATCH] Se lamavorazione di base ha il flag "inverti", allora il flag si deve togliere. --- LuaLibs/ProcessProfCamb.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/LuaLibs/ProcessProfCamb.lua b/LuaLibs/ProcessProfCamb.lua index af4fc13..c4c6d88 100644 --- a/LuaLibs/ProcessProfCamb.lua +++ b/LuaLibs/ProcessProfCamb.lua @@ -796,8 +796,10 @@ function ProcessProfCamb.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH) if bDoubleFinishMill then local sNewName = 'FinB_' .. ( EgtGetName( Proc.Id) or tostring( Proc.Id)) local nMch2Id = EgtCopyMachining( sNewName, EgtGetName( nMchId)) + -- ottengo l'inversione e setto il contrario + local bInvertMode = EgtGetMachiningParam( MCH_MP.INVERT) + EgtSetMachiningParam( MCH_MP.INVERT, not bInvertMode) EgtSetMachiningParam( MCH_MP.TOOLINVERT, true) - EgtSetMachiningParam( MCH_MP.INVERT, true) -- eseguo if not ML.ApplyMachining( true, false) then