From 4d096c88ba91e90a6f7f84419b51b740858cf582 Mon Sep 17 00:00:00 2001 From: DarioS Date: Tue, 21 Dec 2021 05:29:10 +0100 Subject: [PATCH] DataWall : - In FreeContour a taglio di lama aggiunta gestione SCC per testa Gearbox. --- LuaLibs/WProcessFreeContour.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/LuaLibs/WProcessFreeContour.lua b/LuaLibs/WProcessFreeContour.lua index 6ccfd6d..da65f8a 100644 --- a/LuaLibs/WProcessFreeContour.lua +++ b/LuaLibs/WProcessFreeContour.lua @@ -1,6 +1,7 @@ --- ProcessFreeContour.lua by Egaltech s.r.l. 2021/11/15 +-- ProcessFreeContour.lua by Egaltech s.r.l. 2021/12/10 -- Gestione calcolo profilo libero per Pareti -- 2021/11/15 Penna e chiodature sono sempre riportate sulla faccia sopra anche se nel progetto sono sotto. +-- 2021/12/10 In taglio con lama aggiunta gestione SCC per testa Gearbox. -- Tabella per definizione modulo local WPF = {} @@ -1612,6 +1613,7 @@ local function AddCuts( sCutting, vFace, Proc, nRawId, b3Raw, dSawThick) EgtSetInfo( nMchId, 'Part', Proc.PartId) local dSpeed = EgtGetMachiningParam( MCH_MP.SPEED) local sHead = EgtTdbGetCurrToolParam( MCH_TP.HEAD) + local bGearbox = EgtGetInfo( EgtGetHeadId( sHead) or GDB_ID.NULL, 'Gearbox', 'b') -- aggiungo geometria EgtSetMachiningGeometry( { { Proc.Id, vFace[i].Fac}}) -- assegno affondamento @@ -1654,7 +1656,11 @@ local function AddCuts( sCutting, vFace, Proc, nRawId, b3Raw, dSawThick) end EgtSetMachiningParam( MCH_MP.ENDADDLEN, dEal) -- posizione braccio porta testa - EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.NONE) + if not bGearbox then + EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.NONE) + else + EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_NEAR) + end -- eseguo if not EgtApplyMachining( true, false) then -- provo a invertire direzione, lato di lavoro e attacco/uscita