DataWall :

- aggiunta gestione tasche (solo svuotatura).
This commit is contained in:
Dario Sassi
2020-06-30 17:37:29 +00:00
parent 8d246c811e
commit ea9f74c0ad
5 changed files with 316 additions and 16 deletions
+8 -8
View File
@@ -1,13 +1,13 @@
-- ProcessDrill.lua by Egaltech s.r.l. 2020/06/24
-- WProcessDrill.lua by Egaltech s.r.l. 2020/06/24
-- Gestione calcolo forature per Pareti
-- Tabella per definizione modulo
local ProcessDrill = {}
local WPD = {}
-- Include
require( 'EgtBase')
EgtOutLog( ' ProcessDrill started', 1)
EgtOutLog( ' WProcessDrill started', 1)
-- Dati
local WD = require( 'WallData')
@@ -15,13 +15,13 @@ local WM = require( 'WMachiningLib')
---------------------------------------------------------------------
-- Riconoscimento della feature
function ProcessDrill.Identify( Proc)
function WPD.Identify( Proc)
return ( ( Proc.Grp == 3 or Proc.Grp == 4) and Proc.Prc == 40)
end
---------------------------------------------------------------------
-- Recupero dati foro e adattamento se speciale
function ProcessDrill.GetData( Proc)
function WPD.GetData( Proc)
-- verifico se foro da adattare
if EgtExistsInfo( Proc.Id, 'DiamUser') then
local AuxId = EgtGetInfo( Proc.Id, 'AUXID', 'i')
@@ -41,7 +41,7 @@ end
---------------------------------------------------------------------
-- Classificazione della feature
function ProcessDrill.Classify( Proc, b3Raw)
function WPD.Classify( Proc, b3Raw)
-- recupero e verifico l'entità foro
local AuxId = EgtGetInfo( Proc.Id, 'AUXID', 'i') or 0
if AuxId then AuxId = AuxId + Proc.Id end
@@ -69,7 +69,7 @@ end
---------------------------------------------------------------------
-- Applicazione della lavorazione
function ProcessDrill.Make( Proc, nRawId, b3Raw)
function WPD.Make( Proc, nRawId, b3Raw)
-- recupero e verifico l'entità foro
local AuxId = EgtGetInfo( Proc.Id, 'AUXID', 'i') or 0
if AuxId then AuxId = AuxId + Proc.Id end
@@ -186,4 +186,4 @@ function ProcessDrill.Make( Proc, nRawId, b3Raw)
end
---------------------------------------------------------------------
return ProcessDrill
return WPD