样式demo
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using Autodesk.Revit.DB;
|
||||
using Autodesk.Revit.DB.Architecture;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using ShrlAlgoToolkit.Core.Assists;
|
||||
|
||||
namespace ShrlAlgoToolkit.RevitAddins.RvMEP
|
||||
{
|
||||
@@ -13,9 +14,10 @@ namespace ShrlAlgoToolkit.RevitAddins.RvMEP
|
||||
public partial string Name { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyPropertyChangedFor(nameof(Color))]
|
||||
public partial Room Room { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
public partial Color Color { get; set; }
|
||||
public partial Color Color { get; set; } = ColorAssist.GetDistinctColorById(Room.Id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user