DataWall :
- correzioni a free contour per casi con Q05=2 e 3 - in ottimizzazione aggiunti fori quasi all'inizio.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
-- ProcessFreeContour.lua by Egaltech s.r.l. 2021/07/28
|
||||
-- ProcessFreeContour.lua by Egaltech s.r.l. 2021/07/29
|
||||
-- Gestione calcolo profilo libero per Pareti
|
||||
|
||||
-- Tabella per definizione modulo
|
||||
@@ -1101,8 +1101,6 @@ local function AddMillings( sMilling, vFace, Proc, nRawId, b3Raw, nConeCut, nAdd
|
||||
dMaxDepth = EgtIf( WD.MILL_MAX_DEPTH_AS_MAT, EgtTdbGetCurrToolParam( MCH_TP.MAXMAT), EgtTdbGetCurrToolMaxDepth()) or dMaxDepth
|
||||
end
|
||||
end
|
||||
-- se entità singola in parte fatta con lama, non lavoro
|
||||
--if #vFace == 1 and vFace[1].Type ~= 4 then return true end
|
||||
-- verifico se ciclo chiuso
|
||||
local bClosed = ( abs( vFace[1].PrevAng) > 0.1)
|
||||
-- ciclo di inserimento delle fresate sulle facce del contorno in esame
|
||||
@@ -1274,9 +1272,9 @@ local function AddMillings( sMilling, vFace, Proc, nRawId, b3Raw, nConeCut, nAdd
|
||||
EgtSetMachiningParam( MCH_MP.SCC, nSCC)
|
||||
-- altrimenti se devo fare rientranza per inserimento utensile cono 30°
|
||||
elseif nConeCut == 2 then
|
||||
-- creo la costruzione del percorso
|
||||
-- eseguo la costruzione del percorso
|
||||
local nPathId, sErr = MakeCustomPath( vGeom, nConeCut, dMillDiam, nAddGrpId, dThick)
|
||||
if nPathId == 0 then return false, sErr end
|
||||
if nPathId == 0 then return 0, sErr end
|
||||
EgtSetMachiningGeometry({{ nPathId, -1}})
|
||||
EgtSetMachiningParam( MCH_MP.STARTADDLEN, dSal)
|
||||
EgtSetMachiningParam( MCH_MP.ENDADDLEN, dEal)
|
||||
@@ -1297,9 +1295,9 @@ local function AddMillings( sMilling, vFace, Proc, nRawId, b3Raw, nConeCut, nAdd
|
||||
EgtSetMachiningParam( MCH_MP.SCC, MCH_SCC.ADIR_XP)
|
||||
-- altrimenti se devo scaricare l'angolo
|
||||
elseif nConeCut == 3 then
|
||||
-- creo la costruzione del percorso
|
||||
-- eseguo la costruzione del percorso
|
||||
local nPathId, sErr = MakeCustomPath( vGeom, nConeCut, dMillDiam, nAddGrpId)
|
||||
if nPathId == 0 then return false, sErr end
|
||||
if nPathId == 0 then return 0, sErr end
|
||||
EgtSetMachiningGeometry({{ nPathId, -1}})
|
||||
EgtSetMachiningParam( MCH_MP.STARTADDLEN, dSal)
|
||||
EgtSetMachiningParam( MCH_MP.ENDADDLEN, dEal)
|
||||
|
||||
Reference in New Issue
Block a user