From d4a17e13fd3369eaad7d460d3aad43109fb32ec9 Mon Sep 17 00:00:00 2001 From: DarioS Date: Mon, 24 May 2021 20:17:41 +0200 Subject: [PATCH] DataWall : - correzioni a script di Nesting per EgtBW. --- NestProcess.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/NestProcess.lua b/NestProcess.lua index 1534345..5c91ada 100644 --- a/NestProcess.lua +++ b/NestProcess.lua @@ -1,4 +1,4 @@ --- NestProcess.lua by Egaltech s.r.l. 2021/05/16 +-- NestProcess.lua by Egaltech s.r.l. 2021/05/21 -- Gestione nesting automatico pareti -- Intestazioni @@ -127,7 +127,7 @@ local SheetOutlineId = EgtRectangle2P(SheetLayerId, Point3d(0,0,0), Point3d(NEST EgtSetName(SheetOutlineId, OUTLINE) -- creo foglio per nesting -EgtAutoNestAddSheet( SheetPartId, SheetOutlineId, NEST.KERF, 0, 50) -- EgtAutoNestAddSheet( SheetId, OutlineId, dKerf, nPriority, nCount) +EgtAutoNestAddSheet( SheetPartId, SheetOutlineId, NEST.KERF, 0, NEST.QTY) -- EgtAutoNestAddSheet( SheetId, OutlineId, dKerf, nPriority, nCount) -- ciclo su pezzi per aggiungerli al nesting for nPartId, nCount in pairs( PART) do @@ -233,7 +233,7 @@ EgtAutoNestSetStartCorner( NST_CORNER.BR) local nMaxTime = 5 -- imposto tempo di nesting e lo avvio -EgtAutoNestCompute(true, nMaxTime) +EgtAutoNestCompute(true, NEST.TIME) -- Variabili di calcolo local nNestedParts, nParts, nSheets, nNestings, dTotFillRatio @@ -248,7 +248,7 @@ while bOk do end if nStat == 3 then break end nTime = nTime + 1 - if EgtProcessEvents( nTime / nMaxTime * 100, 995) == 1 then + if EgtProcessEvents( nTime / NEST.TIME * 100, 995) == 1 then bOk = EgtAutoNestCancelComputation() break end