Files
Shrlalgo.RvKits/ShrlAlgoToolkit.RevitAddins/RvMEP/SystemModel.cs

63 lines
2.2 KiB
C#
Raw Normal View History

2025-04-24 20:56:44 +08:00
using System.ComponentModel;
using Autodesk.Revit.DB;
2024-09-22 11:05:41 +08:00
using Autodesk.Revit.DB.Plumbing;
using CommunityToolkit.Mvvm.ComponentModel;
2025-04-24 20:56:44 +08:00
namespace ShrlAlgoToolkit.RevitAddins.RvMEP
2024-09-22 11:05:41 +08:00
{
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
}
}