DataBeam :

- migliorie e correzioni.
This commit is contained in:
Dario Sassi
2019-07-30 11:33:45 +00:00
parent 8dee1a0c97
commit ca0630ad2a
4 changed files with 60 additions and 19 deletions
+7 -2
View File
@@ -1,4 +1,4 @@
-- ProcessDrill.lua by Egaltech s.r.l. 2019/07/24
-- ProcessDrill.lua by Egaltech s.r.l. 2019/07/29
-- Gestione calcolo forature per Travi
-- Tabella per definizione modulo
@@ -142,9 +142,14 @@ function ProcessDrill.Make( Proc, nPhase, nRawId, nPartId)
-- recupero i dati dell'utensile
local dMaxDepth = 20
if EgtMdbSetCurrMachining( sDrilling) then
local bIsDrilling = ( EgtMdbGetCurrMachiningParam( MCH_MP.TYPE) == MCH_MY.DRILLING)
local sTuuid = EgtMdbGetCurrMachiningParam( MCH_MP.TUUID)
if EgtTdbSetCurrTool( EgtTdbGetToolFromUUID( sTuuid) or '') then
dMaxDepth = EgtTdbGetCurrToolMaxDepth() or dMaxDepth
if bIsDrilling then
dMaxDepth = EgtTdbGetCurrToolParam( MCH_TP.MAXMAT) or dMaxDepth
else
dMaxDepth = EgtTdbGetCurrToolMaxDepth() or dMaxDepth
end
end
end
-- se foro intermedio e inclinato, limito il massimo affondamento