96a8ef1603
- altri aggiustamenti per parte manuale.
32 lines
798 B
Lua
32 lines
798 B
Lua
-- ManProcOneMachGroup.lua by Egalware s.r.l. 2026/07/25
|
|
-- Creazione delle lavorazioni del MachGroup selezionato
|
|
|
|
-- Intestazioni
|
|
require( 'EgtBase')
|
|
_ENV = EgtProtectGlobal()
|
|
EgtEnableDebug( false)
|
|
|
|
|
|
-- scelta della macchinata da aprire
|
|
local sOpenDirPath = 'C:\\EgtData\\EgtWindowMaker\\Projects\\*.bwe'
|
|
sOpenFilePath = EgtFileDialog( true, sOpenDirPath, "Window Project Files (*.bwe)|*.bwe||")
|
|
if not sOpenFilePath then
|
|
return
|
|
end
|
|
|
|
local _, sBaseDir = EgtEndsWith( EgtGetSourceDir(), '\\')
|
|
|
|
_G.WIN = { BASEDIR = sBaseDir,
|
|
FILE = sOpenFilePath,
|
|
MACHINE = 'Saomad-Just3500',
|
|
FLAG = 1}
|
|
|
|
-- aggiungo le lavorazioni
|
|
local bOk, sErr = pcall( dofile, sBaseDir .. '\\BatchProcessWin.lua')
|
|
|
|
-- salvo il file
|
|
EgtSaveFile()
|
|
|
|
EgtSetCurrMachGroup()
|
|
EgtZoom( SCE_ZM.ALL)
|