using Autodesk.Revit.DB; using Autodesk.Revit.DB.Plumbing; using CommunityToolkit.Mvvm.ComponentModel; using System.ComponentModel; namespace ShrlAlgo.RvKits.RvMEP { public partial class SystemModel : ObservableObject { public SystemModel(MEPSystemType systemType) { //PipingSystemType; //MechanicalSystemType SystemType = systemType; Name = systemType.Name; MEPSystemClassification = (MEPSystemClassification)systemType.SystemClassification; FillColor = systemType.FillColor; Abbreviation = systemType.Abbreviation; } [ObservableProperty] private System.Windows.Media.Brush backgroundColor; [ObservableProperty] private Color fillColor; [ObservableProperty] private MEPSystemClassification mEPSystemClassification; [ObservableProperty] private string name; [ObservableProperty] private PipeSystemType pipeSystemType; //系统类型 [ObservableProperty] private MEPSystemType systemType; [ObservableProperty] private Color lineColor; [ObservableProperty] private string abbreviation; } 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 } }