Fixed reading lowertool length and uppertool offset

This commit is contained in:
AJ
2019-03-28 23:14:32 -04:00
parent 9092c3385a
commit 508d2947c6
2 changed files with 2 additions and 1 deletions

View File

@@ -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();

View File

@@ -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"))
{