Files
ShrlAlgoToolkit/ShrlAlgoToolkit.RevitAddins/Standardizer/RenameFamilyItem.cs

29 lines
720 B
C#
Raw Normal View History

2024-09-22 11:05:41 +08:00
using Autodesk.Revit.DB;
using CommunityToolkit.Mvvm.ComponentModel;
2025-04-24 20:56:44 +08:00
namespace ShrlAlgoToolkit.RevitAddins.RvFamily;
2024-09-22 11:05:41 +08:00
public partial class RenameFamilyItem : ObservableValidator
{
[ObservableProperty]
public partial bool IsSelected { get; set; }
2024-09-22 11:05:41 +08:00
[ObservableProperty]
2026-02-21 16:31:24 +08:00
[Common.Attributes.UndefinedChar]
2024-09-22 11:05:41 +08:00
[NotifyDataErrorInfo]
public partial string NewFamilyName { get; set; }
2024-09-22 11:05:41 +08:00
[ObservableProperty]
public partial string OldFamilyName { get; set; }
2024-09-22 11:05:41 +08:00
partial void OnIsSelectedChanged(bool value)
{
if (value == false)
{
NewFamilyName = string.Empty;
}
}
public Family Family { get; set; }
public string CategoryName { get; set; }
}