1
This commit is contained in:
@@ -32,10 +32,10 @@ namespace BITFactory.Cutting.Mod
|
|||||||
|
|
||||||
private void OnRelease(ICommand[] obj)
|
private void OnRelease(ICommand[] obj)
|
||||||
{
|
{
|
||||||
var commands = obj.OfType<ICuttingCommand>();
|
var commands = obj.OfType<ICuttingCommand>().ToArray();
|
||||||
var stringBuilder = new System.Text.StringBuilder();
|
var stringBuilder = new System.Text.StringBuilder();
|
||||||
var path = Path.Combine(FolderPath, $"export_{DateTime.Now.Ticks}.cfg");
|
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)
|
foreach (var command in commands)
|
||||||
{
|
{
|
||||||
if(command is CuttingPointCommand pointCommand)
|
if(command is CuttingPointCommand pointCommand)
|
||||||
@@ -51,6 +51,10 @@ namespace BITFactory.Cutting.Mod
|
|||||||
stringBuilder.AppendLine($"切削线点: {linePos.x} {linePos.y} {linePos.z}");
|
stringBuilder.AppendLine($"切削线点: {linePos.x} {linePos.y} {linePos.z}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
stringBuilder.AppendLine($"{command.Name}:{command}");
|
||||||
|
}
|
||||||
// switch (command)
|
// switch (command)
|
||||||
// {
|
// {
|
||||||
// case CuttingPointCommand pointCommand:
|
// case CuttingPointCommand pointCommand:
|
||||||
|
Reference in New Issue
Block a user