Skip to content

Commit

Permalink
Add conversion method to utils
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgDangl committed Jun 16, 2024
1 parent 88d2df2 commit 668610f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/IPA.Bcfier.Navisworks/Utilities/NavisUtils.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api;
using IPA.Bcfier.Models.Bcf;

namespace IPA.Bcfier.Navisworks.Utilities
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 668610f

Please sign in to comment.