修复:避免造型圆孔导致大孔面相反检查错误

pull/2322/head
ChenX 1 year ago
parent 9d8e84db9e
commit 4b7d043c2f

@ -271,6 +271,8 @@ export class DrawDrillingTool extends Singleton
d.ApplyMatrix(MoveMatrix(new Vector3(0, isPostive ? this.m_Face.Width - posHeight : posHeight)));
}
}
//排钻模板
InitDrillTemp(suitableOption: DrillingOption)
{
let key = StoreageKeys.DrillTemp + suitableOption.tempId;
@ -311,6 +313,7 @@ export class DrawDrillingTool extends Singleton
}
return true;
}
//间距等分
private EqulalSpacing()
{

@ -137,17 +137,8 @@ export class ErpParseData
this.UpdateBoardDrillRemark(boardData);
// 大孔面检查
let hasHoleFaceError = false;
if (boardData.holes.sideHoles.length)
for (let hole of boardData.holes.frontBackHoles)
{
if (hole.type === GangDrillType.Pxl && hole.face !== block.HoleFace as number)
{
holeFaceErrorBoards.add(entity);
hasHoleFaceError = true;
break;
}
}
if (boardData.holes.frontBackHoles.some(hole => hole.type === GangDrillType.Pxl && hole.face !== block.HoleFace as number))
holeFaceErrorBoards.add(entity);
// if (boardData.info.isRect)
// {
@ -225,11 +216,11 @@ export class ErpParseData
Toaster({
message: "部分板件的排钻大孔面异常(排钻的大孔面与板的大孔面相反)!详情见左下角日志!",
timeout: 5000,
intent: Intent.DANGER,
intent: Intent.WARNING,
});
for (let board of holeFaceErrorBoards)
InteractionLog([{ msg: `板件:${board.Name}`, entity: [board] }, { msg: "大孔面相反!" }], LogType.Error);
InteractionLog([{ msg: `板件:${board.Name}`, entity: [board] }, { msg: "大孔面相反!" }], LogType.Warning);
}
//进度条代码

@ -528,7 +528,7 @@ export namespace Production
let center = cu.Center.setZ(0).sub(offsetTanslation);
data.frontBackHoles.push(
{
type: GangDrillType.Pxl,
type: GangDrillType.Ljg,//设置为偏心轮导致我们分析大孔面方向和板的大孔面一致时错误,所以改成连接杆
position: center,
radius: cu.Radius,
depth: m.thickness,

Loading…
Cancel
Save