From 7ced9ec2f412ed50e366779ab238457308706c6c Mon Sep 17 00:00:00 2001 From: Emmanuele Sassi Date: Mon, 24 Oct 2022 12:58:26 +0200 Subject: [PATCH] - modifiche per assegnazione nome iso da programma --- LuaLibs/RunGcodeGenerate.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/LuaLibs/RunGcodeGenerate.lua b/LuaLibs/RunGcodeGenerate.lua index b019cb6..6d3ead1 100644 --- a/LuaLibs/RunGcodeGenerate.lua +++ b/LuaLibs/RunGcodeGenerate.lua @@ -129,7 +129,11 @@ function RunGcodeGenerate.Exec() -- Genero il programma CN local sInfo = 'EgtCAM5 ver.' .. EgtGetExeVersion() .. ' - ' .. sPath - local bGenOk = EgtGenerate( '', sInfo) + local sISOFilePath = '' + if PRINT and PRINT.PROGRAM == 1 and PRINT.ISOFILEPATH then + sISOFilePath = PRINT.ISOFILEPATH + end + local bGenOk = EgtGenerate( sISOFilePath, sInfo) if bGenOk then EgtEstimate('') end