优化:在排钻失败时(无法找到排钻规则)时,提示哪些板无法找到

pull/2474/head
ChenX 11 months ago
parent 893f813a48
commit 1c5e652819

@ -1095,7 +1095,7 @@ export class DrawDrillingTool extends Singleton
let suitableOptions = this.GetRuleByFace(f);
if (suitableOptions.length === 0)
{
app.Editor.Prompt("长度" + f.Length + "没有合适的规则,或者当前配置不存在" + f.DrillType + "类型排钻", LogType.Error);
app.Editor.Prompt("长度" + f.Length + "没有合适的规则,或者当前配置不存在" + f.DrillType + "类型排钻", LogType.Error, [f.LocalBoard, f.InterBoard].filter(e => e));
return;
}
for (let suitableOption of suitableOptions)
@ -1121,7 +1121,7 @@ export class DrawDrillingTool extends Singleton
{
if (totalDist >= f.Length)
{
Log("起始距离超过碰撞范围", LogType.Warning);
Log("起始距离超过碰撞范围", LogType.Warning, [f.LocalBoard, f.InterBoard].filter(e => e));
continue;
}
}
@ -1153,7 +1153,7 @@ export class DrawDrillingTool extends Singleton
}
if (this.drillEnts.length === 0 && this.woodPins.length === 0)
{
Log("没排钻并且没木销", LogType.Error);
Log("没排钻并且没木销", LogType.Error, [f.LocalBoard, f.InterBoard].filter(e => e));
return;
}
//获得排钻移动距离表

Loading…
Cancel
Save