From 3e4fa61e398cb7c6fa3d0173ebaf740a14992e8c Mon Sep 17 00:00:00 2001
From: Shuxia Ning <NingShuxia0927@outlook.com>
Date: 星期二, 13 八月 2024 16:11:36 +0800
Subject: [PATCH] 主界面修改

---
 Service/HStation.Service.Revit.Core/01-model/RevitModel.cs |  129 +++++++++++++++++++++++++++++++++---------
 1 files changed, 101 insertions(+), 28 deletions(-)

diff --git a/Service/HStation.Service.Revit.Core/01-model/RevitModel.cs b/Service/HStation.Service.Revit.Core/01-model/RevitModel.cs
index d71de28..81e8028 100644
--- a/Service/HStation.Service.Revit.Core/01-model/RevitModel.cs
+++ b/Service/HStation.Service.Revit.Core/01-model/RevitModel.cs
@@ -3,12 +3,35 @@
     /// <summary>
     /// 妯″瀷淇℃伅
     /// </summary>
-    public class RevitModel
+    public partial class RevitModel
     {
         /// <summary>
         /// 
         /// </summary>
-        public RevitModel() { }
+        public RevitModel()
+        {
+            this.Reservoirs = new List<RevitReservoir>();
+            this.Tanks = new List<RevitTank>();
+            this.Waterboxs = new List<RevitWaterbox>();
+            this.Junctions = new List<RevitJunction>();
+            this.Nozzles = new List<RevitNozzle>();
+            this.Hydrants = new List<RevitHydrant>();
+            this.Meters = new List<RevitMeter>();
+            this.Flowmeters = new List<RevitFlowmeter>();
+            this.Pressmeters = new List<RevitPressmeter>();
+            this.Elbows = new List<RevitElbow>();
+            this.Threelinks = new List<RevitThreelink>();
+            this.Fourlinks = new List<RevitFourlink>();
+            this.Bluntheads = new List<RevitBlunthead>();
+
+            this.Pumps = new List<RevitPump>();
+            this.Valves = new List<RevitValve>();
+            this.Pipes = new List<RevitPipe>();
+            this.Translations = new List<RevitTranslation>();
+            this.Exchangers = new List<RevitExchanger>();
+
+            this.Decorators = new List<RevitDecorator>();
+        }
 
         /// <summary>
         /// 
@@ -18,19 +41,27 @@
             this.Name = rhs.Name;
             this.Description = rhs.Description;
 
-            this.Reservoirs = new List<RevitReservoir>();
-            this.Tanks = new List<RevitTank>();
-            this.Junctions = new List<RevitJunction>();
+            this.Reservoirs = rhs.Reservoirs;
+            this.Tanks = rhs.Tanks;
+            this.Waterboxs = rhs.Waterboxs;
+            this.Junctions = rhs.Junctions;
+            this.Nozzles = rhs.Nozzles;
+            this.Hydrants = rhs.Hydrants;
+            this.Meters = rhs.Meters;
+            this.Flowmeters = rhs.Flowmeters;
+            this.Pressmeters = rhs.Pressmeters;
+            this.Elbows = rhs.Elbows;
+            this.Threelinks = rhs.Threelinks;
+            this.Fourlinks = rhs.Fourlinks;
+            this.Bluntheads = rhs.Bluntheads;
 
-            this.Pumps = new List<RevitPump>();
-            this.Valves = new List<RevitValve>();
-            this.Pipes = new List<RevitPipe>();
+            this.Pumps = rhs.Pumps;
+            this.Valves = rhs.Valves;
+            this.Pipes = rhs.Pipes;
+            this.Translations = rhs.Translations;
+            this.Exchangers = rhs.Exchangers;
 
-            this.Curves = new List<RevitCurve>();
-            this.Patterns = new List<RevitPattern>();
-            this.Rules = new List<RevitRule>();
-
-            this.Decorators = new List<RevitDecorator>();
+            this.Decorators = rhs.Decorators;
         }
 
 
@@ -61,9 +92,64 @@
         public List<RevitTank> Tanks { get; set; }
 
         /// <summary>
+        /// 姘寸鍒楄〃
+        /// </summary>
+        public List<RevitWaterbox> Waterboxs { get; set; }
+
+        /// <summary>
         /// 鑺傜偣鍒楄〃
         /// </summary>
         public List<RevitJunction> Junctions { get; set; }
+
+        /// <summary>
+        /// 鍠峰槾鍒楄〃
+        /// </summary>
+        public List<RevitNozzle> Nozzles { get; set; }
+
+        /// <summary>
+        /// 娑堢伀鏍撳垪琛�
+        /// </summary>
+        public List<RevitHydrant> Hydrants { get; set; }
+
+        /// <summary>
+        /// 寮ご鍒楄〃
+        /// </summary>
+        public List<RevitElbow> Elbows { get; set; }
+
+        /// <summary>
+        /// 涓夐�氬垪琛�
+        /// </summary>
+        public List<RevitThreelink> Threelinks { get; set; }
+
+        /// <summary>
+        /// 鍥涢�氬垪琛�
+        /// </summary>
+        public List<RevitFourlink> Fourlinks { get; set; }
+
+        /// <summary>
+        /// 闂峰ご鍒楄〃
+        /// </summary>
+        public List<RevitBlunthead> Bluntheads { get; set; }
+
+        /// <summary>
+        /// 姘磋〃
+        /// </summary>
+        public List<RevitMeter> Meters { get; set; }
+
+        /// <summary>
+        /// 娴侀噺璁″垪琛�
+        /// </summary>
+        public List<RevitFlowmeter> Flowmeters { get; set; }
+
+        /// <summary>
+        /// 鍘嬪姏琛ㄥ垪琛�
+        /// </summary>
+        public List<RevitPressmeter> Pressmeters { get; set; }
+
+        /// <summary>
+        /// 鎹㈢儹鍣ㄥ垪琛�
+        /// </summary>
+        public List<RevitExchanger> Exchangers { get; set; }
 
         #endregion
 
@@ -84,24 +170,11 @@
         /// </summary>
         public List<RevitPipe> Pipes { get; set; }
 
-        #endregion
-
-        #region 鎿嶄綔
-
         /// <summary>
-        /// 鏇茬嚎鍒楄〃
+        /// 杩囨浮浠跺垪琛�
         /// </summary>
-        public List<RevitCurve> Curves { get; set; }
+        public List<RevitTranslation> Translations { get; set; }
 
-        /// <summary>
-        /// 妯″紡鍒楄〃
-        /// </summary>
-        public List<RevitPattern> Patterns { get; set; }
-
-        /// <summary>
-        /// 瑙勫垯鍒楄〃
-        /// </summary>
-        public List<RevitRule> Rules { get; set; }
 
 
         #endregion

--
Gitblit v1.9.3