Fixed reading lowertool length and uppertool offset
This commit is contained in:
@@ -54,6 +54,7 @@ namespace CincyLib.PressBrake
|
|||||||
|
|
||||||
t.Version = data.Attribute("Version").ToInt();
|
t.Version = data.Attribute("Version").ToInt();
|
||||||
t.ToolName = data.Attribute("ToolName")?.Value;
|
t.ToolName = data.Attribute("ToolName")?.Value;
|
||||||
|
t.Length = data.Attribute("Length").ToDouble();
|
||||||
t.Type = data.Attribute("Type").ToInt();
|
t.Type = data.Attribute("Type").ToInt();
|
||||||
t.Height = data.Attribute("Height").ToDouble();
|
t.Height = data.Attribute("Height").ToDouble();
|
||||||
t.Clearance = data.Attribute("Clearance").ToDouble();
|
t.Clearance = data.Attribute("Clearance").ToDouble();
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ namespace CincyLib.PressBrake
|
|||||||
upperTool.MaxLoad = data.Attribute("MaxLoad").ToDouble();
|
upperTool.MaxLoad = data.Attribute("MaxLoad").ToDouble();
|
||||||
upperTool.Angle = data.Attribute("Angle").ToDouble();
|
upperTool.Angle = data.Attribute("Angle").ToDouble();
|
||||||
upperTool.Radius = data.Attribute("Radius").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"))
|
foreach (var item in data.Element("SegmentList").Descendants("ToolSeg"))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user