- nei risultati si restituisce anche il timetomachine, dove calcolato
This commit is contained in:
@@ -324,8 +324,8 @@ function STR0003.Make( bAddMachining, Proc, Part, CustomParameters)
|
||||
Strategy.Result.nQuality = FeatureLib.GetStrategyQuality( Blade.Result.Sorted)
|
||||
Strategy.Result.dCompletionPercentage = dAreaToMachineBlade / LongFace.dArea * 100
|
||||
Strategy.Result.nCompletionIndex = FeatureLib.GetFeatureCompletionIndex( Strategy.Result.dCompletionPercentage)
|
||||
local dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( Blade.Result.Sorted)
|
||||
Strategy.Result.dMRR = ( dFeatureVolume / dTimeToMachine) / pow( 10, 6)
|
||||
Strategy.Result.dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( Blade.Result.Sorted)
|
||||
Strategy.Result.dMRR = ( dFeatureVolume / Strategy.Result.dTimeToMachine) / pow( 10, 6)
|
||||
if #Blade.Result.Sorted > 0 then
|
||||
if not Strategy.Parameters.bNotCompleteWithBladeRadius and Cutting.dCompletionPercentage > 100 - 10 * GEO.EPS_SMALL then
|
||||
Strategy.Result.sStatus = 'Completed'
|
||||
@@ -674,8 +674,8 @@ function STR0003.Make( bAddMachining, Proc, Part, CustomParameters)
|
||||
Strategy.Result.sStatus = 'Not-Completed'
|
||||
end
|
||||
Strategy.Result.nQuality = FeatureLib.GetStrategyQuality( Result)
|
||||
local dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( Result)
|
||||
Strategy.Result.dMRR = ( dFeatureVolume / dTimeToMachine) / pow( 10, 6)
|
||||
Strategy.Result.dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( Result)
|
||||
Strategy.Result.dMRR = ( dFeatureVolume / Strategy.Result.dTimeToMachine) / pow( 10, 6)
|
||||
else
|
||||
Strategy.Result = FeatureLib.GetStrategyResultNotApplicable()
|
||||
end
|
||||
|
||||
@@ -313,8 +313,8 @@ function STR0004.Make( bAddMachining, Proc, Part, CustomParameters)
|
||||
Strategy.Result.sStatus = 'Not-Completed'
|
||||
end
|
||||
Strategy.Result.nQuality = FeatureLib.GetStrategyQuality( Chainsaw.Result.Sorted)
|
||||
local dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( Chainsaw.Result.Sorted)
|
||||
Strategy.Result.dMRR = ( dFeatureVolume / dTimeToMachine) / pow( 10, 6)
|
||||
Strategy.Result.dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( Chainsaw.Result.Sorted)
|
||||
Strategy.Result.dMRR = ( dFeatureVolume / Strategy.Result.dTimeToMachine) / pow( 10, 6)
|
||||
else
|
||||
Strategy.Result = FeatureLib.GetStrategyResultNotApplicable()
|
||||
end
|
||||
|
||||
@@ -124,6 +124,7 @@ function STR0005.Make( bAddMachining, Proc, Part, CustomParameters)
|
||||
end
|
||||
|
||||
-- lavorazione eventuale terza faccia tipo RidgeLap
|
||||
-- TODO da completare
|
||||
-- TODO va messa per prima????????
|
||||
if idAddedTmFace then
|
||||
local dMinZTopBlade
|
||||
|
||||
@@ -257,8 +257,8 @@ function BLADEKEEPWASTE.Make( Proc, Part, OptionalParameters)
|
||||
-- calcolo risultati
|
||||
if Cutting1.bIsApplicable or Cutting2.bIsApplicable then
|
||||
Result.nQuality = FeatureLib.GetStrategyQuality( Machinings)
|
||||
local dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( Machinings)
|
||||
Result.dMRR = ( dFeatureVolume / dTimeToMachine) / pow( 10, 6)
|
||||
Result.dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( Machinings)
|
||||
Result.dMRR = ( dFeatureVolume / Result.dTimeToMachine) / pow( 10, 6)
|
||||
if Result.dCompletionPercentage > 100 - 10 * GEO.EPS_SMALL then
|
||||
Result.sStatus = 'Completed'
|
||||
else
|
||||
|
||||
@@ -302,8 +302,8 @@ local function CutWholeWaste( Proc, Part, OptionalParameters)
|
||||
Result.dCompletionPercentage = dCompletionPercentage
|
||||
Result.nCompletionIndex = FeatureLib.GetFeatureCompletionIndex( dCompletionPercentage)
|
||||
Result.nQuality = TOOLS[nToolIndex].nQuality
|
||||
local dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( {Cutting})
|
||||
Result.dMRR = ( FeatureInfo.dFeatureVolume / dTimeToMachine) / pow( 10, 6)
|
||||
Result.dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( {Cutting})
|
||||
Result.dMRR = ( FeatureInfo.dFeatureVolume / Result.dTimeToMachine) / pow( 10, 6)
|
||||
|
||||
return Machinings, Result
|
||||
end
|
||||
@@ -547,7 +547,6 @@ function BLADETOWASTE.Make( ProcOrId, Part, OptionalParameters)
|
||||
end
|
||||
|
||||
-- risultati del calcolo
|
||||
-- TODO contemplare il caso di lavorazione incompleta per i cubetti?????
|
||||
if bIsDicingOk then
|
||||
Result.sStatus = 'Completed'
|
||||
Result.dCompletionPercentage = 100
|
||||
@@ -555,10 +554,9 @@ function BLADETOWASTE.Make( ProcOrId, Part, OptionalParameters)
|
||||
Result = FeatureLib.GetStrategyResultNotApplicable()
|
||||
end
|
||||
Result.nQuality = TOOLS[nToolIndex].nQuality
|
||||
local dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( Machinings)
|
||||
Result.dMRR = ( FeatureInfo.dFeatureVolume / dTimeToMachine) / pow( 10, 6)
|
||||
Result.dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( Machinings)
|
||||
Result.dMRR = ( FeatureInfo.dFeatureVolume / Result.dTimeToMachine) / pow( 10, 6)
|
||||
|
||||
-- restituire tabella contenente lavorazioni, già con cloni se necessari
|
||||
return Machinings, Result
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user