diff --git a/src/IPA.Bcfier.Navisworks/Utilities/NavisUtils.cs b/src/IPA.Bcfier.Navisworks/Utilities/NavisUtils.cs index 79a0e69..6fdbe6a 100644 --- a/src/IPA.Bcfier.Navisworks/Utilities/NavisUtils.cs +++ b/src/IPA.Bcfier.Navisworks/Utilities/NavisUtils.cs @@ -1,4 +1,4 @@ -using Autodesk.Navisworks.Api; +using Autodesk.Navisworks.Api; using IPA.Bcfier.Models.Bcf; namespace IPA.Bcfier.Navisworks.Utilities @@ -31,6 +31,11 @@ public static double FromInternal(this double intUnits) return intUnits / _Units; } + public static double FromInternal(this decimal intUnits) + { + return Convert.ToDouble(intUnits) / _Units; + } + public static void GetGunits(Document doc) { string units = doc.Units.ToString();