Piccola correzione rotazione pezzo per calcolo strategie
This commit is contained in:
@@ -995,7 +995,7 @@ local function CalculateMachinings( vProc, Part)
|
||||
elseif Proc.bSide and CurrRotation ~= 2 then
|
||||
BeamLib.RotatePart( Part, 2 - CurrRotation)
|
||||
CurrRotation = 2
|
||||
elseif CurrRotation ~= 1 then
|
||||
elseif CurrRotation ~= 1 and not( Proc.bSide) and not( Proc.bDown) then
|
||||
BeamLib.RotatePart( Part, 1 - CurrRotation)
|
||||
CurrRotation = 1
|
||||
end
|
||||
@@ -1016,6 +1016,9 @@ local function CalculateMachinings( vProc, Part)
|
||||
-- ripristino pezzo in posizione originale
|
||||
if CurrRotation ~= 1 then
|
||||
BeamLib.RotatePart( Part, 1 - CurrRotation)
|
||||
-- aggiorno info pezzo
|
||||
Part.b3Raw = EgtGetRawPartBBox( Part.idRaw)
|
||||
Part.b3Part = EgtGetBBoxGlob( EgtGetFirstNameInGroup( Part.id, 'Box') or GDB_ID.NULL, GDB_BB.STANDARD)
|
||||
CurrRotation = 1
|
||||
end
|
||||
return MACHININGS
|
||||
|
||||
Reference in New Issue
Block a user