From 2e52cbd0342e6331767cc48860263043ed1f5315 Mon Sep 17 00:00:00 2001 From: zhinanheshang Date: Fri, 26 Jan 2024 11:37:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0new=E7=9A=84dim?= =?UTF-8?q?=E5=AE=9E=E4=BD=93=E8=8E=B7=E5=8F=96=E5=8C=85=E5=9B=B4=E7=9B=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ExtensionMethod/Entity/EntityBoundingInfo.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/CAD/IFox.CAD.Shared/ExtensionMethod/Entity/EntityBoundingInfo.cs b/src/CAD/IFox.CAD.Shared/ExtensionMethod/Entity/EntityBoundingInfo.cs index 2719d18..32562a8 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; } -- Gitee