From 003b14f02edfffbdb35d2011a705defa4c4035e0 Mon Sep 17 00:00:00 2001 From: DarioS Date: Sat, 26 Feb 2022 18:13:44 +0100 Subject: [PATCH] DataBeam : - aggiunto controllo attrezzaggio prima di simulazione. --- BatchProcess.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/BatchProcess.lua b/BatchProcess.lua index 5c68a1a..2983ed7 100644 --- a/BatchProcess.lua +++ b/BatchProcess.lua @@ -469,6 +469,20 @@ end -- *** Eseguo simulazione con verifica collisione in cieco *** if ( BEAM.FLAG == 0 and ( bToProcess or bToRecalc)) or BEAM.FLAG == 3 or BEAM.FLAG == 4 then EgtOutLog( ' +++ Simulating with collision check >>>') + -- verifico setup + local bSetUpOk, SetUpErrors = EgtVerifyCurrSetup() + if not bSetUpOk then + local sToolsList = "" + for ToolIndex = 1, #SetUpErrors do + sToolsList = sToolsList .. SetUpErrors[ToolIndex] + if ToolIndex ~= #SetUpErrors then + sToolsList = sToolsList .. ", " + end + end + WriteErrToLogFile( 19, 'Error in setup: tool/s ' .. sToolsList .. ' not found', 0, 0, 0) + return + end + -- lancio simulazione local bSimOk, nErr, sErr = EgtSimulate() if not bSimOk then if nErr == MCH_SHE.INIT then