- Correzione posizione pezzi in caso di split con rotazione del pezzo singolo

- Correzione rotazioni del pezzo quando c'è pre-rotazione
This commit is contained in:
andrea.villa
2025-03-18 08:51:52 +01:00
parent 5977a4c6db
commit d674eec6ff
2 changed files with 40 additions and 32 deletions
+3 -2
View File
@@ -772,14 +772,15 @@ function MachiningLib.AddOperations( vProc, Part, sRotation)
local nDispId = EgtGetPhaseDisposition( nPhase)
if sRotation == 'DOWN' then
BeamLib.RotatePart( Part, 2)
BeamLib.RotatePart( Part, Part.nInitialPosition - 3)
EgtSetInfo( nDispId, 'ROT', -2)
EgtSetInfo( nDispId, 'TYPE', 'MID2')
elseif sRotation == 'SIDE' then
BeamLib.RotatePart( Part, 1)
BeamLib.RotatePart( Part, Part.nInitialPosition - 2)
EgtSetInfo( nDispId, 'ROT', -1)
EgtSetInfo( nDispId, 'TYPE', 'MID2')
else
BeamLib.RotatePart( Part, Part.nInitialPosition - 1)
EgtSetInfo( nDispId, 'TYPE', 'END')
end
EgtSetInfo( nDispId, 'ORD', MACHININGS[i].Proc.nIndexPartInParts)