DataBeam :

- piccole modifiche per evitare rotazioni inutili asse C con svuotature verticali
- anche nei fori interpolati si esclude verifica sfrido con Vmill.
This commit is contained in:
Dario Sassi
2019-04-24 09:42:49 +00:00
parent f1d1950619
commit fc441ff8b2
4 changed files with 12 additions and 10 deletions
+4 -2
View File
@@ -45,14 +45,14 @@ end
---------------------------------------------------------------------
local function FindDrilling( dDiam)
-- ricerca sulle forature con punte, dal diametro maggiore al minore
-- ricerca sulle forature, dal diametro maggiore al minore
for i = #Drillings, 1, -1 do
local Drilling = Drillings[i]
if ( Drilling.Type == 'Drill' and Drilling.Diam < dDiam + 10 * GEO.EPS_SMALL and Drilling.Diam > dDiam - BD.DRILL_TOL - 10 * GEO.EPS_SMALL) then
return i, Drilling.Name, Drilling.Type
end
end
-- ricerca sull svuotature con frese, dal diametro maggiore al minore
-- ricerca sulle svuotature, dal diametro maggiore al minore
for i = #Drillings, 1, -1 do
local Drilling = Drillings[i]
if ( Drilling.Type == 'Pocket' and dDiam > Drilling.Diam + 10 * GEO.EPS_SMALL) then
@@ -169,6 +169,8 @@ function ProcessDrill.Make( Proc, nPhase, nRawId, nPartId)
if Proc.Flg == 2 or Proc.Flg == -2 then
EgtSetMachiningParam( MCH_MP.DEPTH, dLen / 2 + BD.DRILL_OVERLAP)
end
-- dichiaro non si generano sfridi per VMill
EgtSetMachiningParam( MCH_MP.USERNOTES, 'VMRS=0;')
-- eseguo
if not EgtApplyMachining( true, false) then
local _, sErr = EgtGetLastMachMgrError()