DataBeam :

- aggiunta gestione scelta utensile in base al raggio in mortase con coda di rondine
- corretta gestione estremi di taglio doppio longitudinale.
This commit is contained in:
Dario Sassi
2020-10-28 08:20:33 +00:00
parent e53777d4c5
commit d720a98ac0
3 changed files with 28 additions and 20 deletions
+7 -5
View File
@@ -1,4 +1,4 @@
-- MachiningLib.lua by Egaltech s.r.l. 2020/10/14
-- MachiningLib.lua by Egaltech s.r.l. 2020/10/27
-- Libreria ricerca lavorazioni per Travi
-- Tabella per definizione modulo
@@ -38,15 +38,17 @@ function MachiningLib.FindCutting( sType)
end
---------------------------------------------------------------------
function MachiningLib.FindMilling( sType, dDepth, sTuuidMstr)
function MachiningLib.FindMilling( sType, dDepth, sTuuidMstr, dMaxDiam)
for i = 1, #Millings do
local Milling = Millings[i]
if Milling.On and Milling.Type == sType and SetCurrMachiningAndTool( Milling.Name) then
local sTuuid = EgtGetMachiningParam( MCH_MP.TUUID)
local dTMaxDepth = EgtTdbGetCurrToolMaxDepth()
if ( not sTuuidMstr or sTuuidMstr == sTuuid) and
( not dDepth or dTMaxDepth > dDepth - GEO.EPS_SMALL) then
return Milling.Name, dTMaxDepth
local dTDiam = EgtTdbGetCurrToolParam( MCH_TP.DIAM)
if ( not dDepth or dTMaxDepth > dDepth - GEO.EPS_SMALL) and
( not sTuuidMstr or sTuuidMstr == sTuuid) and
( not dMaxDiam or dTDiam < dMaxDiam + GEO.EPS_SMALL) then
return Milling.Name, dTMaxDepth, dTDiam
end
end
end