添加项目文件。
This commit is contained in:
112
Sai.RvKits/RvMEP/SystemModel.cs
Normal file
112
Sai.RvKits/RvMEP/SystemModel.cs
Normal file
@@ -0,0 +1,112 @@
|
||||
using Autodesk.Revit.DB;
|
||||
using Autodesk.Revit.DB.Plumbing;
|
||||
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Sai.RvKits.RvMEP
|
||||
{
|
||||
public class SystemModel : ObservableObject
|
||||
{
|
||||
public SystemModel(MEPSystemType systemType)
|
||||
{
|
||||
//PipingSystemType;
|
||||
//MechanicalSystemType
|
||||
SystemType = systemType;
|
||||
Name = systemType.Name;
|
||||
MEPSystemClassification = (MEPSystemClassification)systemType.SystemClassification;
|
||||
FillColor = systemType.FillColor;
|
||||
Abbreviation = systemType.Abbreviation;
|
||||
}
|
||||
|
||||
private string abbreviation;
|
||||
private System.Windows.Media.Brush backgroundColor;
|
||||
|
||||
private Color fillColor;
|
||||
private Color lineColor;
|
||||
|
||||
private MEPSystemClassification mepSystemClassification;
|
||||
|
||||
private string name;
|
||||
|
||||
private PipeSystemType pipeSystemType;
|
||||
private MEPSystemType systemType;
|
||||
|
||||
public Color LineColor
|
||||
{
|
||||
get => lineColor;
|
||||
set => SetProperty(ref lineColor, value);
|
||||
}
|
||||
|
||||
public string Abbreviation
|
||||
{
|
||||
get => abbreviation;
|
||||
set => SetProperty(ref abbreviation, value);
|
||||
}
|
||||
|
||||
public Color FillColor
|
||||
{
|
||||
get => fillColor;
|
||||
set => SetProperty(ref fillColor, value);
|
||||
}
|
||||
|
||||
public PipeSystemType PipeSystemType
|
||||
{
|
||||
get => pipeSystemType;
|
||||
set => SetProperty(ref pipeSystemType, value);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 系统类型
|
||||
/// </summary>
|
||||
public MEPSystemType SystemType
|
||||
{
|
||||
get => systemType;
|
||||
set => SetProperty(ref systemType, value);
|
||||
}
|
||||
|
||||
public MEPSystemClassification MEPSystemClassification
|
||||
{
|
||||
get => mepSystemClassification;
|
||||
set => SetProperty(ref mepSystemClassification, value);
|
||||
}
|
||||
|
||||
public string Name
|
||||
{
|
||||
get => name;
|
||||
set => SetProperty(ref name, value);
|
||||
}
|
||||
|
||||
public System.Windows.Media.Brush BackgroundColor
|
||||
{
|
||||
get => backgroundColor;
|
||||
//if (fillColor.IsValid)
|
||||
//{
|
||||
// return backgroundColor = new System.Windows.Media.SolidColorBrush(System.Windows.Media.SelectedColor.FromRgb(fillColor.Red, fillColor.Green, fillColor.Blue));
|
||||
//}
|
||||
//return backgroundColor = new System.Windows.Media.SolidColorBrush();
|
||||
set => SetProperty(ref backgroundColor, value);
|
||||
}
|
||||
}
|
||||
|
||||
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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user