From 0613fa0df6f59514d1068dbef563eef8711dcb32 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 4 Jun 2025 18:29:37 +0200 Subject: [PATCH] DataDoors 2.7f1 : - modifiche per consentire di inserire ConeCleanCorner in sfinestrature da disegno (dare nome opportuno tipicamente ConeCleanCorner, aggiungere info ConeCleanCorner=1, ActiveStopMach=1 e SetMaxElev=1, la quota 0 di queste geometrie viene portata al filo sotto della porta). --- LuaLibs/EgtDoorsBase.lua | 1 + Machining_3v3.lua | 2 +- Main.lua | 13 +++++++++++-- Version.lua | 4 ++-- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/LuaLibs/EgtDoorsBase.lua b/LuaLibs/EgtDoorsBase.lua index d5b8284..f833091 100644 --- a/LuaLibs/EgtDoorsBase.lua +++ b/LuaLibs/EgtDoorsBase.lua @@ -504,6 +504,7 @@ function AddSurfTmByExtrusion( ParId, EntId, bSingleGeom, nSpecialGeom, bSideSur sNameGeom == 'flat_dw_sd_blind' then bExclude = true end + if EgtGetInfo( EntId, 'ConeCleanCorner', 'b') then bExclude = true end end if not bExclude then dThId = EgtCurveThickness( nIdGeom) diff --git a/Machining_3v3.lua b/Machining_3v3.lua index 9b83e5d..adefd8f 100644 --- a/Machining_3v3.lua +++ b/Machining_3v3.lua @@ -6481,7 +6481,7 @@ function MachiningLoc.Calc( tPz, tsAssemb, nNumMachFromTable, nNumMachFromCam, n bGetSplitCuts = true end elseif tLocMach[i].Oper == 'AdjustConeCleanPaths' and nProbeMode ~= 1 then - bOk, nNewIdEnt = MB.AdjustConeCleanPaths( EntList[j], bMakeGhost) + bOk, nNewIdEnt = MB.AdjustConeCleanPaths( EntList[j], bMakeGhost, nil, Ls) elseif tLocMach[i].Oper == 'AdjustVertAsOnHeads' and nProbeMode ~= 1 then bLocMach, nNewIdEnt = MB.AdjustVertAsOnHeads( EntList[j], bMakeGhost) if not bLocMach then diff --git a/Main.lua b/Main.lua index 2b79a70..af10d56 100644 --- a/Main.lua +++ b/Main.lua @@ -1834,8 +1834,17 @@ local function MoveCutOuts( tCutOut, sSideLk, bPushDr, bImport, nTypeCout) end end - if bImport then - EgtModifyCurveThickness(tCutOut.geom, -DGD.dT) + if bImport then + -- modifica dello spessore di tutte le curve del gruppo + local EntId = EgtGetFirstInGroup( tCutOut.geom) + while EntId do + if EgtGetInfo( EntId, 'ConeCleanCorner', 'b') then + EgtMove( EntId, Vector3d( 0, 0, -DGD.dT)) + else + EgtModifyCurveThickness( EntId, -DGD.dT) + end + EntId = EgtGetNext( EntId) + end -- se non ci sono tagli di hatching if DGD.NotExistHatch then -- creo estrusi e superfici piane delle geometrie passanti diff --git a/Version.lua b/Version.lua index 8ea5e49..cf1fd5f 100644 --- a/Version.lua +++ b/Version.lua @@ -1,6 +1,6 @@ --- Version.lua by EgalWare s.r.l. 2025/05/26 +-- Version.lua by EgalWare s.r.l. 2025/06/04 -- Gestione della versione di Doors NAME = 'Doors' -VERSION = '2.7e4' +VERSION = '2.7f1' MIN_EXE = '2.6k4'