diff --git a/BatchProcess.lua b/BatchProcess.lua index 3044e66..d0bea7d 100644 --- a/BatchProcess.lua +++ b/BatchProcess.lua @@ -575,7 +575,8 @@ if ( WALL.FLAG == 0 and ( bToProcess or bToRecalc)) or WALL.FLAG == 3 or WALL.F end -- *** Genero programma CN *** ( se richiesto) -if WALL.FLAG == 0 or WALL.FLAG == 4 then +local bIsGenerationEnabled = ( EgtVerifyKeyOption( 110) == false) +if bIsGenerationEnabled and ( WALL.FLAG == 0 or WALL.FLAG == 4) then EgtOutLog( ' +++ Generating NC part program >>>') local sInfo = 'EgtCAM5' .. EgtIf( EgtIs64bit(), ' 64bit', '') if EgtGetExeVersion then diff --git a/BatchProcessNew.lua b/BatchProcessNew.lua index d907819..56bec4f 100644 --- a/BatchProcessNew.lua +++ b/BatchProcessNew.lua @@ -613,7 +613,7 @@ if ( WALL.FLAG == 0 and ( bToProcess or bToRecalc)) or WALL.FLAG == 3 or WALL.F end -- *** Genero programma CN *** ( se richiesto) -local bIsGenerationEnabled = ( EgtGetNumberFromIni( 'Mach', 'NoPartProgram', 0, EgtGetIniFile()) == 0) +local bIsGenerationEnabled = ( EgtVerifyKeyOption( 110) == false) if bIsGenerationEnabled and ( WALL.FLAG == 0 or WALL.FLAG == 4) then EgtOutLog( ' +++ Generating NC part program >>>') local sInfo = 'EgtCAM5' .. EgtIf( EgtIs64bit(), ' 64bit', '')