");
- html.AppendLine("
检测间隙
");
- html.AppendLine($"
{DetectionGap:F2} 米
");
+ html.AppendLine("
检测容差
");
+ html.AppendLine($"
{DetectionTolerance:F2} 米
");
html.AppendLine("
");
html.AppendLine("");
diff --git a/src/UI/WPF/ViewModels/PathEditingViewModel.cs b/src/UI/WPF/ViewModels/PathEditingViewModel.cs
index 6b4d984..8d52b76 100644
--- a/src/UI/WPF/ViewModels/PathEditingViewModel.cs
+++ b/src/UI/WPF/ViewModels/PathEditingViewModel.cs
@@ -788,17 +788,14 @@ namespace NavisworksTransport.UI.WPF.ViewModels
{
var config = ConfigManager.Instance.Current;
- // 获取单位转换系数
- double metersToModelUnits = UnitsConverter.GetMetersToUnitsConversionFactor();
+ // 从 PathEditing 配置加载所有参数(使用米单位接口)
+ _gridSize = config.PathEditing.CellSizeMeters;
+ _vehicleLength = config.PathEditing.VehicleLengthMeters;
+ _vehicleWidth = config.PathEditing.VehicleWidthMeters;
+ _vehicleHeight = config.PathEditing.VehicleHeightMeters;
+ _safetyMargin = config.PathEditing.SafetyMarginMeters;
- // 从 PathEditing 配置加载所有参数(转换为模型单位)
- _gridSize = config.PathEditing.CellSizeMeters * metersToModelUnits;
- _vehicleLength = config.PathEditing.VehicleLengthMeters * metersToModelUnits;
- _vehicleWidth = config.PathEditing.VehicleWidthMeters * metersToModelUnits;
- _vehicleHeight = config.PathEditing.VehicleHeightMeters * metersToModelUnits;
- _safetyMargin = config.PathEditing.SafetyMarginMeters * metersToModelUnits;
-
- LogManager.Info($"从配置加载参数 - 车辆: {_vehicleLength:F1}x{_vehicleWidth:F1}x{_vehicleHeight:F1}模型单位, 安全间隙: {_safetyMargin:F2}模型单位, 网格: {_gridSize:F1}模型单位");
+ LogManager.Info($"从配置加载参数 - 车辆: {_vehicleLength:F1}x{_vehicleWidth:F1}x{_vehicleHeight:F1}米, 安全间隙: {_safetyMargin:F2}米, 网格: {_gridSize:F1}米");
}
catch (Exception ex)
{
diff --git a/src/UI/WPF/Views/AnimationControlView.xaml b/src/UI/WPF/Views/AnimationControlView.xaml
index af107b1..ac35e68 100644
--- a/src/UI/WPF/Views/AnimationControlView.xaml
+++ b/src/UI/WPF/Views/AnimationControlView.xaml
@@ -91,9 +91,9 @@ NavisworksTransport 检测动画页签视图 - 采用与类别设置和分层管