diff --git a/src/DatabaseServices/Database.ts b/src/DatabaseServices/Database.ts index 11bde369c..126899916 100644 --- a/src/DatabaseServices/Database.ts +++ b/src/DatabaseServices/Database.ts @@ -58,8 +58,7 @@ export class Database this.Lights = new BlockTableRecord().SetOwnerDatabase(this); this.hm = new HistoricManage().SetDefaultDb(this); - if (disableHistoric) - this.hm.Enable = false; + this.hm.Enable = false; if (buildDefaultDrawing) { @@ -85,6 +84,8 @@ export class Database this.InitLight(); } + this.hm.Enable = !disableHistoric; + //100以内的id是系统保留id,默认初始化内部对象. this.idIndex = 100; }