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 51d2c6508ba67535c59118bc95e02c6d2a0ba300..63c67f49b15b6c7a7a5298312438b29bbdf54e98 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 => {