This commit is contained in:
parent
7263881497
commit
b3a333efc6
29
Class1.cs
29
Class1.cs
|
@ -36,21 +36,20 @@ namespace BITFactory.Cutting
|
||||||
stringBuilder.AppendLine($"导出时间: {DateTime.Now}");
|
stringBuilder.AppendLine($"导出时间: {DateTime.Now}");
|
||||||
foreach (var x in commands)
|
foreach (var x in commands)
|
||||||
{
|
{
|
||||||
switch (x)
|
// switch (x)
|
||||||
{
|
// {
|
||||||
case CuttingPointCommand pointCommand:
|
// case CuttingPointCommand pointCommand:
|
||||||
stringBuilder.AppendLine(
|
// stringBuilder.AppendLine(
|
||||||
$"切削点: {pointCommand.PlanePoint.x} {pointCommand.PlanePoint.y} {pointCommand.PlanePoint.z}");
|
// $"切削点: {pointCommand.PlanePoint.x} {pointCommand.PlanePoint.y} {pointCommand.PlanePoint.z}");
|
||||||
break;
|
// break;
|
||||||
case CuttingLineCommand lineCommand:
|
// case CuttingLineCommand lineCommand:
|
||||||
stringBuilder.AppendLine($"切削线:{lineCommand.Line.Length}");
|
// stringBuilder.AppendLine($"切削线:{lineCommand.Line.Length}");
|
||||||
foreach (var linePos in lineCommand.Line)
|
// foreach (var linePos in lineCommand.Line)
|
||||||
{
|
// {
|
||||||
stringBuilder.AppendLine($"切削线点: {linePos.x} {linePos.y} {linePos.z}");
|
// stringBuilder.AppendLine($"切削线点: {linePos.x} {linePos.y} {linePos.z}");
|
||||||
}
|
// }
|
||||||
|
// break;
|
||||||
break;
|
// }
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
File.WriteAllText(path, stringBuilder.ToString());
|
File.WriteAllText(path, stringBuilder.ToString());
|
||||||
|
|
Loading…
Reference in New Issue