DataBeam :

- migliorato ordinamento fori
- riunite FindMilling, .... in una unica libreria
- altre piccole migliorie.
This commit is contained in:
Dario Sassi
2019-04-26 15:06:31 +00:00
parent fc441ff8b2
commit 998624035b
30 changed files with 354 additions and 710 deletions
+2 -13
View File
@@ -12,7 +12,7 @@ EgtOutLog( ' ProcessPocket started', 1)
-- Dati
local BD = require( 'BeamData')
local Pocketings = require( 'PocketingData')
local ML = require( 'MachiningLib')
---------------------------------------------------------------------
-- Riconoscimento della feature
@@ -34,17 +34,6 @@ function ProcessPocket.Classify( Proc)
return true, bDown
end
---------------------------------------------------------------------
local function FindPocketing( sType)
for i = 1, #Pocketings do
local Pocketing = Pocketings[i]
if Pocketing.Type == sType then
return i, Pocketing.Name
end
end
return 0
end
---------------------------------------------------------------------
-- Applicazione della lavorazione
function ProcessPocket.Make( Proc, nPhase, nRawId, nPartId)
@@ -65,7 +54,7 @@ function ProcessPocket.Make( Proc, nPhase, nRawId, nPartId)
return false, sErr
end
-- recupero la lavorazione
local nPocket, sPocketing = FindPocketing( 'Mortise')
local sPocketing = ML.FindPocketing( 'Mortise')
if not sPocketing then
local sErr = 'Error on process ' .. tostring( Proc.Id) .. ' pocketing not found in library'
EgtOutLog( sErr)