Aggiunto nuovo campo "sStrategyName" alle strategie per nome visualizzato in BeamWall

This commit is contained in:
andrea.villa
2025-05-22 09:09:30 +02:00
parent eb05b74a44
commit 5b10e28f07
13 changed files with 31 additions and 4 deletions
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0001",
"sStrategyName": "DoveTail Tenon",
"ParameterList" : [
{
"sName": "dOverMatOnLength",
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0002",
"sStrategyName": "Pocketing",
"ParameterList" : [
{
"sName": "dMaxCornerRadius",
+19 -4
View File
@@ -307,7 +307,12 @@ local function GetBestPocketingStrategy( Proc)
-- se la 3 completa tutto
elseif Machining[3].bIsApplicable and Machining[3].ToolInfo.dResidualDepth < 10 * GEO.EPS_SMALL then
Machining.sTypeMachining = 'Side1'
Strategy.Result.sStatus = 'Completed'
-- TODO setto non completo perchè è rimasto il raggio sullo spigolo. E' giusto considerare non completo?
if Proc.Topology.sName == 'Groove-3-Through' or Proc.Topology.sName == 'Rabbet-2-Through' or Proc.Topology.sName == 'VGroove-2-Through' then
Strategy.Result.sStatus = 'Not-Completed'
else
Strategy.Result.sStatus = 'Completed'
end
Strategy.Result.nCompletionIndex = FeatureLib.GetFeatureCompletionIndex( 100)
Strategy.Result.nQuality = FeatureLib.GetFeatureQuality( 'RadiusOnCornerLeft')
Strategy.Result.dMRR = Machining[3].dMRR
@@ -323,7 +328,12 @@ local function GetBestPocketingStrategy( Proc)
-- se la 4 completa tutto
elseif Machining[4].bIsApplicable and Machining[4].ToolInfo.dResidualDepth < 10 * GEO.EPS_SMALL then
Machining.sTypeMachining = 'Side2'
Strategy.Result.sStatus = 'Completed'
-- TODO setto non completo perchè è rimasto il raggio sullo spigolo. E' giusto considerare non completo?
if Proc.Topology.sName == 'Groove-3-Through' or Proc.Topology.sName == 'Rabbet-2-Through' or Proc.Topology.sName == 'VGroove-2-Through' then
Strategy.Result.sStatus = 'Not-Completed'
else
Strategy.Result.sStatus = 'Completed'
end
Strategy.Result.nCompletionIndex = FeatureLib.GetFeatureCompletionIndex( 100)
Strategy.Result.nQuality = FeatureLib.GetFeatureQuality( 'RadiusOnCornerLeft')
Strategy.Result.dMRR = Machining[4].dMRR
@@ -336,11 +346,16 @@ local function GetBestPocketingStrategy( Proc)
Machining[2].bIsApplicable = false
Machining[3].bIsApplicable = false
return Machining
-- se tunnel 2+3 completa tutto
-- se tunnel 3+4 completa tutto
elseif Proc.MainFaces.TunnelAddedFaces and Machining[3].bIsApplicable and Machining[4].bIsApplicable and
Machining[3].ToolInfo.dResidualDepth + Machining[4].ToolInfo.dResidualDepth < (Proc.MainFaces.TunnelAddedFaces.MiddleFaceTm.Faces[1].dElevation * 2) + BeamData.MILL_OVERLAP then
Machining.sTypeMachining = 'Side1-Side2'
Strategy.Result.sStatus = 'Completed'
-- TODO setto non completo perchè è rimasto il raggio sullo spigolo. E' giusto considerare non completo?
if Proc.Topology.sName == 'Groove-3-Through' or Proc.Topology.sName == 'Rabbet-2-Through' or Proc.Topology.sName == 'VGroove-2-Through' then
Strategy.Result.sStatus = 'Not-Completed'
else
Strategy.Result.sStatus = 'Completed'
end
Machining[3].ToolInfo.dResidualDepth = Machining[3].ToolInfo.dResidualDepth - Proc.MainFaces.TunnelAddedFaces.MiddleFaceTm.Faces[1].dElevation
Machining[4].ToolInfo.dResidualDepth = -Machining[3].ToolInfo.dResidualDepth - BeamData.MILL_OVERLAP
Strategy.Result.nCompletionIndex = FeatureLib.GetFeatureCompletionIndex( 100)
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0003",
"sStrategyName": "Blade plus ChainSaw",
"ParameterList" : [
{
"sName": "bFinishWithChainSaw",
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0004",
"sStrategyName": "ChainSaw",
"ParameterList" : [
{
"sName": "bUseZigZagMortising",
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0005",
"sStrategyName": "Blade",
"ParameterList" : [
{
"sName": "bForceLongcutBlade",
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0006",
"sStrategyName": "Tenon",
"ParameterList" : [
{
"sName": "dOverMatOnLength",
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0007",
"sStrategyName": "DoveTail Mortise",
"ParameterList" : [
{
"sName": "dOverMatOnLength",
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0008",
"sStrategyName": "Mortise",
"ParameterList" : [
{
"sName": "dOverMatOnLength",
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0009",
"sStrategyName": "Mill Heading",
"ParameterList" : [
{
"sName": "dDepthChamfer",
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0010",
"sStrategyName": "Milling",
"ParameterList" : [
{
"sName": "dAntiSplintWithBlade",
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0011",
"sStrategyName": "Hole with Drillbit",
"ParameterList" : [
]
}
+1
View File
@@ -1,5 +1,6 @@
{
"sStrategyId": "STR0012",
"sStrategyName": "RidgeLap with Blade",
"ParameterList" : [
{
"sName": "dExtendAfterTail",