DataBeam :

- modifiche per gestire macchina Turn (BD.TURN)
- corretto riconoscimento fori di coda.
This commit is contained in:
DarioS
2022-04-22 10:13:45 +02:00
parent d6485ddc0d
commit e0e9b7b089
7 changed files with 23 additions and 18 deletions
+3 -3
View File
@@ -1225,7 +1225,7 @@ function BeamExec.ProcessFeatures()
-- eventuale spostamento fori sui tenoni
MoveDrillsOnTenon( vProc)
-- se richiesto ribaltamento (oppure rotazione)
if ( bSomeDown or bSomeSide) and not BD.DOWN_HEAD then
if ( bSomeDown or bSomeSide) and not BD.DOWN_HEAD and not BD.TURN then
-- ribalto le travi della fase corrente
local nRId = nRawId
while nRId do
@@ -1285,7 +1285,7 @@ function BeamExec.ProcessFeatures()
EgtSetInfo( nDispId, 'ORD', nOrd)
end
-- se richiesta rotazione
if bSomeSide and not BD.DOWN_HEAD then
if bSomeSide and not BD.DOWN_HEAD and not BD.TURN then
-- vettore movimento grezzi per rotazione di 90deg
local dDeltaYZ = EgtGetRawPartBBox( nRawId):getDimY() - EgtGetRawPartBBox( nRawId):getDimZ()
local vtMove = Vector3d( 0, dDeltaYZ / 2, dDeltaYZ / 2)
@@ -1359,7 +1359,7 @@ function BeamExec.ProcessFeatures()
for i = 1, #vProc do
-- creo la lavorazione
local Proc = vProc[i]
if Proc.Flg ~= 0 and ( not ( Proc.Down or Proc.Side) or BD.DOWN_HEAD) then
if Proc.Flg ~= 0 and ( not ( Proc.Down or Proc.Side) or BD.DOWN_HEAD or BD.TURN) then
local bOk, sMsg, bNewPhase = AddFeatureMachining( Proc, nPhase, nRawId, nPartId, dCurrOvmH, false, b3Raw)
if not bOk then
nTotErr = nTotErr + 1