From 61e5ce63593f211b69495ea8ecf1507b5fae344c Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Tue, 5 Sep 2023 16:14:05 +0200 Subject: [PATCH] - aggiunta costante if WD.DOUBLE_HEAD_MILLCORNER per attivazione puliture in doppio --- LuaLibs/WallExec.lua | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/LuaLibs/WallExec.lua b/LuaLibs/WallExec.lua index 81360a3..6fd50ce 100644 --- a/LuaLibs/WallExec.lua +++ b/LuaLibs/WallExec.lua @@ -907,15 +907,17 @@ local function SetMirroredOperations() local vMillings = {} -- raccolgo le fresature non giĆ  fatte in doppio - local nOperId = EgtGetNextOperation( EgtGetPhaseDisposition( 1)) - while nOperId do - EgtSetCurrMachining( nOperId) - local sUserNotes = EgtGetMachiningParam( MCH_MP.USERNOTES) - local bIsDouble = ( EgtGetValInNotes( sUserNotes, 'DOUBLE', 'i') or 0) > 0 - if not bIsDouble and EgtGetOperationType( nOperId) == MCH_OY.MILLING then - table.insert( vMillings, nOperId) + if WD.DOUBLE_HEAD_MILLCORNER then + local nOperId = EgtGetNextOperation( EgtGetPhaseDisposition( 1)) + while nOperId do + EgtSetCurrMachining( nOperId) + local sUserNotes = EgtGetMachiningParam( MCH_MP.USERNOTES) + local bIsDouble = ( EgtGetValInNotes( sUserNotes, 'DOUBLE', 'i') or 0) > 0 + if not bIsDouble and EgtGetOperationType( nOperId) == MCH_OY.MILLING then + table.insert( vMillings, nOperId) + end + nOperId = EgtGetNextOperation( nOperId) end - nOperId = EgtGetNextOperation( nOperId) end -- ordinamento delle operazioni raccolte secondo X e poi Y crescente