- Rimossa funzione BeamLib.GetFaceHvRefDim

- Per larghezza/altezza faccia si utilizzano gli  "Edges"
- Corretto errore ricerca utensili MILL_STD e MILL_NOTIP
- Adeguamento STR0002 a nuovo standard
This commit is contained in:
andrea.villa
2024-06-03 12:08:24 +02:00
parent 21ec48bc2d
commit 7e0bee34cc
4 changed files with 36 additions and 90 deletions
+8 -9
View File
@@ -83,14 +83,7 @@ function MachiningLib.FindMill( Proc, ToolSearchParameters)
for i = 1, #TOOLS do
-- prima verifico che utensile sia compatibile
local bIsToolCompatible = true
if TOOLS[i].sType ~= ToolSearchParameters.sType then
-- se sto cercando una fresa che non può lavorare di testa, quelle che lavorano di testa sono comunque ammesse
if TOOLS[i].sType == 'MILL_STD' and ToolSearchParameters.sType == 'MILL_NOTIP' then
bIsToolCompatible = true
else
bIsToolCompatible = false
end
elseif TOOLS[i].dDiameter > ToolSearchParameters.dMaxToolDiameter then
if TOOLS[i].dDiameter > ToolSearchParameters.dMaxToolDiameter then
bIsToolCompatible = false
elseif TOOLS[i].SetupInfo.bIsTopHead and ToolSearchParameters.vtToolDirection:getZ() < TOOLS[i].SetupInfo.dMaxNegativeAngle then
bIsToolCompatible = false
@@ -104,7 +97,13 @@ function MachiningLib.FindMill( Proc, ToolSearchParameters)
bIsToolCompatible = false
elseif ToolSearchParameters.sMillShape == 'PEN' and not TOOLS[i].bIsPen then
bIsToolCompatible = false
-- TODO controllare montaggio e verificare se direzione utensile raggiungibile. Serve funzione in BeamData
elseif TOOLS[i].sType ~= ToolSearchParameters.sType then
-- se sto cercando una fresa che non può lavorare di testa, quelle che lavorano di testa sono comunque ammesse
if TOOLS[i].sType == 'MILL_STD' and ToolSearchParameters.sType == 'MILL_NOTIP' then
bIsToolCompatible = true
else
bIsToolCompatible = false
end
end
-- scelgo il migliore