调整代码
This commit is contained in:
65
ShrlAlgoToolkit.RevitAddins/Mep/SystemModel.cs
Normal file
65
ShrlAlgoToolkit.RevitAddins/Mep/SystemModel.cs
Normal file
@@ -0,0 +1,65 @@
|
||||
using System.ComponentModel;
|
||||
using Autodesk.Revit.DB;
|
||||
using Autodesk.Revit.DB.Plumbing;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace ShrlAlgoToolkit.RevitAddins.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]
|
||||
public partial System.Windows.Media.Brush BackgroundColor { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial Color FillColor { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial MEPSystemClassification MEPSystemClassification { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial string Name { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial PipeSystemType PipeSystemType { get; set; }
|
||||
|
||||
//系统类型
|
||||
[ObservableProperty]
|
||||
public partial MEPSystemType SystemType { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial Color LineColor { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial string Abbreviation { get; set; }
|
||||
}
|
||||
|
||||
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