DataBeam :
- migliorie e correzioni varie.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
-- ProcessFreeContour.lua by Egaltech s.r.l. 2020/11/07
|
||||
-- ProcessFreeContour.lua by Egaltech s.r.l. 2020/11/20
|
||||
-- Gestione calcolo profilo libero per Travi
|
||||
|
||||
-- Tabella per definizione modulo
|
||||
@@ -451,9 +451,10 @@ local function MakeByMill( Proc, nPhase, nRawId, nPartId, dOvmHead)
|
||||
for j = 1, nDouble do
|
||||
local sName
|
||||
local nMchId
|
||||
-- se ho smusso abilitato e gruppo 0 e profondità geometria minore della profondità smusso,
|
||||
local bEnableCham
|
||||
-- se ho smusso abilitato e profondità geometria minore della profondità smusso,
|
||||
-- applico lavorazione smusso
|
||||
if nChamfer > 0 and Proc.Grp == 0 and dOriDepth <= dDepthCham then
|
||||
if nChamfer > 0 and dOriDepth <= dDepthCham then
|
||||
-- inserisco la lavorazione
|
||||
sName = 'FreeCham_' .. ( EgtGetName( Proc.Id) or tostring( Proc.Id))
|
||||
nMchId = EgtAddMachining( sName, sChamfer)
|
||||
@@ -465,6 +466,7 @@ local function MakeByMill( Proc, nPhase, nRawId, nPartId, dOvmHead)
|
||||
dOffsetPar = 0
|
||||
-- assegno affondamento
|
||||
EgtSetMachiningParam( MCH_MP.DEPTH, dDepthCham)
|
||||
bEnableCham = true
|
||||
else
|
||||
-- inserisco la lavorazione
|
||||
sName = 'Free_' .. ( EgtGetName( Proc.Id) or tostring( Proc.Id))
|
||||
@@ -521,9 +523,11 @@ local function MakeByMill( Proc, nPhase, nRawId, nPartId, dOvmHead)
|
||||
local bFinish
|
||||
local dOriOffset = 0
|
||||
-- se parametro sovramateriale è maggiore di 0 abilito la finitura extra
|
||||
if dOffsetPar > 0 then
|
||||
if not bEnableCham and dOffsetPar > 0 then
|
||||
EgtSetMachiningParam( MCH_MP.OFFSR, ( dOriOffset + dOffsetPar))
|
||||
bFinish = true
|
||||
elseif bEnableCham and Proc.Grp ~= 0 then
|
||||
EgtSetMachiningParam( MCH_MP.OFFSR, dDepthCham)
|
||||
end
|
||||
-- eseguo
|
||||
if not EgtApplyMachining( true, false) then
|
||||
|
||||
Reference in New Issue
Block a user