3dPrinting :

- ora stima prima di generazione per poterne usare i risultati
- aggiunta Pause alla fine della compilazione.
This commit is contained in:
Dario Sassi
2026-07-17 15:33:00 +02:00
parent ac2297fcb3
commit a47b4246f6
2 changed files with 11 additions and 3 deletions
+9 -3
View File
@@ -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)