diff --git a/BatchProcessNew.lua b/BatchProcessNew.lua index 65657eb..b0203b0 100644 --- a/BatchProcessNew.lua +++ b/BatchProcessNew.lua @@ -362,7 +362,7 @@ if bToProcess then -- Verifico sezione barra non troppo piccola if dRawW < BD.MIN_WIDTH - 10 * GEO.EPS_SMALL or dRawH < BD.MIN_HEIGHT - 10 * GEO.EPS_SMALL then local sOut = 'Sezione (' .. EgtNumToString( dRawW, 2) .. ' x ' .. EgtNumToString( dRawH, 2) .. ') ' .. - c 'sotto i limiti della macchina (' .. EgtNumToString( BD.MIN_WIDTH, 2) .. ' x ' .. EgtNumToString( BD.MIN_HEIGHT, 2) .. ')' + 'sotto i limiti della macchina (' .. EgtNumToString( BD.MIN_WIDTH, 2) .. ' x ' .. EgtNumToString( BD.MIN_HEIGHT, 2) .. ')' BEAM.ERR = 17 BEAM.MSG = sOut WriteErrToLogFile( BEAM.ERR, BEAM.MSG) diff --git a/LuaLibs/ProcessFreeContour.lua b/LuaLibs/ProcessFreeContour.lua index ae576ab..19ee90d 100644 --- a/LuaLibs/ProcessFreeContour.lua +++ b/LuaLibs/ProcessFreeContour.lua @@ -310,8 +310,10 @@ local function MakeByMill( Proc, nPhase, nRawId, nPartId, dOvmHead) bToolInv = true end -- verifico se primo e ultimo tratti corti e con angolo - local dStartAddSpec = CalcSpecialAdd( AuxId, true, dToolDiam) - local dEndAddSpec = CalcSpecialAdd( AuxId, false, dToolDiam) + local dStartAddSpec = 0 + if Proc.Grp ~= 0 then dStartAddSpec = CalcSpecialAdd( AuxId, true, dToolDiam) end + local dEndAddSpec = 0 + if Proc.Grp ~= 0 then dEndAddSpec = CalcSpecialAdd( AuxId, false, dToolDiam) end -- se devo inserire il chamfer if nChamfer > 0 and Proc.Grp ~= 0 and dOriDepth > dDepthCham then local bDoubleCham = false