From 9edd6aec23c80aa7fe904b1174ae6132d462d149 Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Thu, 19 Oct 2023 09:54:01 +0200 Subject: [PATCH] - nella ricerca lavorazione da usare controllo di utensile attivo sostituito con controllo utensile presente nel setup corrente --- LuaLibs/WMachiningLib.lua | 2 +- LuaLibs/WProcessDrill.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/LuaLibs/WMachiningLib.lua b/LuaLibs/WMachiningLib.lua index 17f756d..812dd73 100644 --- a/LuaLibs/WMachiningLib.lua +++ b/LuaLibs/WMachiningLib.lua @@ -232,7 +232,7 @@ function WMachiningLib.IsToolDoubleOk( sToolMasterName, sToolDoubleName) ( abs( dTDiamTh - dTDiamThDouble) < 100 * GEO.EPS_SMALL) and ( bTipFeed == bTipFeedDouble) and ( abs( dTMaxDepthOnSide - dTMaxDepthOnSideDouble) < GEO.EPS_SMALL) and - EgtTdbGetCurrToolParam( MCH_TP.ACTIVE) + EgtFindToolInCurrSetup( sToolDoubleName) return bIsToolDoubleOk end diff --git a/LuaLibs/WProcessDrill.lua b/LuaLibs/WProcessDrill.lua index 690f664..a273ef1 100644 --- a/LuaLibs/WProcessDrill.lua +++ b/LuaLibs/WProcessDrill.lua @@ -170,7 +170,7 @@ local function IsToolDoubleOk( sToolMasterName, sToolDoubleName) -- controllo che siano uguali bIsToolDoubleOk = ( dTMaxMatDouble > dTMaxMat - 100 * GEO.EPS_SMALL) and ( abs( dTDiam - dTDiamDouble) < 100 * GEO.EPS_SMALL) and - EgtTdbGetCurrToolParam( MCH_TP.ACTIVE) + EgtFindToolInCurrSetup( sToolDoubleName) return bIsToolDoubleOk end