diff --git a/src/CAD/IFox.CAD.Shared/ExtensionMethod/Entity/EntityBoundingInfo.cs b/src/CAD/IFox.CAD.Shared/ExtensionMethod/Entity/EntityBoundingInfo.cs index 2719d18d88b6591512e92d3d852d91b4ab6e6bf1..32562a86a50e7886c74ec01b7d2439812c96ece4 100644 --- a/src/CAD/IFox.CAD.Shared/ExtensionMethod/Entity/EntityBoundingInfo.cs +++ b/src/CAD/IFox.CAD.Shared/ExtensionMethod/Entity/EntityBoundingInfo.cs @@ -45,12 +45,18 @@ public static class EntityBoundingInfo else if (ent is Table table) { + if(table.IsNewObject) + table.GenerateLayout(); + table.RecomputeTableBlock(true); return table.GeometricExtents; } else if (ent is Dimension dim) { + if(dim.IsNewObject) + dim.GenerateLayout(); // 新new的实体生成布局,即可获取包围盒 + dim.RecomputeDimensionBlock(true); return dim.GeometricExtents; }