diff --git a/BatchProcessNew.lua b/BatchProcessNew.lua index 7496722..1cfee79 100644 --- a/BatchProcessNew.lua +++ b/BatchProcessNew.lua @@ -626,7 +626,8 @@ if ( BEAM.FLAG == 0 and ( bToProcess or bToRecalc)) or BEAM.FLAG == 3 or BEAM.F end -- *** Genero programma CN *** ( se richiesto) -if BEAM.FLAG == 0 or BEAM.FLAG == 4 then +local bIsGenerationEnabled = ( EgtGetNumberFromIni( 'Mach', 'NoPartProgram', 0, EgtGetIniFile()) == 0) +if bIsGenerationEnabled and ( BEAM.FLAG == 0 or BEAM.FLAG == 4) then EgtOutLog( ' +++ Generating NC part program >>>') local sInfo = 'EgtCAM5' .. EgtIf( EgtIs64bit(), ' 64bit', '') if EgtGetExeVersion then