|
|
|
@ -138,6 +138,7 @@ export class TemplateTopBottomBoard extends TemplateRecord
|
|
|
|
|
oldBrs[j].Width = newBrs[j].Width;
|
|
|
|
|
oldBrs[j].Height = newBrs[j].Height;
|
|
|
|
|
oldBrs[j].Thickness = newBrs[j].Thickness;
|
|
|
|
|
this.SetBoardProcess(oldBrs[j], minSealed);
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
@ -164,14 +165,14 @@ export class TemplateTopBottomBoard extends TemplateRecord
|
|
|
|
|
{
|
|
|
|
|
if (br.Name === "底板")
|
|
|
|
|
{
|
|
|
|
|
if (this.BoardProcessOption?.bigHoleDir === FaceDirection.Inside)
|
|
|
|
|
if (this._bottomOption.bigHoleDir === FaceDirection.Inside)
|
|
|
|
|
br.BoardProcessOption[EBoardKeyList.BigHole] = FaceDirection.Front;
|
|
|
|
|
else
|
|
|
|
|
br.BoardProcessOption[EBoardKeyList.BigHole] = FaceDirection.Back;
|
|
|
|
|
}
|
|
|
|
|
else if (br.Name === "顶板")
|
|
|
|
|
{
|
|
|
|
|
if (this.BoardProcessOption?.bigHoleDir === FaceDirection.Front)
|
|
|
|
|
if (this._bottomOption.bigHoleDir === FaceDirection.Front)
|
|
|
|
|
br.BoardProcessOption[EBoardKeyList.BigHole] = FaceDirection.Front;
|
|
|
|
|
else
|
|
|
|
|
br.BoardProcessOption[EBoardKeyList.BigHole] = FaceDirection.Back;
|
|
|
|
@ -228,11 +229,12 @@ export class TemplateTopBottomBoard extends TemplateRecord
|
|
|
|
|
this._bottomOption.isDrawStrengthenStrip = file.Read();
|
|
|
|
|
this._bottomOption.footerOffset = file.Read();
|
|
|
|
|
this._bottomOption.divCount = file.Read();
|
|
|
|
|
|
|
|
|
|
if (ver > 2)
|
|
|
|
|
this._bottomOption.bigHoleDir = file.Read();
|
|
|
|
|
}
|
|
|
|
|
WriteFile(file: CADFiler)
|
|
|
|
|
{
|
|
|
|
|
file.Write(2);
|
|
|
|
|
file.Write(3);
|
|
|
|
|
super.WriteFile(file);
|
|
|
|
|
file.Write(this.DrawCounts[0]);
|
|
|
|
|
file.Write(this.DrawCounts[1]);
|
|
|
|
@ -268,6 +270,7 @@ export class TemplateTopBottomBoard extends TemplateRecord
|
|
|
|
|
file.Write(this._bottomOption.isDrawStrengthenStrip);
|
|
|
|
|
file.Write(this._bottomOption.footerOffset);
|
|
|
|
|
file.Write(this._bottomOption.divCount);
|
|
|
|
|
file.Write(this._bottomOption.bigHoleDir);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|