This commit is contained in:
parent
ce89c7e38d
commit
f7e41712ce
|
@ -32,10 +32,10 @@ namespace BITFactory.Cutting.Mod
|
|||
|
||||
private void OnRelease(ICommand[] obj)
|
||||
{
|
||||
var commands = obj.OfType<ICuttingCommand>();
|
||||
var commands = obj.OfType<ICuttingCommand>().ToArray();
|
||||
var stringBuilder = new System.Text.StringBuilder();
|
||||
var path = Path.Combine(FolderPath, $"export_{DateTime.Now.Ticks}.cfg");
|
||||
stringBuilder.AppendLine($"导出时间: {DateTime.Now}");
|
||||
stringBuilder.AppendLine($"导出时间: {DateTime.Now},导出命令数量: {commands.Length}");
|
||||
foreach (var command in commands)
|
||||
{
|
||||
if(command is CuttingPointCommand pointCommand)
|
||||
|
@ -51,6 +51,10 @@ namespace BITFactory.Cutting.Mod
|
|||
stringBuilder.AppendLine($"切削线点: {linePos.x} {linePos.y} {linePos.z}");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
stringBuilder.AppendLine($"{command.Name}:{command}");
|
||||
}
|
||||
// switch (command)
|
||||
// {
|
||||
// case CuttingPointCommand pointCommand:
|
||||
|
|
Loading…
Reference in New Issue