|
|
|
@ -33,7 +33,7 @@ export class BoardLinesReactor
|
|
|
|
|
{
|
|
|
|
|
if (hasMaxSize || hasShortBoard)
|
|
|
|
|
AppConfirm.show({
|
|
|
|
|
message: `${hasMaxSize ? '检测到有超长板件' : ""} ${hasShortBoard ? '检测到有超短板件' : ""}`,
|
|
|
|
|
message: `${hasMaxSize ? '检测到有超长板件!(查找超长板命令:FindMaxBr)' : ""} ${hasShortBoard ? '检测到有超短板件!(查找超短板FindMinBr)' : ""}`,
|
|
|
|
|
hasCancel: false,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -98,6 +98,7 @@ const MinThickness = 2;
|
|
|
|
|
|
|
|
|
|
export function BoardIsShort(br: CADObject): boolean
|
|
|
|
|
{
|
|
|
|
|
if (br.IsErase) return false;
|
|
|
|
|
if (br instanceof Board)
|
|
|
|
|
return br.Width < MinWidth || br.Height < MinHeight || br.Thickness < MinThickness;
|
|
|
|
|
return false;
|
|
|
|
|