diff --git a/LuaLibs/WProcessFreeContour.lua b/LuaLibs/WProcessFreeContour.lua index 6a5c992..cb0fca0 100644 --- a/LuaLibs/WProcessFreeContour.lua +++ b/LuaLibs/WProcessFreeContour.lua @@ -1,4 +1,4 @@ --- ProcessFreeContour.lua by Egaltech s.r.l. 2021/07/28 +-- ProcessFreeContour.lua by Egaltech s.r.l. 2021/07/29 -- Gestione calcolo profilo libero per Pareti -- Tabella per definizione modulo @@ -1101,8 +1101,6 @@ local function AddMillings( sMilling, vFace, Proc, nRawId, b3Raw, nConeCut, nAdd dMaxDepth = EgtIf( WD.MILL_MAX_DEPTH_AS_MAT, EgtTdbGetCurrToolParam( MCH_TP.MAXMAT), EgtTdbGetCurrToolMaxDepth()) or dMaxDepth end end - -- se entità singola in parte fatta con lama, non lavoro - --if #vFace == 1 and vFace[1].Type ~= 4 then return true end -- verifico se ciclo chiuso local bClosed = ( abs( vFace[1].PrevAng) > 0.1) -- ciclo di inserimento delle fresate sulle facce del contorno in esame @@ -1274,9 +1272,9 @@ local function AddMillings( sMilling, vFace, Proc, nRawId, b3Raw, nConeCut, nAdd EgtSetMachiningParam( MCH_MP.SCC, nSCC) -- altrimenti se devo fare rientranza per inserimento utensile cono 30° elseif nConeCut == 2 then - -- creo la costruzione del percorso + -- eseguo la costruzione del percorso local nPathId, sErr = MakeCustomPath( vGeom, nConeCut, dMillDiam, nAddGrpId, dThick) - if nPathId == 0 then return false, sErr end + if nPathId == 0 then return 0, sErr end EgtSetMachiningGeometry({{ nPathId, -1}}) EgtSetMachiningParam( MCH_MP.STARTADDLEN, dSal) EgtSetMachiningParam( MCH_MP.ENDADDLEN, dEal) @@ -1297,9 +1295,9 @@ local function AddMillings( sMilling, vFace, Proc, nRawId, b3Raw, nConeCut, nAdd EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_XP) -- altrimenti se devo scaricare l'angolo elseif nConeCut == 3 then - -- creo la costruzione del percorso + -- eseguo la costruzione del percorso local nPathId, sErr = MakeCustomPath( vGeom, nConeCut, dMillDiam, nAddGrpId) - if nPathId == 0 then return false, sErr end + if nPathId == 0 then return 0, sErr end EgtSetMachiningGeometry({{ nPathId, -1}}) EgtSetMachiningParam( MCH_MP.STARTADDLEN, dSal) EgtSetMachiningParam( MCH_MP.ENDADDLEN, dEal) diff --git a/LuaLibs/WallExec.lua b/LuaLibs/WallExec.lua index 22d1e40..150a01a 100644 --- a/LuaLibs/WallExec.lua +++ b/LuaLibs/WallExec.lua @@ -363,6 +363,8 @@ 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) + -- Forature + PrevMch = SortMach( nPhase, PrevMch, nPartId, MCH_OY.DRILLING) -- Svuotature PrevMch = SortMach( nPhase, PrevMch, nPartId, MCH_OY.POCKETING) -- Fresature che sono rifiniture di spigoli