更新整理

This commit is contained in:
GG Z
2025-04-24 20:56:44 +08:00
parent 155cef46f8
commit 5b6d67b571
813 changed files with 14437 additions and 12362 deletions

View File

@@ -1,14 +1,13 @@
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using Nice3point.Revit.Toolkit.External.Handlers;
using ShrlAlgoToolkit.Mvvm.Attributes;
namespace ShrlAlgo.RvKits.RvMEP;
namespace ShrlAlgoToolkit.RevitAddins.RvMEP;
public partial class MoveMEPCurveViewModel : ObservableValidator
{
@@ -34,7 +33,7 @@ public partial class MoveMEPCurveViewModel : ObservableValidator
/// 正在执行命令
/// </summary>
[ObservableProperty]
[NotifyCanExecuteChangedFor(nameof(MoveCommand))]
[NotifyCanExecuteChangedFor(nameof(RevitAddins.RvMEP.MoveMEPCurveViewModel.MoveCommand))]
private bool canRunning = true;
[RelayCommand]
@@ -133,12 +132,12 @@ public partial class MoveMEPCurveViewModel : ObservableValidator
//参考底部大于原管线顶部
if (referMinZ > maxZ)
{
z = (referMinZ - Math.Abs(Distance) / 304.8) - maxZ;
z = (referMinZ - Math.Abs((double)Distance) / 304.8) - maxZ;
}
//参考顶部大于原管线底部
else if (referMaxZ < minZ)
{
z = (referMaxZ + Math.Abs(Distance) / 304.8) - minZ;
z = (referMaxZ + Math.Abs((double)Distance) / 304.8) - minZ;
}
else
{