From aaaddb9262e9b604f711d4f2dbee7d19f4975367 Mon Sep 17 00:00:00 2001 From: DarioS Date: Fri, 6 Aug 2021 10:19:51 +0200 Subject: [PATCH] DataWall : - in FreeContour corretta gestione lama con utile insufficiente per affondamento richiesto. --- LuaLibs/WProcessFreeContour.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/LuaLibs/WProcessFreeContour.lua b/LuaLibs/WProcessFreeContour.lua index b4471fd..b988225 100644 --- a/LuaLibs/WProcessFreeContour.lua +++ b/LuaLibs/WProcessFreeContour.lua @@ -1,4 +1,4 @@ --- ProcessFreeContour.lua by Egaltech s.r.l. 2021/01/08 +-- ProcessFreeContour.lua by Egaltech s.r.l. 2021/08/06 -- Gestione calcolo profilo libero per Pareti -- Tabella per definizione modulo @@ -1620,6 +1620,7 @@ end --------------------------------------------------------------------- local function MakeByCut( Proc, nRawId, b3Raw) + local sWarn = '' -- ingombro del pezzo local Ls = EgtGetFirstNameInGroup( Proc.PartId, 'Box') local b3Solid = EgtGetBBoxGlob( Ls or GDB_ID.NULL, GDB_BB.STANDARD) @@ -1652,6 +1653,9 @@ local function MakeByCut( Proc, nRawId, b3Raw) local sCutting, dSawDiam, dSawThick, dSawMaxDepth = WM.FindCutting( 'Standard', dWidth) if not sCutting then sCutting, dSawDiam, dSawThick, dSawMaxDepth = WM.FindCutting( 'Standard') + sWarn = 'Warning : elevation bigger than max sawcut depth' + end + if not sCutting then local sErr = 'Error : cutting not found in library' EgtOutLog( sErr) return false, sErr @@ -1731,7 +1735,7 @@ local function MakeByCut( Proc, nRawId, b3Raw) end end end - return true + return true, sWarn end ---------------------------------------------------------------------