增加保温层和整理管线的功能,修复自动保存功能等修复多个bug
This commit is contained in:
58
Sai.RvKits/RvMEP/InsulationItem.cs
Normal file
58
Sai.RvKits/RvMEP/InsulationItem.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml.Linq;
|
||||
|
||||
using Autodesk.Revit.DB.Mechanical;
|
||||
using Autodesk.Revit.DB.Plumbing;
|
||||
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
using Sai.Toolkit.Mvvm.Attributes;
|
||||
|
||||
namespace Sai.RvKits.RvMEP;
|
||||
public partial class InsulationItem : ObservableValidator
|
||||
{
|
||||
[GreaterThan(nameof(MinDiameter))]
|
||||
[Range(15, 1000)]
|
||||
public double MaxDiameter
|
||||
{
|
||||
get => maxDiameter;
|
||||
set
|
||||
{
|
||||
SetProperty(ref maxDiameter, value, true);
|
||||
}
|
||||
}
|
||||
|
||||
private double maxDiameter;
|
||||
|
||||
[Range(0, 1000)]
|
||||
|
||||
public double MinDiameter
|
||||
{
|
||||
get => minDiameter;
|
||||
set
|
||||
{
|
||||
SetProperty(ref minDiameter, value, true);
|
||||
ValidateProperty(MaxDiameter, nameof(MaxDiameter));
|
||||
}
|
||||
}
|
||||
private double minDiameter;
|
||||
|
||||
[Required]
|
||||
[Range(10, 1000)]
|
||||
public double Thickness
|
||||
{
|
||||
get => thickness;
|
||||
set => SetProperty(ref thickness, value, true);
|
||||
}
|
||||
private double thickness;
|
||||
|
||||
[ObservableProperty]
|
||||
private PipeInsulationType pipeInsulationType;
|
||||
[ObservableProperty]
|
||||
private DuctInsulationType ductInsulationType;
|
||||
}
|
||||
Reference in New Issue
Block a user