- correzione Beam in Commento

- corretto bug nest che non usciva se pezzo piu' lungo del grezzo
This commit is contained in:
Emmanuele Sassi
2022-10-04 16:31:00 +02:00
parent 66541894ea
commit 950f7d1992
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -41,4 +41,4 @@ GWD.OVM_MID = BD.OVM_MID
-- Tutto ok -- Tutto ok
GWD.ERR = 0 GWD.ERR = 0
EgtOutLog( ' +++ GetWallData completed') EgtOutLog( ' +++ GetBeamData completed')
+5 -1
View File
@@ -173,7 +173,11 @@ for nPartId, nCount in pairs( PART) do
-- recupero lunghezza pezzo -- recupero lunghezza pezzo
local Len = EgtGetInfo( nPartId, "L", 'd') local Len = EgtGetInfo( nPartId, "L", 'd')
local DispLen = EgtIf( Len <= 1000, 2000, 0) --EgtIf( Len <= 2000, max( 2000, 6000 - Len), 0) local DispLen = EgtIf( Len <= 1000, 2000, 0) --EgtIf( Len <= 2000, max( 2000, 6000 - Len), 0)
table.insert( Parts, {Id = nPartId, Len = Len, DispLen = DispLen, Cnt = nCount}) for RawIndex = 1, #Raws do
if Len + Raws[RawIndex].StartGap < Raws[RawIndex].LenToFill then
table.insert( Parts, {Id = nPartId, Len = Len, DispLen = DispLen, Cnt = nCount})
end
end
end end
-- lunghezza totale pezzi -- lunghezza totale pezzi