清理多余引用
This commit is contained in:
@@ -6,8 +6,6 @@ using CommunityToolkit.Mvvm.Input;
|
||||
using Nice3point.Revit.Toolkit.External.Handlers;
|
||||
|
||||
using ShrlAlgoToolkit.RevitAddins.RvMEP;
|
||||
using ShrlAlgoToolkit;
|
||||
using ShrlAlgoToolkit.RevitAddins;
|
||||
|
||||
namespace ShrlAlgoToolkit.RevitAddins.Mep
|
||||
{
|
||||
@@ -16,11 +14,11 @@ namespace ShrlAlgoToolkit.RevitAddins.Mep
|
||||
private readonly ActionEventHandler addInsulationHandler = new();
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(Mep.AddInsulationViewModel.AddInsulationCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(AddInsulationCommand))]
|
||||
public partial bool AddToDuct { get; set; }
|
||||
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(Mep.AddInsulationViewModel.AddInsulationCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(AddInsulationCommand))]
|
||||
public partial bool AddToPipe { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -39,14 +37,14 @@ namespace ShrlAlgoToolkit.RevitAddins.Mep
|
||||
/// 选中的风管系统类型
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(Mep.AddInsulationViewModel.AddInsulationCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(AddInsulationCommand))]
|
||||
|
||||
private MechanicalSystemType selectedDuctSystem;
|
||||
/// <summary>
|
||||
/// 选中的管道系统类型
|
||||
/// </summary>
|
||||
[ObservableProperty]
|
||||
[NotifyCanExecuteChangedFor(nameof(Mep.AddInsulationViewModel.AddInsulationCommand))]
|
||||
[NotifyCanExecuteChangedFor(nameof(AddInsulationCommand))]
|
||||
private PipingSystemType selectedPipingSystemType;
|
||||
|
||||
public AddInsulationViewModel(Document doc)
|
||||
@@ -91,7 +89,7 @@ namespace ShrlAlgoToolkit.RevitAddins.Mep
|
||||
(elem is FamilyInstance instance &&
|
||||
instance.Category.Id.IntegerValue == -2008010))
|
||||
{
|
||||
Autodesk.Revit.DB.Mechanical.DuctInsulation
|
||||
DuctInsulation
|
||||
.Create(
|
||||
doc,
|
||||
elem.Id,
|
||||
@@ -145,7 +143,7 @@ namespace ShrlAlgoToolkit.RevitAddins.Mep
|
||||
{
|
||||
if (pipeInsulation != null)
|
||||
{
|
||||
Autodesk.Revit.DB.Plumbing.PipeInsulation
|
||||
PipeInsulation
|
||||
.Create(
|
||||
doc,
|
||||
elem.Id,
|
||||
|
||||
Reference in New Issue
Block a user