From 0ca5f92b96dfd3ca2e4858ff800cf58111d1088e Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Fri, 3 Apr 2026 16:13:15 +0200 Subject: [PATCH] =?UTF-8?q?-=20tolto=20paraemtro=20generale=20GEN=5FbTestA?= =?UTF-8?q?lternative,=20sostituito=20da=20GEN=5FsPiecesLoadingPosition=20?= =?UTF-8?q?=3D=3D=20'FULL=5FPRE=5FROTATION'.=20Se=20utente=20abilita=20ric?= =?UTF-8?q?erca=20delle=20prerotazioni=20anche=20a=2090=C2=B0,=20significa?= =?UTF-8?q?=20che=20accetta=20anche=20ottimizzazioni=20nel=20nesting=20ruo?= =?UTF-8?q?tando=20pezzo=20a=2090=C2=B0,=20probabilmente=20fibra=20non=20i?= =?UTF-8?q?mportante=20-=20In=20BatchProcessNew,=20quando=20si=20crea=20la?= =?UTF-8?q?=20barra,=20il=20paraemtro=20FlipRot=20dipende=20dal=20BEAM.FLA?= =?UTF-8?q?G=20=3D=3D=2010?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BatchProcessNew.lua | 3 ++- LuaLibs/BeamExec.lua | 4 ++-- Strategies/GeneralParameters.json | 11 ----------- 3 files changed, 4 insertions(+), 14 deletions(-) diff --git a/BatchProcessNew.lua b/BatchProcessNew.lua index aa6be2a..3391017 100644 --- a/BatchProcessNew.lua +++ b/BatchProcessNew.lua @@ -549,7 +549,7 @@ if bToProcess then end -- Sistemo le travi nel grezzo - local bPbOk, sPbErr = BeamExec.ProcessBeams( dRawW, dRawH, dRawL, dOvmHead, nil, PARTS, BEAM.FLAG ~= 6, false) + local bPbOk, sPbErr = BeamExec.ProcessBeams( dRawW, dRawH, dRawL, dOvmHead, nil, PARTS, BEAM.FLAG ~= 6, BEAM.FLAG == 10) if not bPbOk then BEAM.ERR = 18 BEAM.MSG = sPbErr @@ -638,6 +638,7 @@ if bToProcess then BeamExec.GetStrategiesFromJSONinBD( PARTS[i].sAISetupConfig) PARTS[i].GeneralParameters = BeamLib.GetPieceGeneralParameters( PARTS[i], GENERAL_PARAMETERS_JSON) TIMER:stopElapsed('Json') + -- parametro FlipRot sempre a false perchè a barra già creata non si possono più ruotare i pezzi PARTS[i].CombinationList = BeamExec.GetAvailableCombinations( PARTS[i], false) -- sovramateriale in testa al pezzo diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index 5356408..6c27d39 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -1942,7 +1942,7 @@ function BeamExec.ProcessAlternatives( PARTS) local bTryToReProcess = false -- se non serve trovare altre soluzioni, si esce subito - if not ( PARTS[nPart].GeneralParameters.GEN_bTestAlternative and not PARTS[nPart].bSquareSection) and not PARTS[nPart].GeneralParameters.GEN_bGetAlternativesNesting2D then + if not ( PARTS[nPart].GeneralParameters.GEN_sPiecesLoadingPosition == 'FULL_PRE_ROTATION' and not PARTS[nPart].bSquareSection) and not PARTS[nPart].GeneralParameters.GEN_bGetAlternativesNesting2D then return end @@ -1968,7 +1968,7 @@ function BeamExec.ProcessAlternatives( PARTS) local TotalCombiToTest = {} -- se serve calcolare soluzione alternativa ruotata di 90° - if PARTS[nPart].GeneralParameters.GEN_bTestAlternative and not PARTS[nPart].bSquareSection then + if PARTS[nPart].GeneralParameters.GEN_sPiecesLoadingPosition == 'FULL_PRE_ROTATION' and not PARTS[nPart].bSquareSection then local CombinationListToCheck = {} for i = 1, #PARTS[nPart].CombinationList do local nUnloadPos = PARTS[nPart].nInitialPosition diff --git a/Strategies/GeneralParameters.json b/Strategies/GeneralParameters.json index 8e918ce..69eabef 100644 --- a/Strategies/GeneralParameters.json +++ b/Strategies/GeneralParameters.json @@ -41,17 +41,6 @@ "sMessageId": " ", "sMinUserLevel": "1" }, - { - "nGroup": "PIECE LOADING", - "sName": "GEN_bTestAlternative", - "sNameNge": "TEST_ALTERNATIVE", - "sValue": "false", - "sDescriptionShort": "Enable the possibility to load the piece 90° turned", - "sDescriptionLong": "", - "sType": "b", - "sMessageId": " ", - "sMinUserLevel": "1" - }, { "nGroup": "PIECE LOADING", "sName": "GEN_bGetAlternativesNesting2D",