From 8666b86588f8dc26e4911a6cd661c16101cc9b08 Mon Sep 17 00:00:00 2001 From: yupeng_dyp Date: Sat, 6 Apr 2024 04:26:55 +0000 Subject: [PATCH] =?UTF-8?q?update=20src/CAD/IFox.CAD.Shared/ExtensionMetho?= =?UTF-8?q?d/=E6=96=B0=E5=BB=BA=E5=A1=AB=E5=85=85/HatchEx.cs.=20=E5=8F=96?= =?UTF-8?q?=E6=B6=88=E4=BA=86=20id.IsOk=20=E6=A3=80=E6=9F=A5=EF=BC=8C?= =?UTF-8?q?=E5=9B=A0=E4=B8=BA=20id.IsOk=20=E4=B8=BA=20false=20=E6=97=B6?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E4=B9=9F=E6=98=AF=E5=8F=AF=E4=BB=A5=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E7=9A=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yupeng_dyp --- .../HatchEx.cs" | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git "a/src/CAD/IFox.CAD.Shared/ExtensionMethod/\346\226\260\345\273\272\345\241\253\345\205\205/HatchEx.cs" "b/src/CAD/IFox.CAD.Shared/ExtensionMethod/\346\226\260\345\273\272\345\241\253\345\205\205/HatchEx.cs" index 51d2c65..63c67f4 100644 --- "a/src/CAD/IFox.CAD.Shared/ExtensionMethod/\346\226\260\345\273\272\345\241\253\345\205\205/HatchEx.cs" +++ "b/src/CAD/IFox.CAD.Shared/ExtensionMethod/\346\226\260\345\273\272\345\241\253\345\205\205/HatchEx.cs" @@ -24,8 +24,8 @@ public static void ForEach(this Hatch hatch, Action action) /// public static List? GetAssociatedBoundaryIds(this Hatch hatch) { - if (!hatch.Id.IsOk()) - throw new ArgumentException("填充未加入或不存在于数据库"); + // if (!hatch.Id.IsOk()) + // throw new ArgumentException("填充未加入或不存在于数据库"); if (!hatch.Associative) return null; @@ -65,8 +65,8 @@ public static void ForEach(this Hatch hatch, Action action) /// 边界环列表(一个边界环里所有的对象组成一个 DBObjectCollection) public static List CreateBoundarys(this Hatch hatch) { - if (!hatch.Id.IsOk()) - throw new ArgumentException("填充未加入或不存在于数据库"); + // if (!hatch.Id.IsOk()) + // throw new ArgumentException("填充未加入或不存在于数据库"); var listDbObjColl = new List(); @@ -108,7 +108,7 @@ public static List CreateBoundarys(this Hatch hatch) } /// - /// 对已存在于数据库的填充重新设置边界并计算 + /// 重新设置边界并计算 /// /// /// 边界对象(一个边界环里所有的对象 id 组成一个 ObjectIdCollection) @@ -118,8 +118,8 @@ public static List CreateBoundarys(this Hatch hatch) /// 关联边界(默认保持原样) public static void ResetBoundarys(this Hatch hatch, List boundaryIds, bool? associative = null) { - if (!hatch.Id.IsOk()) - throw new ArgumentException("填充未加入或不存在于数据库"); + // if (!hatch.Id.IsOk()) + // throw new ArgumentException("填充未加入或不存在于数据库"); boundaryIds.ForEach(ids => { -- Gitee