From 44d9b3ffe4a3b743dbc9c6023e80f77e2975283e Mon Sep 17 00:00:00 2001 From: lixiaojun <1287241240@qq.com> Date: 星期三, 31 七月 2024 23:04:54 +0800 Subject: [PATCH] 部分修改 --- Service/HStation.Service.Revit.Core/02-parter/02-node/RevitTank.cs | 51 ++++++++++++++++++++++++++++----------------------- 1 files changed, 28 insertions(+), 23 deletions(-) diff --git a/Service/HStation.Service.Revit.Core/02-parter/02-node/RevitTank.cs b/Service/HStation.Service.Revit.Core/02-parter/02-node/RevitTank.cs index 8566c7e..a412e83 100644 --- a/Service/HStation.Service.Revit.Core/02-parter/02-node/RevitTank.cs +++ b/Service/HStation.Service.Revit.Core/02-parter/02-node/RevitTank.cs @@ -16,78 +16,83 @@ public RevitTank(RevitTank rhs) : base(rhs) { this.ModelType = rhs.ModelType; - this.Elev = rhs.Elev; + this.Quality = rhs.Quality; + this.PoolElev = rhs.PoolElev; this.InitLevel = rhs.InitLevel; this.MinLevel = rhs.MinLevel; this.MaxLevel = rhs.MaxLevel; this.Diameter = rhs.Diameter; this.MinVol = rhs.MinVol; this.VolCurve = rhs.VolCurve; - this.X = rhs.X; - this.Y = rhs.Y; - this.Z = rhs.Z; - this.PropValueList = rhs.PropValueList?.Select(x => new RevitPropValue(x)).ToList(); + this.PropValueList = rhs.PropValueList; + this.BoundingBox = rhs.BoundingBox; } /// <summary> - /// 鍨嬪彿 + /// 鍨嬪彿淇℃伅 /// </summary> + [JsonProperty("鍨嬪彿淇℃伅", NullValueHandling = NullValueHandling.Ignore)] public string ModelType { get; set; } + + /// <summary> + /// 鍒濆姘磋川 + /// </summary> + [JsonProperty("鍒濆姘磋川", NullValueHandling = NullValueHandling.Ignore)] + public double Quality { get; set; } /// <summary> /// 姹犲簳鏍囬珮 /// </summary> - public double Elev { get; set; } + [JsonProperty("姹犲簳鏍囬珮", NullValueHandling = NullValueHandling.Ignore)] + public double PoolElev { get; set; } /// <summary> /// 鍒濆姘翠綅 /// </summary> + [JsonProperty("鍒濆姘翠綅", NullValueHandling = NullValueHandling.Ignore)] public double InitLevel { get; set; } /// <summary> /// 鏈�浣庢按浣� /// </summary> + [JsonProperty("鏈�浣庢按浣�", NullValueHandling = NullValueHandling.Ignore)] public double MinLevel { get; set; } /// <summary> /// 鏈�楂樻按浣� /// </summary> + [JsonProperty("鏈�楂樻按浣�", NullValueHandling = NullValueHandling.Ignore)] public double MaxLevel { get; set; } /// <summary> /// 鐩村緞 /// </summary> + [JsonProperty("鐩村緞", NullValueHandling = NullValueHandling.Ignore)] public double Diameter { get; set; } /// <summary> /// 鏈�灏忓绉� /// </summary> + [JsonProperty("鏈�灏忓绉�", NullValueHandling = NullValueHandling.Ignore)] public double MinVol { get; set; } /// <summary> /// 瀹圭Н鏇茬嚎 /// </summary> + [JsonProperty("瀹圭Н鏇茬嚎", NullValueHandling = NullValueHandling.Ignore)] public string VolCurve { get; set; } - - /// <summary> - /// X鍧愭爣 - /// </summary> - public double X { get; set; } - - /// <summary> - /// Y鍧愭爣 - /// </summary> - public double Y { get; set; } - - /// <summary> - /// Z鍧愭爣 - /// </summary> - public double Z { get; set; } /// <summary> /// 灞炴�у�煎垪琛� /// </summary> - public List<RevitPropValue> PropValueList { get; set; } + [JsonProperty("灞炴�у�煎垪琛�", NullValueHandling = NullValueHandling.Ignore)] + public Dictionary<string, object> PropValueList { get; set; } + + /// <summary> + /// 浣嶇疆 + /// </summary> + [JsonProperty("浣嶇疆", NullValueHandling = NullValueHandling.Ignore)] + public RevitBoundingBox BoundingBox { get; set; } } } -- Gitblit v1.9.3