diff --git a/LuaLibs/BasicCustomerStrategies.lua b/LuaLibs/BasicCustomerStrategies.lua index 4ad337c..df9ddbc 100644 --- a/LuaLibs/BasicCustomerStrategies.lua +++ b/LuaLibs/BasicCustomerStrategies.lua @@ -39,32 +39,32 @@ local function GetStrategies_Egalware( Proc) local Strategies = {} --------------------------------------------------------------------- - -- Feature : Cut + -- Feature : Cut (1-340) if ID.IsHeadCut( Proc) then Strategies = { { sStrategyId = 'HEADCUT'}} --------------------------------------------------------------------- - -- Feature : Cut + -- Feature : Cut (2-350) elseif ID.IsTailCut( Proc) then Strategies = { { sStrategyId = 'TAILCUT'}} --------------------------------------------------------------------- - -- Feature : Cut + -- Feature : Cut (1-10) elseif ID.IsCut( Proc) then Strategies = { { sStrategyId = 'STR0005'}} --------------------------------------------------------------------- - -- Feature : Longitudinal Cut + -- Feature : Longitudinal Cut (0-10) elseif ID.IsLongitudinalCut( Proc) then Strategies = { { sStrategyId = 'STR0005'}} --------------------------------------------------------------------- - -- Feature : Double Cut + -- Feature : Double Cut (1-11) elseif ID.IsDoubleCut( Proc) then --------------------------------------------------------------------- - -- Feature : Ridge or Valley Cut + -- Feature : Ridge or Valley Cut (0-12) elseif ID.IsDoubleLongitudinalCut( Proc) then --------------------------------------------------------------------- - -- Feature : Saw Cut + -- Feature : Saw Cut (0-13) elseif ID.IsSawCut( Proc) then --------------------------------------------------------------------- - -- Feature : Slot + -- Feature : Slot (0-16) elseif ID.IsSlot( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -80,7 +80,7 @@ local function GetStrategies_Egalware( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Front Slot + -- Feature : Front Slot (0-17) elseif ID.IsFrontSlot( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -96,13 +96,13 @@ local function GetStrategies_Egalware( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Birds Mouth + -- Feature : Birds Mouth (0-20) elseif ID.IsBirdsMouth( Proc) then --------------------------------------------------------------------- - -- Feature : Hip or Valley Rafter Notch + -- Feature : Hip or Valley Rafter Notch (0-25) elseif ID.IsHipValleyRafterNotch( Proc) then --------------------------------------------------------------------- - -- Feature : Ridge Lap + -- Feature : Ridge Lap (1-30) elseif ID.IsRidgeLap( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -118,7 +118,7 @@ local function GetStrategies_Egalware( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Lap Joint + -- Feature : Lap Joint (0-30) elseif ID.IsLapJoint( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -134,7 +134,7 @@ local function GetStrategies_Egalware( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Notch/Rabbet + -- Feature : Notch/Rabbet (0-32) elseif ID.IsNotchRabbet( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -150,10 +150,10 @@ local function GetStrategies_Egalware( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Block Haus + -- Feature : Block Haus (0-33) elseif ID.IsBlockHaus( Proc) then --------------------------------------------------------------------- - -- Feature : Notch + -- Feature : Notch (0-34) elseif ID.IsNotch( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -169,19 +169,19 @@ local function GetStrategies_Egalware( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : French Ridge Lap + -- Feature : French Ridge Lap (1-35) elseif ID.IsFrenchRidgeLap( Proc) then --------------------------------------------------------------------- - -- Feature : Chamfer + -- Feature : Chamfer (0-36) elseif ID.IsChamfer( Proc) then --------------------------------------------------------------------- - -- Feature : Block Haus Half Lap + -- Feature : Block Haus Half Lap (0-37) elseif ID.IsHalfBlockHaus( Proc) then --------------------------------------------------------------------- - -- Feature : Block Haus Front + -- Feature : Block Haus Front (0-38) elseif ID.IsFrontBlockHaus( Proc) then --------------------------------------------------------------------- - -- Feature : Pocket + -- Feature : Pocket (0-39) elseif ID.IsPocket( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -197,98 +197,98 @@ local function GetStrategies_Egalware( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Drilling + -- Feature : Drilling (0-40) elseif ID.IsDrilling( Proc) then --------------------------------------------------------------------- - -- Feature : Tenon + -- Feature : Tenon (1-50) elseif ID.IsTenon( Proc) then Strategies = { { sStrategyId = 'STR0006'}} --------------------------------------------------------------------- - -- Feature : Mortise + -- Feature : Mortise (0-50) elseif ID.IsMortise( Proc) then --------------------------------------------------------------------- - -- Feature : Front Mortise + -- Feature : Front Mortise (1-51) elseif ID.IsFrontMortise( Proc) then --------------------------------------------------------------------- - -- Feature : House + -- Feature : House (1-52) elseif ID.IsHouse( Proc) then --------------------------------------------------------------------- - -- Feature : House Mortise + -- Feature : House Mortise (0-53) elseif ID.IsHouseMortise( Proc) then --------------------------------------------------------------------- - -- Feature : Dovetail Tenon + -- Feature : Dovetail Tenon (1-55) elseif ID.IsDovetailTenon( Proc) then Strategies = { { sStrategyId = 'STR0001'}} --------------------------------------------------------------------- - -- Feature : Dovetail Mortise + -- Feature : Dovetail Mortise (0-55) elseif ID.IsDovetailMortise( Proc) then Strategies = { { sStrategyId = 'STR0007'}} --------------------------------------------------------------------- - -- Feature : Dovetail Mortise Front + -- Feature : Dovetail Mortise Front (1-56) elseif ID.IsFrontDovetailMortise( Proc) then Strategies = { { sStrategyId = 'STR0007'}} --------------------------------------------------------------------- - -- Feature : Marking + -- Feature : Marking (0-60) elseif ID.IsMarking( Proc) then --------------------------------------------------------------------- - -- Feature : Text + -- Feature : Text (0-61) elseif ID.IsText( Proc) then --------------------------------------------------------------------- - -- Feature : Scarf Simple + -- Feature : Scarf Simple (1-70) elseif ID.IsScarfSimple( Proc) then --------------------------------------------------------------------- - -- Feature : Scarf Joint + -- Feature : Scarf Joint (1-71) elseif ID.IsScarfJoint( Proc) then --------------------------------------------------------------------- - -- Feature : Step Joint + -- Feature : Step Joint (1-80) elseif ID.IsStepJoint( Proc) then --------------------------------------------------------------------- - -- Feature : Step Joint Notch + -- Feature : Step Joint Notch (0-80) elseif ID.IsStepJointNotch( Proc) then --------------------------------------------------------------------- - -- Feature : Planing + -- Feature : Planing (0-90) elseif ID.IsPlaning( Proc) then --------------------------------------------------------------------- - -- Feature : Front Profile + -- Feature : Front Profile (0-100) elseif ID.IsFrontProfile( Proc) then --------------------------------------------------------------------- - -- Feature : Head Concave Profile + -- Feature : Head Concave Profile (0-101) elseif ID.IsHeadConcaveProfile( Proc) then --------------------------------------------------------------------- - -- Feature : Head Convex Profile + -- Feature : Head Convex Profile (0-102) elseif ID.IsHeadConvexProfile( Proc) then --------------------------------------------------------------------- - -- Feature : Head Cambered Profile + -- Feature : Head Cambered Profile (0-103) elseif ID.IsHeadCamberedProfile( Proc) then --------------------------------------------------------------------- - -- Feature : Round Arch + -- Feature : Round Arch (0-104) elseif ID.IsRoundArch( Proc) then --------------------------------------------------------------------- - -- Feature : Head Profile + -- Feature : Head Profile (0-106) elseif ID.IsHeadProfile( Proc) then --------------------------------------------------------------------- - -- Feature : Sphere + -- Feature : Sphere (0-107) elseif ID.IsSphere( Proc) then --------------------------------------------------------------------- - -- Feature : Triangle Cut + -- Feature : Triangle Cut (0-120) elseif ID.IsTriangleCut( Proc) then --------------------------------------------------------------------- - -- Feature : TyroleanDovetail + -- Feature : TyroleanDovetail (0-136) elseif ID.IsTyroleanDovetail( Proc) then --------------------------------------------------------------------- - -- Feature : Dovetail + -- Feature : Dovetail (0-138) elseif ID.IsDovetail( Proc) then --------------------------------------------------------------------- - -- Feature : Free Contour + -- Feature : Free Contour (0-250) elseif ID.IsFreeContour( Proc) then --------------------------------------------------------------------- - -- Feature : Outline + -- Feature : Outline (0-251) elseif ID.IsOutline( Proc) then --------------------------------------------------------------------- - -- Feature : Aperture + -- Feature : Aperture (0-252) elseif ID.IsAperture( Proc) then --------------------------------------------------------------------- - -- Feature : Variant + -- Feature : Variant (0-900) elseif ID.IsVariant( Proc) then --------------------------------------------------------------------- end @@ -303,30 +303,30 @@ local function GetStrategies_Essetre( Proc) local Strategies = {} --------------------------------------------------------------------- - -- Feature : Cut + -- Feature : Cut (1-340) if ID.IsHeadCut( Proc) then Strategies = { { sStrategyId = 'HEADCUT'}} --------------------------------------------------------------------- - -- Feature : Cut + -- Feature : Cut (2-350) elseif ID.IsTailCut( Proc) then Strategies = { { sStrategyId = 'TAILCUT'}} --------------------------------------------------------------------- - -- Feature : Cut + -- Feature : Cut (1-10) elseif ID.IsCut( Proc) then --------------------------------------------------------------------- - -- Feature : Longitudinal Cut + -- Feature : Longitudinal Cut (0-10) elseif ID.IsLongitudinalCut( Proc) then --------------------------------------------------------------------- - -- Feature : Double Cut + -- Feature : Double Cut (1-11) elseif ID.IsDoubleCut( Proc) then --------------------------------------------------------------------- - -- Feature : Ridge or Valley Cut + -- Feature : Ridge or Valley Cut (0-12) elseif ID.IsDoubleLongitudinalCut( Proc) then --------------------------------------------------------------------- - -- Feature : Saw Cut + -- Feature : Saw Cut (0-13) elseif ID.IsSawCut( Proc) then --------------------------------------------------------------------- - -- Feature : Slot + -- Feature : Slot (0-16) elseif ID.IsSlot( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -342,7 +342,7 @@ local function GetStrategies_Essetre( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Front Slot + -- Feature : Front Slot (0-17) elseif ID.IsFrontSlot( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -358,13 +358,13 @@ local function GetStrategies_Essetre( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Birds Mouth + -- Feature : Birds Mouth (0-20) elseif ID.IsBirdsMouth( Proc) then --------------------------------------------------------------------- - -- Feature : Hip or Valley Rafter Notch + -- Feature : Hip or Valley Rafter Notch (0-25) elseif ID.IsHipValleyRafterNotch( Proc) then --------------------------------------------------------------------- - -- Feature : Ridge Lap + -- Feature : Ridge Lap (1-30) elseif ID.IsRidgeLap( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -380,7 +380,7 @@ local function GetStrategies_Essetre( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Lap Joint + -- Feature : Lap Joint (0-30) elseif ID.IsLapJoint( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -396,7 +396,7 @@ local function GetStrategies_Essetre( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Notch/Rabbet + -- Feature : Notch/Rabbet (0-32) elseif ID.IsNotchRabbet( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -412,10 +412,10 @@ local function GetStrategies_Essetre( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Block Haus + -- Feature : Block Haus (0-33) elseif ID.IsBlockHaus( Proc) then --------------------------------------------------------------------- - -- Feature : Notch + -- Feature : Notch (0-32) elseif ID.IsNotch( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -431,19 +431,19 @@ local function GetStrategies_Essetre( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : French Ridge Lap + -- Feature : French Ridge Lap (1-35) elseif ID.IsFrenchRidgeLap( Proc) then --------------------------------------------------------------------- - -- Feature : Chamfer + -- Feature : Chamfer (0-36) elseif ID.IsChamfer( Proc) then --------------------------------------------------------------------- - -- Feature : Block Haus Half Lap + -- Feature : Block Haus Half Lap (0-37) elseif ID.IsHalfBlockHaus( Proc) then --------------------------------------------------------------------- - -- Feature : Block Haus Front + -- Feature : Block Haus Front (0-38) elseif ID.IsFrontBlockHaus( Proc) then --------------------------------------------------------------------- - -- Feature : Pocket + -- Feature : Pocket (0-39) elseif ID.IsPocket( Proc) then if Proc.Topology.sName == 'Pocket-5-Blind' then Strategies = { { sStrategyId = 'STR0002'}, { sStrategyId = 'STR0003'}, { sStrategyId = 'STR0004'}} @@ -459,98 +459,98 @@ local function GetStrategies_Essetre( Proc) Strategies = { { sStrategyId = 'STR0002'}} end --------------------------------------------------------------------- - -- Feature : Drilling + -- Feature : Drilling (0-40) elseif ID.IsDrilling( Proc) then --------------------------------------------------------------------- - -- Feature : Tenon + -- Feature : Tenon (1-50) elseif ID.IsTenon( Proc) then Strategies = { { sStrategyId = 'STR0006'}} --------------------------------------------------------------------- - -- Feature : Mortise + -- Feature : Mortise (0-50) elseif ID.IsMortise( Proc) then --------------------------------------------------------------------- - -- Feature : Front Mortise + -- Feature : Front Mortise (1-51) elseif ID.IsFrontMortise( Proc) then --------------------------------------------------------------------- - -- Feature : House + -- Feature : House (1-52) elseif ID.IsHouse( Proc) then --------------------------------------------------------------------- - -- Feature : House Mortise + -- Feature : House Mortise (0-53) elseif ID.IsHouseMortise( Proc) then --------------------------------------------------------------------- - -- Feature : Dovetail Tenon + -- Feature : Dovetail Tenon (1-55) elseif ID.IsDovetailTenon( Proc) then Strategies = { { sStrategyId = 'STR0001'}} --------------------------------------------------------------------- - -- Feature : Dovetail Mortise + -- Feature : Dovetail Mortise (0-55) elseif ID.IsDovetailMortise( Proc) then Strategies = { { sStrategyId = 'STR0007'}} --------------------------------------------------------------------- - -- Feature : Dovetail Mortise Front + -- Feature : Dovetail Mortise Front (1-56) elseif ID.IsFrontDovetailMortise( Proc) then Strategies = { { sStrategyId = 'STR0007'}} --------------------------------------------------------------------- - -- Feature : Marking + -- Feature : Marking (0-60) elseif ID.IsMarking( Proc) then --------------------------------------------------------------------- - -- Feature : Text + -- Feature : Text (0-61) elseif ID.IsText( Proc) then --------------------------------------------------------------------- - -- Feature : Scarf Simple + -- Feature : Scarf Simple (1-70) elseif ID.IsScarfSimple( Proc) then --------------------------------------------------------------------- - -- Feature : Scarf Joint + -- Feature : Scarf Joint (1-71) elseif ID.IsScarfJoint( Proc) then --------------------------------------------------------------------- - -- Feature : Step Joint + -- Feature : Step Joint (1-80) elseif ID.IsStepJoint( Proc) then --------------------------------------------------------------------- - -- Feature : Step Joint Notch + -- Feature : Step Joint Notch (0-80) elseif ID.IsStepJointNotch( Proc) then --------------------------------------------------------------------- - -- Feature : Planing + -- Feature : Planing (0-90) elseif ID.IsPlaning( Proc) then --------------------------------------------------------------------- - -- Feature : Front Profile + -- Feature : Front Profile (0-100) elseif ID.IsFrontProfile( Proc) then --------------------------------------------------------------------- - -- Feature : Head Concave Profile + -- Feature : Head Concave Profile (0-101) elseif ID.IsHeadConcaveProfile( Proc) then --------------------------------------------------------------------- - -- Feature : Head Convex Profile + -- Feature : Head Convex Profile (0-102) elseif ID.IsHeadConvexProfile( Proc) then --------------------------------------------------------------------- - -- Feature : Head Cambered Profile + -- Feature : Head Cambered Profile (0-103) elseif ID.IsHeadCamberedProfile( Proc) then --------------------------------------------------------------------- - -- Feature : Round Arch + -- Feature : Round Arch (0-104) elseif ID.IsRoundArch( Proc) then --------------------------------------------------------------------- - -- Feature : Head Profile + -- Feature : Head Profile (0-106) elseif ID.IsHeadProfile( Proc) then --------------------------------------------------------------------- - -- Feature : Sphere + -- Feature : Sphere (0-107) elseif ID.IsSphere( Proc) then --------------------------------------------------------------------- - -- Feature : Triangle Cut + -- Feature : Triangle Cut (0-120) elseif ID.IsTriangleCut( Proc) then --------------------------------------------------------------------- - -- Feature : TyroleanDovetail + -- Feature : TyroleanDovetail (0-136) elseif ID.IsTyroleanDovetail( Proc) then --------------------------------------------------------------------- - -- Feature : Dovetail + -- Feature : Dovetail (0-138) elseif ID.IsDovetail( Proc) then --------------------------------------------------------------------- - -- Feature : Free Contour + -- Feature : Free Contour (0-250) elseif ID.IsFreeContour( Proc) then --------------------------------------------------------------------- - -- Feature : Outline + -- Feature : Outline (0-251) elseif ID.IsOutline( Proc) then --------------------------------------------------------------------- - -- Feature : Aperture + -- Feature : Aperture (0-252) elseif ID.IsAperture( Proc) then --------------------------------------------------------------------- - -- Feature : Variant + -- Feature : Variant (0-900) elseif ID.IsVariant( Proc) then --------------------------------------------------------------------- end