|
|
|
@ -2,7 +2,7 @@ import { Intent } from "@blueprintjs/core";
|
|
|
|
|
import { Box3, Matrix4, Vector3 } from "three";
|
|
|
|
|
import { ExtendsbrThick2 } from "../../Add-on/DrawBoard/BuildBoardTool";
|
|
|
|
|
import { FaceDirection } from "../../Add-on/DrawDrilling/DrillType";
|
|
|
|
|
import { IsHinge } from "../../Add-on/HideSelect/HideSelectUtils";
|
|
|
|
|
import { IsHandle, IsHinge } from "../../Add-on/HideSelect/HideSelectUtils";
|
|
|
|
|
import { app } from "../../ApplicationServices/Application";
|
|
|
|
|
import { arrayRemoveOnce } from "../../Common/ArrayExt";
|
|
|
|
|
import { CommandNames } from "../../Common/CommandNames";
|
|
|
|
@ -1441,7 +1441,7 @@ export async function ReplaceTemplate(oldTemp: TemplateRecord, newTemp: Template
|
|
|
|
|
GetEntityInfo(en, oldTemp, entInfo); //获取被替换实体信息
|
|
|
|
|
//替换对象不是有效对象时(可视化模块空间),不继承该对象属性
|
|
|
|
|
if (entInfo.followAttribute)
|
|
|
|
|
followAttribute(entInfo, newTemp); //房名、柜名、板名跟随
|
|
|
|
|
followAttribute(entInfo, newTemp, IsHinge(en) || IsHandle(en)); //房名、柜名、板名跟随
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (oldTemp?.Parent?.Object)//如果有父对象,则重新设置成它的儿子
|
|
|
|
|