We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 744b185 commit bce9499Copy full SHA for bce9499
Connectors/Revit/Speckle.Connectors.RevitShared/HostApp/LevelUnpacker.cs
@@ -52,7 +52,9 @@ public List<LevelProxy> Unpack(List<Element> elements)
52
displayValue = [],
53
properties = _propertiesExtractor.GetProperties(level)
54
};
55
- levelDataObject["elevation"] = level.Elevation;
+ var unitSettings = _converterSettings.Current.Document.GetUnits();
56
+ var lengthUnitType = unitSettings.GetFormatOptions(Autodesk.Revit.DB.SpecTypeId.Length).GetUnitTypeId();
57
+ levelDataObject["elevation"] = UnitUtils.ConvertFromInternalUnits(level.Elevation, lengthUnitType);
58
levelDataObject["units"] = _converterSettings.Current.SpeckleUnits;
59
60
levelProxies[element.LevelId.ToString()] = new LevelProxy()
0 commit comments