From 74279896e96bf650aa786e028bb666d683a58064 Mon Sep 17 00:00:00 2001 From: "andrea.villa" Date: Mon, 15 Jul 2024 08:36:37 +0200 Subject: [PATCH] - Gestione utensili profilati, esclusi da calcolo automatico --- LuaLibs/BeamExec.lua | 2 +- LuaLibs/MachiningLib.lua | 9 ++++++++- Version.lua | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index 1d7223a..57f5e9d 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -120,7 +120,6 @@ function BeamExec.GetToolsFromDB() Tool.Feeds.dStartFeed = EgtTdbGetCurrToolParam( MCH_TP.STARTFEED) Tool.Feeds.dEndFeed = EgtTdbGetCurrToolParam( MCH_TP.ENDFEED) Tool.Feeds.dTipFeed = EgtTdbGetCurrToolParam( MCH_TP.TIPFEED) - -- TODO serve funzione in BeamData che data la posizione dell'utensile e della testa, capisca il montaggio (testa sopra - testa sotto - aggregato - ecc...) Tool.sHead = EgtTdbGetCurrToolParam( MCH_TP.HEAD) Tool.SetupInfo = {} Tool.SetupInfo = BeamData.GetSetupInfo( Tool.sHead) @@ -132,6 +131,7 @@ function BeamExec.GetToolsFromDB() Tool.ToolHolder.dLength = EgtTdbGetCurrToolThLength() or TH_LENGTH_HSK63 -- lunghezza standard HSK63 -- parametri scritti nelle note Tool.nDouble = EgtGetValInNotes( Tool.sUserNotes, 'DOUBLE') + Tool.bIsProfiledTool = EgtTdbIsCurrToolStandardDraw() -- lettura parametri non comuni ( famiglia DRILLBIT non ha parametri specifici) if sToolFamily ~= 'DRILLBIT' then diff --git a/LuaLibs/MachiningLib.lua b/LuaLibs/MachiningLib.lua index 3e2909d..e582157 100644 --- a/LuaLibs/MachiningLib.lua +++ b/LuaLibs/MachiningLib.lua @@ -83,7 +83,14 @@ function MachiningLib.FindMill( Proc, ToolSearchParameters) for i = 1, #TOOLS do -- prima verifico che utensile sia compatibile local bIsToolCompatible = true - if TOOLS[i].dDiameter > ToolSearchParameters.dMaxToolDiameter then + -- se viene passato il nome, tutti gli altri sono incompatibili + if ToolSearchParameters.sName and ToolSearchParameters.sName ~= TOOLS[i].sName then + bIsToolCompatible = false + -- si cercano solo frese standard. Se utensile disegnato manualmente, si setta subito che รจ incompatibile + elseif TOOLS[i].bIsProfiledTool then + bIsToolCompatible = false + -- controlli standard + elseif TOOLS[i].dDiameter > ToolSearchParameters.dMaxToolDiameter then bIsToolCompatible = false elseif TOOLS[i].SetupInfo.bIsTopHead and ToolSearchParameters.vtToolDirection:getZ() < TOOLS[i].SetupInfo.dMaxNegativeAngle then bIsToolCompatible = false diff --git a/Version.lua b/Version.lua index d9ea3be..5b1915f 100644 --- a/Version.lua +++ b/Version.lua @@ -3,4 +3,4 @@ NAME = 'Beam' VERSION = '2.6d1' -MIN_EXE = '2.6a1' +MIN_EXE = '2.6g1'