DataWall :
- aggiunta gestione Mortise, DtMortise, Mark e Text.
This commit is contained in:
+44
-4
@@ -1,4 +1,4 @@
|
||||
-- WallExec.lua by Egaltech s.r.l. 2021/03/25
|
||||
-- WallExec.lua by Egaltech s.r.l. 2021/04/20
|
||||
-- Libreria esecuzione lavorazioni per Pareti
|
||||
|
||||
-- Tabella per definizione modulo
|
||||
@@ -22,12 +22,20 @@ _G.package.loaded.WallLib = nil
|
||||
_G.package.loaded.WProcessCut = nil
|
||||
_G.package.loaded.WProcessLapJoint = nil
|
||||
_G.package.loaded.WProcessDrill = nil
|
||||
_G.package.loaded.WProcessMortise = nil
|
||||
_G.package.loaded.WProcessDtMortise = nil
|
||||
_G.package.loaded.WProcessMark = nil
|
||||
_G.package.loaded.WProcessText = nil
|
||||
_G.package.loaded.WProcessFreeContour = nil
|
||||
local WM = require( 'WMachiningLib')
|
||||
local WL = require( 'WallLib')
|
||||
local Cut = require( 'WProcessCut')
|
||||
local LapJoint = require( 'WProcessLapJoint')
|
||||
local Drill = require( 'WProcessDrill')
|
||||
local Mortise = require( 'WProcessMortise')
|
||||
local DtMortise = require( 'WProcessDtMortise')
|
||||
local Mark = require( 'WProcessMark')
|
||||
local Text = require( 'WProcessText')
|
||||
local FreeContour = require( 'WProcessFreeContour')
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
@@ -168,6 +176,22 @@ local function ClassifyFeatures( vProc, b3Raw)
|
||||
elseif Drill.Identify( Proc) then
|
||||
local bOk = Drill.Classify( Proc, b3Raw)
|
||||
if not bOk then Proc.Flg = 0 end
|
||||
-- se mortasatura
|
||||
elseif Mortise.Identify( Proc) then
|
||||
local bOk = Mortise.Classify( Proc, b3Raw)
|
||||
if not bOk then Proc.Flg = 0 end
|
||||
-- se mortasatura a coda di rondine
|
||||
elseif DtMortise.Identify( Proc) then
|
||||
local bOk = DtMortise.Classify( Proc, b3Raw)
|
||||
if not bOk then Proc.Flg = 0 end
|
||||
-- se marcatura
|
||||
elseif Mark.Identify( Proc) then
|
||||
local bOk = Mark.Classify( Proc, b3Raw)
|
||||
if not bOk then Proc.Flg = 0 end
|
||||
-- se testo
|
||||
elseif Text.Identify( Proc) then
|
||||
local bOk = Text.Classify( Proc, b3Raw)
|
||||
if not bOk then Proc.Flg = 0 end
|
||||
-- se contorno libero, outile o aperture
|
||||
elseif FreeContour.Identify( Proc) then
|
||||
local bOk = FreeContour.Classify( Proc, b3Raw)
|
||||
@@ -197,7 +221,7 @@ local function AddFeatureMachining( Proc, nRawId, b3Raw)
|
||||
if Cut.Identify( Proc) then
|
||||
-- esecuzione taglio
|
||||
bOk, sErr = Cut.Make( Proc, nRawId, b3Raw)
|
||||
-- se tasca (3/4-030-X)
|
||||
-- se tasca (3/4-030-X) o similari
|
||||
elseif LapJoint.Identify( Proc) then
|
||||
-- esecuzione tasca
|
||||
bOk, sErr = LapJoint.Make( Proc, nRawId, b3Raw)
|
||||
@@ -205,6 +229,22 @@ local function AddFeatureMachining( Proc, nRawId, b3Raw)
|
||||
elseif Drill.Identify( Proc) then
|
||||
-- esecuzione foratura
|
||||
bOk, sErr = Drill.Make( Proc, nRawId, b3Raw)
|
||||
-- se mortasatura (3/4-050-X) o similari
|
||||
elseif Mortise.Identify( Proc) then
|
||||
-- esecuzione mortasatura
|
||||
bOk, sErr = Mortise.Make( Proc, nRawId, b3Raw)
|
||||
-- se mortasatura a coda di rondine (3/4-055-X)
|
||||
elseif DtMortise.Identify( Proc) then
|
||||
-- esecuzione mortasatura a coda di rondine
|
||||
bOk, sErr = DtMortise.Make( Proc, nRawId, b3Raw)
|
||||
-- se marcatura (3/4-060-X)
|
||||
elseif Mark.Identify( Proc) then
|
||||
-- esecuzione marcatura
|
||||
bOk, sErr = Mark.Make( Proc, nRawId, b3Raw)
|
||||
-- se testo (4-061-X)
|
||||
elseif Text.Identify( Proc) then
|
||||
-- esecuzione incisione testo
|
||||
bOk, sErr = Text.Make( Proc, nRawId, b3Raw)
|
||||
-- se contorno libero, outline o apertura ( 0/3/4-250/251/252-X)
|
||||
elseif FreeContour.Identify( Proc) then
|
||||
-- esecuzione contorno
|
||||
@@ -299,10 +339,10 @@ local function SortMachinings( nPhase, PrevMch, nPartId)
|
||||
PrevMch = SortMach( nPhase, PrevMch, nPartId, MCH_OY.MILLING, 'Nail_', true)
|
||||
-- Tagli con sega a catena che sono rifiniture di spigoli
|
||||
PrevMch = SortMach( nPhase, PrevMch, nPartId, MCH_OY.MORTISING, 'Csaw_', false)
|
||||
-- Fresature che sono rifiniture di spigoli
|
||||
PrevMch = SortMach( nPhase, PrevMch, nPartId, MCH_OY.MILLING, 'Clean_', false, 'MOVE_AFTER', false)
|
||||
-- Svuotature
|
||||
PrevMch = SortMach( nPhase, PrevMch, nPartId, MCH_OY.POCKETING)
|
||||
-- Fresature che sono rifiniture di spigoli
|
||||
PrevMch = SortMach( nPhase, PrevMch, nPartId, MCH_OY.MILLING, 'Clean_', false, 'MOVE_AFTER', false)
|
||||
-- Fresature che sono puliture di spigoli
|
||||
PrevMch = SortMach( nPhase, PrevMch, nPartId, MCH_OY.MILLING, 'Clean_', true, 'MOVE_AFTER', false)
|
||||
-- Tagli con lama
|
||||
|
||||
Reference in New Issue
Block a user