From 66541894ea7691b90563aaaac7e399119037b500 Mon Sep 17 00:00:00 2001 From: DarioS Date: Mon, 26 Sep 2022 14:11:59 +0200 Subject: [PATCH] DataBeam : - modifica in HeadCut per flag Q05 tipo lavorazione con trave grande non inizializzato. --- LuaLibs/ProcessHeadCut.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/LuaLibs/ProcessHeadCut.lua b/LuaLibs/ProcessHeadCut.lua index cef537c..11abebf 100644 --- a/LuaLibs/ProcessHeadCut.lua +++ b/LuaLibs/ProcessHeadCut.lua @@ -1,4 +1,4 @@ --- ProcessSplit.lua by Egaltech s.r.l. 2022/08/18 +-- ProcessSplit.lua by Egaltech s.r.l. 2022/09/26 -- Gestione calcolo tagli di testa per Travi -- 2022/05/31 Aggiunta gestione sezioni alte e larghe con taglio di tipo diceCut. -- 2022/06/10 Per sezioni alte e larghe aggiunta gestione finitura in base a sovramateriale e a parametro Q05 dell' eventuale lavorazione sostituita. @@ -206,12 +206,13 @@ function ProcessHeadCut.Make( Proc, nPhase, nRawId, nPartId, dOvmHead, bNeedHCut -- se taglio per sezioni alte e larghe if bBigSectionCut then if dOvmHead > 0 then + local nQ05 = EgtGetInfo( nOriId or GDB_ID.NULL, 'Q05', 'i') or 0 -- se finitura con lama - if not nOriId or EgtGetInfo( nOriId, 'Q05', 'i') == 1 or EgtGetInfo( nOriId, 'Q05', 'i') == 0 then + if nQ05 == 1 or nQ05 == 0 then local bOk, sErr = Cut.Make( Proc, nPhase, nRawId, nPartId, dOvmHead, nil, false, true, nil, nil, dCurrOvmT) if not bOk then return bOk, sErr end -- se finitura con truciolatore - elseif EgtGetInfo( nOriId, 'Q05', 'i') == 2 then + elseif nQ05 == 2 then local b3Solid = EgtGetBBoxGlob( EgtGetFirstNameInGroup( nPartId, 'Box') or GDB_ID.NULL, GDB_BB.STANDARD) if not b3Solid then local sErr = 'Error : part box not found'