Files
egwwindowlua/CAMAuto/LuaLibs/WinCAMConst.lua
SaraP a85a50d7c1 DataWindow :
- modificato nome file WinConst in CAMAuto per evitare conflitto con Designing
- sistemato caricamento librerie.
2026-01-14 09:28:10 +01:00

34 lines
856 B
Lua

-- WinCAMConst.lua libreria di costanti EgalWare per progetto serramenti 2024/10/07
-- Tavola per definizione modulo (serve ma non usata)
local WinCAMConst = {}
EgtOutLog( 'WinCAMConst started', 1)
-- Funzione per rendere non modificabili le costanti
local protect = function(tbl)
return setmetatable({}, {
__index = tbl,
__newindex = function(t, key, value)
error("attempting to change constant " ..
tbl[1]..tostring(key) .. " to " .. tostring(value), 2)
end
})
end
-- Costanti fasi di lavorazione
MACH_GROUP = {
'MACH_GROUP.',
HEAD_CUT = 1,
FEATURE_BEFORE_PROFILE = 2,
HEAD_PROFILE = 3,
LONG_PROFILE = 4,
MIXED_PROFILE = 5,
FEATURE_AFTER_PROFILE = 6,
STRIPCUT = 7,
PAUSE = 8,
MACH_AFTER_PAUSE = 9
}
MACH_GROUP = protect( MACH_GROUP)
return WinCAMConst