diff --git a/BatchProcessNew.lua b/BatchProcessNew.lua index 31cd284..03811b7 100644 --- a/BatchProcessNew.lua +++ b/BatchProcessNew.lua @@ -388,9 +388,9 @@ if bToProcess then else PARTS[i].b3PartOriginal = b3Solid end - if BD.MAX_LENGTH and BD.MAX_LENGTH > 10 and b3Solid:getDimX() > BD.MAX_LENGTH then + if BeamData.MAX_LENGTH and BeamData.MAX_LENGTH > 10 and b3Solid:getDimX() > BeamData.MAX_LENGTH then local sOut = 'Piece-Length (' .. EgtNumToString( b3Solid:getDimX(), 2) .. ') ' .. - 'out of machine limits (' .. EgtNumToString( BD.MAX_LENGTH, 2) .. ') ' + 'out of machine limits (' .. EgtNumToString( BeamData.MAX_LENGTH, 2) .. ') ' BEAM.ERR = 17 BEAM.MSG = sOut WriteErrToLogFile( BEAM.ERR, BEAM.MSG) @@ -456,9 +456,9 @@ if bToProcess then else PARTS[i].b3PartOriginal = b3Solid end - if BD.MAX_LENGTH and BD.MAX_LENGTH > 10 and b3Solid:getDimX() > BD.MAX_LENGTH then + if BeamData.MAX_LENGTH and BeamData.MAX_LENGTH > 10 and b3Solid:getDimX() > BeamData.MAX_LENGTH then local sOut = 'Piece-Length (' .. EgtNumToString( b3Solid:getDimX(), 2) .. ') ' .. - 'out of machine limits (' .. EgtNumToString( BD.MAX_LENGTH, 2) .. ') ' + 'out of machine limits (' .. EgtNumToString( BeamData.MAX_LENGTH, 2) .. ') ' BEAM.ERR = 17 BEAM.MSG = sOut WriteErrToLogFile( BEAM.ERR, BEAM.MSG) diff --git a/Process.lua b/Process.lua index 1f9413f..0baf585 100644 --- a/Process.lua +++ b/Process.lua @@ -131,9 +131,9 @@ local function MyProcessInputData() else PARTS[i].b3PartOriginal = b3Solid end - if BD.MAX_LENGTH and BD.MAX_LENGTH > 10 and b3Solid:getDimX() > BD.MAX_LENGTH then + if BeamData.MAX_LENGTH and BeamData.MAX_LENGTH > 10 and b3Solid:getDimX() > BeamData.MAX_LENGTH then local sOut = 'Lunghezza (' .. EgtNumToString( b3Solid:getDimX(), 2) .. ') ' .. - 'oltre i limiti della macchina (' .. EgtNumToString( BD.MAX_LENGTH, 2) .. ') ' + 'oltre i limiti della macchina (' .. EgtNumToString( BeamData.MAX_LENGTH, 2) .. ') ' EgtOutLog( sOut) EgtOutBox( sOut, 'Lavora Travi', 'WARNING') EgtDraw()