diff --git a/LuaLibs/ProcessLongCut.lua b/LuaLibs/ProcessLongCut.lua index 259e41d..424ceb2 100644 --- a/LuaLibs/ProcessLongCut.lua +++ b/LuaLibs/ProcessLongCut.lua @@ -34,6 +34,7 @@ -- 2023/11/30 Calcolo elevazione velocizzato e centralizzato tramite la funzione GetFaceElevation. -- 2024/01/18 Implementata GetBlockedAxis che gestisce gli assi bloccati per tutti i tipi di utensile. -- 2024/01/22 Implementata gestione seghe a catena multiple. +-- 2024/05/09 In Make, allungamento percorso ingresso per evitare collisioni durante approccio pezzo quando si setta OutRaw=3 -- Tabella per definizione modulo local ProcessLongCut = {} @@ -1426,6 +1427,21 @@ function ProcessLongCut.Make( Proc, nPhase, nRawId, nPartId, bCustUseBlade, nCus if k < nO then local sNotes = 'OutRaw=3;' EgtSetMachiningParam( MCH_MP.USERNOTES, sNotes) + -- aumento ingresso su spezzoni per evitare collisione durante approccio pezzo + if bFront then + -- se invertito si allunga ingresso su tutti tranne su ultimo + if bInvert and i ~= nC then + EgtSetMachiningParam( MCH_MP.LIPERP, ( nO - k) * dStep + 10) + -- se non invertito si allunga solo il primo + elseif not bInvert and i == 1 then + EgtSetMachiningParam( MCH_MP.LIPERP, ( nO - k) * dStep + 10) + end + else + -- se invertito si allunga ingresso su tutti + if bInvert then + EgtSetMachiningParam( MCH_MP.LIPERP, ( nO - k) * dStep + 10) + end + end end -- eseguo if not ML.ApplyMachining( true, false) then