2024-09-22 11:05:41 +08:00
|
|
|
|
using Autodesk.Revit.DB;
|
|
|
|
|
|
using Autodesk.Revit.DB.Plumbing;
|
|
|
|
|
|
|
|
|
|
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
|
|
|
|
|
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Sai.RvKits.RvMEP
|
|
|
|
|
|
{
|
2024-12-22 10:26:12 +08:00
|
|
|
|
public partial class SystemModel : ObservableObject
|
2024-09-22 11:05:41 +08:00
|
|
|
|
{
|
|
|
|
|
|
public SystemModel(MEPSystemType systemType)
|
|
|
|
|
|
{
|
|
|
|
|
|
//PipingSystemType;
|
|
|
|
|
|
//MechanicalSystemType
|
|
|
|
|
|
SystemType = systemType;
|
|
|
|
|
|
Name = systemType.Name;
|
|
|
|
|
|
MEPSystemClassification = (MEPSystemClassification)systemType.SystemClassification;
|
|
|
|
|
|
FillColor = systemType.FillColor;
|
|
|
|
|
|
Abbreviation = systemType.Abbreviation;
|
|
|
|
|
|
}
|
2024-12-22 10:26:12 +08:00
|
|
|
|
[ObservableProperty]
|
2024-09-22 11:05:41 +08:00
|
|
|
|
private System.Windows.Media.Brush backgroundColor;
|
|
|
|
|
|
|
2024-12-22 10:26:12 +08:00
|
|
|
|
[ObservableProperty]
|
2024-09-22 11:05:41 +08:00
|
|
|
|
private Color fillColor;
|
|
|
|
|
|
|
2024-12-22 10:26:12 +08:00
|
|
|
|
[ObservableProperty]
|
|
|
|
|
|
private MEPSystemClassification mEPSystemClassification;
|
2024-09-22 11:05:41 +08:00
|
|
|
|
|
2024-12-22 10:26:12 +08:00
|
|
|
|
[ObservableProperty]
|
2024-09-22 11:05:41 +08:00
|
|
|
|
private string name;
|
2024-12-22 10:26:12 +08:00
|
|
|
|
[ObservableProperty]
|
2024-09-22 11:05:41 +08:00
|
|
|
|
private PipeSystemType pipeSystemType;
|
2024-12-22 10:26:12 +08:00
|
|
|
|
//系统类型
|
|
|
|
|
|
[ObservableProperty]
|
2024-09-22 11:05:41 +08:00
|
|
|
|
private MEPSystemType systemType;
|
|
|
|
|
|
|
2024-12-22 10:26:12 +08:00
|
|
|
|
[ObservableProperty]
|
|
|
|
|
|
private Color lineColor;
|
|
|
|
|
|
[ObservableProperty]
|
|
|
|
|
|
private string abbreviation;
|
|
|
|
|
|
|
2024-09-22 11:05:41 +08:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public enum MEPSystemClassification
|
|
|
|
|
|
{
|
|
|
|
|
|
[Description("送风")] SupplyAir = 1,
|
|
|
|
|
|
[Description("回风")] ReturnAir = 2,
|
|
|
|
|
|
[Description("排风")] ExhaustAir = 3,
|
|
|
|
|
|
[Description("循环供水")] SupplyHydronic = 7,
|
|
|
|
|
|
[Description("循环回水")] ReturnHydronic = 8,
|
|
|
|
|
|
[Description("卫生设备")] Sanitary = 16,
|
|
|
|
|
|
[Description("通风孔")] Vent = 17,
|
|
|
|
|
|
[Description("雨水")] Storm = 18,
|
|
|
|
|
|
[Description("家用热水")] DomesticHotWater = 19,
|
|
|
|
|
|
[Description("家用冷水")] DomesticColdWater = 20,
|
|
|
|
|
|
[Description("中水")] Recirculation = 21,
|
|
|
|
|
|
[Description("其他")] OtherPipe = 22,
|
|
|
|
|
|
[Description("湿式消防系统")] FireProtectWet = 23,
|
|
|
|
|
|
[Description("干式消防系统")] FireProtectDry = 24,
|
|
|
|
|
|
[Description("预作用消防系统")] FireProtectPreaction = 25,
|
|
|
|
|
|
[Description("其他消防系统")] FireProtectOther = 26
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|