From e8c3efa09cd30291ba98865040bc00d0a44e3327 Mon Sep 17 00:00:00 2001
From: "VKMTHD\\franzjosefkober" <franz.josef.kober@ivt.tugraz.at>
Date: Wed, 7 Apr 2021 11:07:53 +0200
Subject: [PATCH] Changed conversion method for millimetres to metres

---
 .../DataProvider/XMLDeclarationVehicleDataProvider.cs  | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLDeclarationVehicleDataProvider.cs b/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLDeclarationVehicleDataProvider.cs
index da8ada2f47..fb15aa2b26 100644
--- a/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLDeclarationVehicleDataProvider.cs
+++ b/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLDeclarationVehicleDataProvider.cs
@@ -1254,7 +1254,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider
 			get
 			{
 				return ElementExists(XMLNames.Bus_HeighIntegratedBody)
-					? GetDouble(XMLNames.Bus_HeighIntegratedBody).SI<Meter>() * 0.001 
+					? GetDouble(XMLNames.Bus_HeighIntegratedBody).SI(Unit.SI.Milli.Meter).Cast<Meter>()
 					: null;
 			}
 		}
@@ -1264,7 +1264,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider
 			get
 			{
 				return ElementExists(XMLNames.Bus_VehicleLength)
-					? GetDouble(XMLNames.Bus_VehicleLength).SI<Meter>() * 0.001
+					? GetDouble(XMLNames.Bus_VehicleLength).SI(Unit.SI.Milli.Meter).Cast<Meter>()
 					: null;
 			}
 		}
@@ -1274,7 +1274,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider
 			get
 			{
 				return ElementExists(XMLNames.Bus_VehicleWidth)
-					? GetDouble(XMLNames.Bus_VehicleWidth).SI<Meter>() * 0.001
+					? GetDouble(XMLNames.Bus_VehicleWidth).SI(Unit.SI.Milli.Meter).Cast<Meter>()
 					: null;
 			}
 		}
@@ -1284,7 +1284,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider
 			get
 			{
 				return ElementExists(XMLNames.Bus_EntranceHeight)
-					? GetDouble(XMLNames.Bus_EntranceHeight).SI<Meter>() * 0.001
+					? GetDouble(XMLNames.Bus_EntranceHeight).SI(Unit.SI.Milli.Meter).Cast<Meter>()
 					: null;
 			}
 		}
@@ -1489,7 +1489,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider
 			get
 			{
 				return ElementExists(XMLNames.Bus_HeighIntegratedBody)
-					? GetDouble(XMLNames.Bus_HeighIntegratedBody).SI<Meter>() * 0.001
+					? GetDouble(XMLNames.Bus_HeighIntegratedBody).SI(Unit.SI.Milli.Meter).Cast<Meter>()
 					: null;
 			}
 		}
-- 
GitLab