|
|
|
@ -209,7 +209,9 @@ export class DrawDoorTool
|
|
|
|
|
|
|
|
|
|
return templateSpace;
|
|
|
|
|
}
|
|
|
|
|
private GetPositionSpace(name: string)
|
|
|
|
|
|
|
|
|
|
//创建定位空间模块
|
|
|
|
|
private CreatePositionSpaceTr(name: string)
|
|
|
|
|
{
|
|
|
|
|
let handleSpace = new TemplateRecord().InitBaseParams();
|
|
|
|
|
handleSpace.Name = name;
|
|
|
|
@ -219,14 +221,14 @@ export class DrawDoorTool
|
|
|
|
|
this.AppendTemplateParam('SY', 0, "上下移动", handleSpace);
|
|
|
|
|
return handleSpace;
|
|
|
|
|
}
|
|
|
|
|
protected GetHandleTemp(info: IDoorInfo, doorTemp: TemplateRecord)
|
|
|
|
|
protected CreateHandleTr(info: IDoorInfo, doorTr: TemplateRecord)
|
|
|
|
|
{
|
|
|
|
|
if (info.tempInfo.handleTemp.id && this._idTempMap.has(info.tempInfo.handleTemp.id))
|
|
|
|
|
{
|
|
|
|
|
let handleSpace = this.GetPositionSpace("拉手空间");
|
|
|
|
|
let handleSpace = this.CreatePositionSpaceTr("拉手空间");
|
|
|
|
|
handleSpace.PYParam.expr = "-____MBH";
|
|
|
|
|
app.Database.TemplateTable.Append(handleSpace);
|
|
|
|
|
doorTemp.Children.push(handleSpace.Id);
|
|
|
|
|
doorTr.Children.push(handleSpace.Id);
|
|
|
|
|
|
|
|
|
|
let xExpr = "";
|
|
|
|
|
switch (this.option.handleHorPos)
|
|
|
|
@ -296,7 +298,7 @@ export class DrawDoorTool
|
|
|
|
|
if (info.tempInfo.hingeTemp && info.tempInfo.hingeTemp.id && this._idTempMap.has(info.tempInfo.hingeTemp.id))
|
|
|
|
|
{
|
|
|
|
|
if (info.openDir === DoorOpenDir.None) return;
|
|
|
|
|
let hingeSpace = this.GetPositionSpace("铰链空间");
|
|
|
|
|
let hingeSpace = this.CreatePositionSpaceTr("铰链空间");
|
|
|
|
|
let hingeTemp = this._idTempMap.get(info.tempInfo.hingeTemp.id);
|
|
|
|
|
if (hingeTemp.Objects.length === 0) return;
|
|
|
|
|
let count = this.option.hingeCount;
|
|
|
|
|