From 508d2947c600ac4ec4b0a76ae4ed2ba43ec0f8a2 Mon Sep 17 00:00:00 2001 From: AJ Date: Thu, 28 Mar 2019 23:14:32 -0400 Subject: [PATCH] Fixed reading lowertool length and uppertool offset --- CincyLib/PressBrake/LowerTool.cs | 1 + CincyLib/PressBrake/UpperTool.cs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CincyLib/PressBrake/LowerTool.cs b/CincyLib/PressBrake/LowerTool.cs index bea9551..2096139 100644 --- a/CincyLib/PressBrake/LowerTool.cs +++ b/CincyLib/PressBrake/LowerTool.cs @@ -54,6 +54,7 @@ namespace CincyLib.PressBrake t.Version = data.Attribute("Version").ToInt(); t.ToolName = data.Attribute("ToolName")?.Value; + t.Length = data.Attribute("Length").ToDouble(); t.Type = data.Attribute("Type").ToInt(); t.Height = data.Attribute("Height").ToDouble(); t.Clearance = data.Attribute("Clearance").ToDouble(); diff --git a/CincyLib/PressBrake/UpperTool.cs b/CincyLib/PressBrake/UpperTool.cs index e2ae9fb..f24c848 100644 --- a/CincyLib/PressBrake/UpperTool.cs +++ b/CincyLib/PressBrake/UpperTool.cs @@ -56,7 +56,7 @@ namespace CincyLib.PressBrake upperTool.MaxLoad = data.Attribute("MaxLoad").ToDouble(); upperTool.Angle = data.Attribute("Angle").ToDouble(); upperTool.Radius = data.Attribute("Radius").ToDouble(); - upperTool.Offset = data.Attribute("Radius").ToDouble(); + upperTool.Offset = data.Attribute("Offset").ToDouble(); foreach (var item in data.Element("SegmentList").Descendants("ToolSeg")) {