In STR0002 prima versione gestione SCC
This commit is contained in:
@@ -44,6 +44,25 @@ local function IsTopologyOk( Proc)
|
||||
end
|
||||
end
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
local function GetSCC( Proc, Pocketing)
|
||||
local nSCC
|
||||
if abs( Pocketing.vtToolDirection:getX()) > abs( Pocketing.vtToolDirection:getY()) then
|
||||
if Pocketing.vtToolDirection:getX() > 0 then
|
||||
nSCC = MCH_SCC.ADIR_XP
|
||||
else
|
||||
nSCC = MCH_SCC.ADIR_XM
|
||||
end
|
||||
else
|
||||
if Pocketing.vtToolDirection:getY() > 0 then
|
||||
nSCC = MCH_SCC.ADIR_YP
|
||||
else
|
||||
nSCC = MCH_SCC.ADIR_YM
|
||||
end
|
||||
end
|
||||
return nSCC
|
||||
end
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
local function CalcMachinedPercentage( Proc, Machining)
|
||||
-- se non ci sono lavorazioni esco subito
|
||||
@@ -462,7 +481,7 @@ function STR0002.Make( bAddMachining, Proc, Part, CustomParameters)
|
||||
if Strategy.Result.sStatus ~= 'Not-Applicable' then
|
||||
local vAddId = {}
|
||||
local vAddIdTunnel = {}
|
||||
|
||||
|
||||
-- recupero superficie, se necessario trimmata sugli spezzoni
|
||||
vAddId, vAddIdTunnel = GetSplitSurfaces( Proc, Part, bAddMachining)
|
||||
|
||||
@@ -500,6 +519,7 @@ function STR0002.Make( bAddMachining, Proc, Part, CustomParameters)
|
||||
Pocketing.sStage = 'AfterTail'
|
||||
end
|
||||
|
||||
Pocketing.nSCC = GetSCC( Proc, Pocketing)
|
||||
Pocketing.dTimeToMachine = MachiningLib.GetTimeToMachineAllStepsWithLeadInOut( Pocketing, Part)
|
||||
Strategy.Result.dTimeToMachine = Strategy.Result.dTimeToMachine + Pocketing.dTimeToMachine
|
||||
|
||||
|
||||
Reference in New Issue
Block a user