From dbf668863ada09d95a729f4fc660bdbbad530d3a Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Mon, 8 Sep 2025 18:14:37 +0200 Subject: [PATCH] - NestProcess modificata per riflettere nuovi FLAg da BeamWall - in PanelSaw modificato il nome del file esportato --- LuaLibs/PanelSaw.lua | 4 ++-- NestProcess.lua | 21 ++++++++++++--------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/LuaLibs/PanelSaw.lua b/LuaLibs/PanelSaw.lua index 5ddc7c0..8dd5f4e 100644 --- a/LuaLibs/PanelSaw.lua +++ b/LuaLibs/PanelSaw.lua @@ -314,14 +314,14 @@ function PanelSaw.GenerateCuttingList( sOutputType) for key, PanelListSingleMaterial in pairs( PanelsGroupedByMaterial) do -- path in cui scrivere i file - local sCurrentNgePath = EgtSplitPath( EgtGetCurrFilePath()) + local sCurrentNgePath, sCurrentNgeName = EgtSplitPath( EgtGetCurrFilePath()) if sOutputType then -- costruzione lista istruzioni local LinesToWrite = BuildCuttingList( PanelListSingleMaterial, sOutputType) -- scrittura file - local sFilename = sCurrentNgePath .. 'CutList_' .. key .. '.' .. sOutputType + local sFilename = sCurrentNgePath .. 'CutList-' .. sCurrentNgeName .. '-' .. key .. '.' .. sOutputType local hFile, nFileErr = io.open( sFilename, 'w') if not hFile then EgtOutLog( 'Error creating cutting list : IO error ' .. tostring( nFileErr)) diff --git a/NestProcess.lua b/NestProcess.lua index dcde14a..cad8109 100644 --- a/NestProcess.lua +++ b/NestProcess.lua @@ -18,13 +18,14 @@ NEST.MACH_AREA_USE_OTHER_DIAM = 1 -- 0 NEST.MACH_AREA_OTHER_DIAM = 200 NEST.MACH_AREA_IGNORE_3rdFACE = 1 -- 0 +if NEST.FLAG ~= 11 then + local sLog = 'NestProcess : ' .. NEST.FILE .. ', ' .. NEST.MACHINE .. ', ' .. LEN[1] .. ', ' .. WIDTH[1] + EgtOutLog( sLog) -local sLog = 'NestProcess : ' .. NEST.FILE .. ', ' .. NEST.MACHINE .. ', ' .. LEN[1] .. ', ' .. WIDTH[1] -EgtOutLog( sLog) - --- Cancello file di log specifico -local sLogFile = EgtChangePathExtension( NEST.FILE, '.txt') -EgtEraseFile( sLogFile) + -- Cancello file di log specifico + local sLogFile = EgtChangePathExtension( NEST.FILE, '.txt') + EgtEraseFile( sLogFile) +end -- Imposto direttorio libreria specializzata per Travi EgtAddToPackagePath( NEST.BASEDIR .. '\\LuaLibs\\?.lua') @@ -1688,7 +1689,7 @@ EgtResetCurrMachGroup() -- modalità nesting utile per cabinet: un grezzo per ogni pezzo, pezzo centrato nel grezzo. Il grezzo non viene preso da magazzino ma creato ad hoc, con un dato sovramateriale. -- il numero del MachGroup deve coincidere con il PDN del pezzo originale -if WD.ENABLE_SIMPLE_NESTING then +if NEST.FLAG == 2 then -- sovramateriale richiesto local dOverMaterial = max( 0, NEST.KERF or 2) @@ -1791,10 +1792,12 @@ if WD.ENABLE_SIMPLE_NESTING then EgtOutLog( ' +++ Generating Cutting List') + return - -- TEST +elseif NEST.FLAG == 11 then + + -- TODO gestire tipo di cutting list da generare (PANELSAW) PanelSaw.GenerateCuttingList( 'Cutty') - -- TEST return end