From a47b4246f603a6caaf8e09413bed8e91825f4086 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Fri, 17 Jul 2026 15:33:00 +0200 Subject: [PATCH] 3dPrinting : - ora stima prima di generazione per poterne usare i risultati - aggiunta Pause alla fine della compilazione. --- Compile.bat | 2 ++ LuaLibs/RunGcodeGenerate.lua | 12 +++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Compile.bat b/Compile.bat index 48fb22b..ea3397a 100644 --- a/Compile.bat +++ b/Compile.bat @@ -19,3 +19,5 @@ REM Compilazione 32 e 64 bit \EgtProg\Dll32\luac54 -o bin\PrepareExport.lua -s PrepareExport.lua \EgtProg\Dll32\luac54 -o bin\Slicing.lua -s Slicing.lua \EgtProg\Dll32\luac54 -o bin\Version.lua -s Version.lua + +Pause \ No newline at end of file diff --git a/LuaLibs/RunGcodeGenerate.lua b/LuaLibs/RunGcodeGenerate.lua index 4771d3f..5f42a13 100644 --- a/LuaLibs/RunGcodeGenerate.lua +++ b/LuaLibs/RunGcodeGenerate.lua @@ -149,6 +149,15 @@ function RunGcodeGenerate.Exec() -- aggiorno interfaccia EgtProcessEvents( 680, 0) + -- Eseguo la stima + if EgtEstimate( '') then + local KEY_TOTTIME = 'Ttot' + -- riporto il tempo totale nel layer di lavoro + local nTtot = EgtGetInfo( EgtGetCurrMachGroup(), KEY_TOTTIME, 'i') or 0 + local nTfsId = EgtGetFirstNameInGroup( GDB_ID.ROOT, LAY_TFSCALC) or GDB_ID.NULL + EgtSetInfo( nTfsId, KEY_TOTTIME, nTtot) + end + -- Genero il programma CN local sInfo = 'Icarus ver.' .. EgtGetExeVersion() .. ' - ' .. sPath local sISOFilePath = '' @@ -156,9 +165,6 @@ function RunGcodeGenerate.Exec() sISOFilePath = PRINT.ISOFILEPATH end local bGenOk = EgtGenerate( sISOFilePath, sInfo) - if bGenOk then - EgtEstimate('') - end -- aggiorno interfaccia EgtProcessEvents( 690, 0)