- Gestione utensili profilati, esclusi da calcolo automatico

This commit is contained in:
andrea.villa
2024-07-15 08:36:37 +02:00
parent b270e150c0
commit 74279896e9
3 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -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