| | |
| | | using Autodesk.Revit.DB; |
| | | using Autodesk.Revit.DB.Plumbing; |
| | | using Glodon.Revit.Utility; |
| | | using HStation.RevitDev.RevitDataExport.Common; |
| | | using Spire.Xls.Core.Converter.Spreadsheet.Charts; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Reflection; |
| | | using DisplayUnitType = Autodesk.Revit.DB.DisplayUnitType; |
| | | |
| | | namespace HStation.RevitDev.RevitDataExport.Utility |
| | | { |
| | |
| | | if (obj == null) return null; |
| | | try |
| | | { |
| | | //return UnitUtils.ConvertFromInternalUnits(Convert.ToDouble(obj), DisplayUnitType.DUT_MEGAPASCALS); |
| | | return UnitUtils.ConvertFromInternalUnits(Convert.ToDouble(obj), UnitTypeId.Megapascals); |
| | | return UnitUtils.ConvertFromInternalUnits(Convert.ToDouble(obj), DisplayUnitType.DUT_MEGAPASCALS); |
| | | //return UnitUtils.ConvertFromInternalUnits(Convert.ToDouble(obj), UnitTypeId.Megapascals); |
| | | } |
| | | catch (Exception ex) |
| | | { |