diff --git a/LuaLibs/ProcessMortise.lua b/LuaLibs/ProcessMortise.lua index fcb2478..5cfa542 100644 --- a/LuaLibs/ProcessMortise.lua +++ b/LuaLibs/ProcessMortise.lua @@ -14,6 +14,7 @@ -- 2023/07/21 Correzioni per mortise passanti con curva Aux che guarda in basso. -- 2023/08/10 Modificata scelta SCC per tasche in Y+/- in coda o quasi. -- 2024/01/18 Implementata GetBlockedAxis che gestisce gli assi bloccati per tutti i tipi di utensile. +-- 2024/02/28 Forzata SPIRAL_IN se c'รจ anche un solo lato aperto -- Tabella per definizione modulo local ProcessMortise = {} @@ -463,6 +464,13 @@ function ProcessMortise.Make( Proc, nPhase, nRawId, nPartId, dCurrOvmH) if bRevertSide then EgtSetMachiningParam( MCH_MP.TOOLINVERT, true) end + + -- se ho anche solo un lato aperto, forzo SPIRAL-IN + local vOpen = EgtGetInfo( AuxId, 'OPEN', 'vi') + if vOpen and #vOpen > 0 then + EgtSetMachiningParam( MCH_MP.SUBTYPE, MCH_POCK_SUB.SPIRALIN) + end + -- aggiungo geometria EgtSetMachiningGeometry( {{ AuxId, -1}}) -- sistemo la direzione di lavoro