- in BALDETOWASTE -> CutWholeWaste in caso di feature lunga si ritorna non applicabile

This commit is contained in:
luca.mazzoleni
2025-07-11 15:08:21 +02:00
parent 87d39d747e
commit 698e7d1639
+12 -7
View File
@@ -300,6 +300,12 @@ local function CutWholeWaste( Proc, Part, OptionalParameters)
local dDepthToMachine = 0
local dCompletionPercentage = 0
-- controlli preventivi
local bIsFeatureLong = FeatureLib.IsMachiningLong( Proc.b3Box:getDimX(), Part, { dMaxSegmentLength = BeamData.LONGCUT_ENDLEN})
if bIsFeatureLong then
Result = FeatureLib.GetStrategyResultNotApplicable('Feature too long')
end
-- parametri opzionali e default
if not OptionalParameters then
OptionalParameters = {}
@@ -394,14 +400,14 @@ local function CutWholeWaste( Proc, Part, OptionalParameters)
else
Result.sStatus = 'Not-Completed'
end
Result.dCompletionPercentage = dCompletionPercentage
Result.nCompletionIndex = FeatureLib.GetFeatureCompletionIndex( dCompletionPercentage)
Result.nQuality = TOOLS[nToolIndex].nQuality
Result.dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( {Cutting})
Result.dMRR = ( FeatureInfo.dFeatureVolume / Result.dTimeToMachine) / pow( 10, 6)
else
Result.sStatus = 'Not-Applicable'
Result = FeatureLib.GetStrategyResultNotApplicable()
end
Result.dCompletionPercentage = dCompletionPercentage
Result.nCompletionIndex = FeatureLib.GetFeatureCompletionIndex( dCompletionPercentage)
Result.nQuality = TOOLS[nToolIndex].nQuality
Result.dTimeToMachine = FeatureLib.GetStrategyTimeToMachine( {Cutting})
Result.dMRR = ( FeatureInfo.dFeatureVolume / Result.dTimeToMachine) / pow( 10, 6)
return Machinings, Result
end
@@ -783,7 +789,6 @@ function BLADETOWASTE.Make( ProcOrId, Part, OptionalParameters)
elseif Result1.sStatus == 'Completed' or Result2.sStatus == 'Completed' then
Result.sStatus = 'Not-Completed'
else
Result.sStatus = 'Not-Applicable'
Result = FeatureLib.GetStrategyResultNotApplicable()
end