|
|
|
@ -17,43 +17,43 @@ export class TemplateVerticalBoard extends TemplateBoardRecord
|
|
|
|
|
super();
|
|
|
|
|
this.name = "立板(自动)";
|
|
|
|
|
}
|
|
|
|
|
protected option: VerticalBoardOption = { ...DefaultVerticalBoardConfig };
|
|
|
|
|
protected _option: VerticalBoardOption = { ...DefaultVerticalBoardConfig };
|
|
|
|
|
GeneralBoardList(space: ISpaceParse)
|
|
|
|
|
{
|
|
|
|
|
return BuildVerticalBoards(this.option, space);
|
|
|
|
|
return BuildVerticalBoards(this._option, space);
|
|
|
|
|
}
|
|
|
|
|
ReadFile(file: CADFiler)
|
|
|
|
|
{
|
|
|
|
|
let ver = file.Read();
|
|
|
|
|
super.ReadFile(file);
|
|
|
|
|
this.option.type = file.Read();
|
|
|
|
|
this.option.name = file.Read();
|
|
|
|
|
this.option.frontShrink = file.Read();
|
|
|
|
|
this.option.bottomShrink = file.Read();
|
|
|
|
|
this.option.calcWidth = file.Read();
|
|
|
|
|
this.option.calcHeight = file.Read();
|
|
|
|
|
this.option.isTotalLength = file.Read();
|
|
|
|
|
this.option.isTotalWidth = file.Read();
|
|
|
|
|
this.option.boardRelative = file.Read();
|
|
|
|
|
this.option.thickness = file.Read();
|
|
|
|
|
this.option.count = file.Read();
|
|
|
|
|
this.option.spaceSize = file.Read();
|
|
|
|
|
this._option.type = file.Read();
|
|
|
|
|
this._option.name = file.Read();
|
|
|
|
|
this._option.frontShrink = file.Read();
|
|
|
|
|
this._option.bottomShrink = file.Read();
|
|
|
|
|
this._option.calcWidth = file.Read();
|
|
|
|
|
this._option.calcHeight = file.Read();
|
|
|
|
|
this._option.isTotalLength = file.Read();
|
|
|
|
|
this._option.isTotalWidth = file.Read();
|
|
|
|
|
this._option.boardRelative = file.Read();
|
|
|
|
|
this._option.thickness = file.Read();
|
|
|
|
|
this._option.count = file.Read();
|
|
|
|
|
this._option.spaceSize = file.Read();
|
|
|
|
|
}
|
|
|
|
|
WriteFile(file: CADFiler)
|
|
|
|
|
{
|
|
|
|
|
file.Write(1);
|
|
|
|
|
super.WriteFile(file);
|
|
|
|
|
file.Write(this.option.type);
|
|
|
|
|
file.Write(this.option.name);
|
|
|
|
|
file.Write(this.option.frontShrink);
|
|
|
|
|
file.Write(this.option.bottomShrink);
|
|
|
|
|
file.Write(this.option.calcWidth);
|
|
|
|
|
file.Write(this.option.calcHeight);
|
|
|
|
|
file.Write(this.option.isTotalLength);
|
|
|
|
|
file.Write(this.option.isTotalWidth);
|
|
|
|
|
file.Write(this.option.boardRelative);
|
|
|
|
|
file.Write(this.option.thickness);
|
|
|
|
|
file.Write(this.option.count);
|
|
|
|
|
file.Write(this.option.spaceSize);
|
|
|
|
|
file.Write(this._option.type);
|
|
|
|
|
file.Write(this._option.name);
|
|
|
|
|
file.Write(this._option.frontShrink);
|
|
|
|
|
file.Write(this._option.bottomShrink);
|
|
|
|
|
file.Write(this._option.calcWidth);
|
|
|
|
|
file.Write(this._option.calcHeight);
|
|
|
|
|
file.Write(this._option.isTotalLength);
|
|
|
|
|
file.Write(this._option.isTotalWidth);
|
|
|
|
|
file.Write(this._option.boardRelative);
|
|
|
|
|
file.Write(this._option.thickness);
|
|
|
|
|
file.Write(this._option.count);
|
|
|
|
|
file.Write(this._option.spaceSize);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|