更新整理
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user