From 573b78026f6dadfb216ffb4b10f23f624804fe4c Mon Sep 17 00:00:00 2001 From: ChenX Date: Wed, 12 Jun 2024 11:02:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91:=E5=A2=9E=E5=8A=A0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/DatabaseServices/Database.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/DatabaseServices/Database.ts b/src/DatabaseServices/Database.ts index 3a0442c9e..e7d3b9c9a 100644 --- a/src/DatabaseServices/Database.ts +++ b/src/DatabaseServices/Database.ts @@ -74,6 +74,7 @@ export class Database private idMap = new Map(); constructor(buildDefaultDrawing = false, public IsDefaultDatabase = false, disableHistoric = false) { + //注意:下面的注释是严格排序的,请不要随意插入某个表 this.ModelSpace = new BlockTableRecord().SetOwnerDatabase(this); this.MaterialTable = new MaterialTable().SetOwnerDatabase(this); this.TextureTable = new TextureTable().SetOwnerDatabase(this); @@ -86,6 +87,7 @@ export class Database this.LayoutSpace = new BlockTableRecord().SetOwnerDatabase(this); this.DimStyleTable = new DimStyleTable().SetOwnerDatabase(this); this.AlignLineGroupTable = new AlignLineGroupTable().SetOwnerDatabase(this); + //注意:新对象在这里添加 if (buildDefaultDrawing) { @@ -187,6 +189,7 @@ export class Database this.CameraSnapshoots.length = 0; this.hm.historyRecord.length = 0; + //注意:下面的注释是严格排序的,请不要随意插入某个表 this.idIndex = 1; this.ModelSpace.SetOwnerDatabase(this); this.MaterialTable.SetOwnerDatabase(this); @@ -199,6 +202,8 @@ export class Database this.LayoutSpace.SetOwnerDatabase(this); this.DimStyleTable.SetOwnerDatabase(this); this.AlignLineGroupTable.SetOwnerDatabase(this); + //注意:新对象在这里添加 + this.idIndex = 100; }