You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nordic LCA housing as-built (Revit 2024): all Level records decode with elevation_feet = null, so storeys are at 0 ft and columns read 178 ft tall from z = 0 #746
On ARK_NordicLCA_Housing_Timber_As-Built.rvt (public Nordic LCA set, Gravicon 2024; Revit 2024 build 20230411_1515(x64), 95 MB, 87 streams) rvt 0.4.0 decodes the building well (427 Wall, 67 Door, 71 Window, 59 Floor, 10 Roof, 84 Room, 54 Column, 1,970 typed elements), but every Level comes back without an elevation:
so the IFC export writes four IfcBuildingStorey at 0.000000, while Revit's own IFC4 export of the same file has eight storeys at 0, 47.3, 49.07, 52.0, 55.144, 58.458, 61.772 and 64.677 m (Sea level, Foundations, Basement, Level_01 … Level_04, Roof). The walls, floors and rooms are placed at their real heights (about 52 m up), so only the levels are affected.
A knock-on effect on the 54 columns: their records have m_locationZ = 0.0, m_level_bound = False, m_constraintLevelIds = None and m_bboxHeight of 177.7–178.9 ft, and the export gives each an IFCEXTRUDEDAREASOLID 2.535 ft deep placed at z = 0 — i.e. a column from the ground to the top level, since the base level could not be resolved (#213's column-derived elevation join has nothing to bind to when the levels carry no heights). Revit's export has the same 54 columns one storey tall each.
On the sibling building-permit files of the same set (e.g. ARK_NordicLCA_Office_Concrete_BuildingPermit.rvt) the storeys come out right (10 storeys, the same names and elevations as Revit's export), so this looks specific to how this file stores its levels (as-built stage; the level names here are Ground floor / Level 1 / ROOF / Roof, not the Level_0x names Revit's export reports, so the recovered names may be from a different record than the levels the elements use).
Data
Published open test data (Gravicon Nordic LCA, 2024); happy to send the file or dumps, not attached here.
Found while using rvt 0.4 as the direct .rvt importer of Storey (Rust CAD/BIM); for now Storey keeps one storey of column under each column's top when a column reads taller than 25 m, and reports it.
I measured the element-to-level link on ARK_NordicLCA_Housing_Timber_As-Built.rvt (public BIM4LCA set, CC BY-SA 4.0). Each element's association record (prefix d3 02 01 00 00 00, then u32 ElementId, u32 0, u32 level ElementId; RE-172, PR #751) names its Level by ElementId. Against Revit's own IFC export:
Columns: all 54 columns name a Level, and on 54/54 it is the storey Revit's export puts the column on. Revit's IFC here has no Revit parameter psets, so storey containment is the only oracle.
Whole file: 1,464 elements name a Level, and 1,448 match Revit's storey (shuffled-label control 457). The building-permit sibling gives 1,382/1,397.
So the columns' base Level is available as an id even in this file. What is missing is the Level records themselves: the four names rvt-rs recovers (Ground floor, Level 1, ROOF, Roof, all with null elevation) are not among the seven level names Revit's export uses for these ids. I have not checked which records rvt-rs reads them from. On the Autodesk 2024 samples each Level is stored as 3 to 6 record copies from different save states (an unpublished note of ours), and this file has 426 saves according to its IFC header, so a stale copy is one possible explanation. I have not checked that here.
The level-parameters PR #751 (RE-172) emits Level, Base Level and Base Constraint from this record. It only names a Level that rvt-rs has recovered, so on this file it would write nothing until the Level records are read correctly.
Found the cause on main, and it is not a stale copy as I guessed above. The Level records and their name/elevation blocks are all read correctly. The housing timber files also have a reference level, Bet 1-lattia, at Level_01's elevation (170.6037 ft), and recovered_levels_are_a_storey_set drops every Level when two share an elevation. PR #752 holds only building storeys to distinct elevations.
With it, both Housing_Timber_BuildingPermit and Housing_Timber_As-Built give Revit's eight storeys at Revit's elevations (0, 47.3, 49.07, 52.0, 55.144, 58.458, 61.772, 64.677 m), and all 54 columns land on Revit's storey. Their geometry still starts at z = 0, so the column height part of this issue remains open.
The four names in your report (Ground floor, Level 1, ROOF, Roof, null elevation) came from 0.4.0. Main returns no Levels on these files rather than those four.
Thank you for the detailed report, and to @helenkwok for tracing both halves. Both are fixed on main:
Storeys (fix(levels): a non-storey Level may share a storey's elevation (#746) #752). The Level records and their names and elevations were read correctly. The housing timber files also hold a reference level, Bet 1-lattia, at Level_01's 170.6037 ft, and the storey check dropped every Level when two shared an elevation. Only building storeys are now held to distinct elevations. On Housing_Timber_BuildingPermit and _As-Built that gives Revit's eight storeys at Revit's elevations (0, 47.3, 49.07, 52.0, 55.144, 58.458, 61.772, 64.677 m), with Revit's names.
Columns (fix(ifc): a column starting at z = 0 takes its bottom from its geometry node (RE-173) #753, RE-173). These columns' records hold a box that starts at exactly z = 0. Each column's geometry node holds its true z-range, so a column whose record box starts at 0 now takes its bottom from that node, where every copy of the node agrees. All 54 columns of the As-Built file then match Revit's export.
The four names you saw (Ground floor, Level 1, ROOF, Roof, null elevations) came from 0.4.0.
helenkwok measured all of this against Revit's own IFC4 export of the files. The BIM4LCA files aren't in CI's corpus yet; the new tests run when RVT_NORDIC_LCA_DIR points at them (corpus/tier2/README.md lists the files and their sha256), so you can run them on your copies.
The fixes are on main, not yet in a release. 0.4.0 doesn't have them; the next release will, and until then a source build has them (docs/install.md). Closing as fixed on main. If your files still show either problem on a build from main, please reopen with the file name.
This shipped in v0.5.0 with helenkwok's #752 and #753: a non-storey Level may share a storey's elevation, so these houses get Revit's eight storeys, and columns take their bottom from their geometry node. v0.5.1 is the latest release.
Activity
helenkwok commentedon Oct 13, 2026
I measured the element-to-level link on
ARK_NordicLCA_Housing_Timber_As-Built.rvt(public BIM4LCA set, CC BY-SA 4.0). Each element's association record (prefixd3 02 01 00 00 00, thenu32 ElementId,u32 0,u32 level ElementId; RE-172, PR #751) names its Level by ElementId. Against Revit's own IFC export:Level_01= 311,Level_02= 694,Level_03= 417999,Level_04= 1060226,Basement= 1060422,Roof= 418156,Foundations= 342018.So the columns' base Level is available as an id even in this file. What is missing is the Level records themselves: the four names rvt-rs recovers (
Ground floor,Level 1,ROOF,Roof, all with null elevation) are not among the seven level names Revit's export uses for these ids. I have not checked which records rvt-rs reads them from. On the Autodesk 2024 samples each Level is stored as 3 to 6 record copies from different save states (an unpublished note of ours), and this file has 426 saves according to its IFC header, so a stale copy is one possible explanation. I have not checked that here.The level-parameters PR #751 (RE-172) emits
Level,Base LevelandBase Constraintfrom this record. It only names a Level that rvt-rs has recovered, so on this file it would write nothing until the Level records are read correctly.helenkwok commentedon Oct 13, 2026
Found the cause on main, and it is not a stale copy as I guessed above. The Level records and their name/elevation blocks are all read correctly. The housing timber files also have a reference level,
Bet 1-lattia, atLevel_01's elevation (170.6037 ft), andrecovered_levels_are_a_storey_setdrops every Level when two share an elevation. PR #752 holds only building storeys to distinct elevations.With it, both
Housing_Timber_BuildingPermitandHousing_Timber_As-Builtgive Revit's eight storeys at Revit's elevations (0, 47.3, 49.07, 52.0, 55.144, 58.458, 61.772, 64.677 m), and all 54 columns land on Revit's storey. Their geometry still starts at z = 0, so the column height part of this issue remains open.The four names in your report (
Ground floor,Level 1,ROOF,Roof, null elevation) came from 0.4.0. Main returns no Levels on these files rather than those four.fix(levels): a non-storey Level may share a storey's elevation (#752)
fix(ifc): a column starting at z = 0 takes its bottom from its geomet…
DrunkOnJava commentedon Oct 18, 2026
Thank you for the detailed report, and to @helenkwok for tracing both halves. Both are fixed on
main:Bet 1-lattia, atLevel_01's 170.6037 ft, and the storey check dropped every Level when two shared an elevation. Only building storeys are now held to distinct elevations. OnHousing_Timber_BuildingPermitand_As-Builtthat gives Revit's eight storeys at Revit's elevations (0, 47.3, 49.07, 52.0, 55.144, 58.458, 61.772, 64.677 m), with Revit's names.The four names you saw (
Ground floor,Level 1,ROOF,Roof, null elevations) came from 0.4.0.helenkwok measured all of this against Revit's own IFC4 export of the files. The BIM4LCA files aren't in CI's corpus yet; the new tests run when
RVT_NORDIC_LCA_DIRpoints at them (corpus/tier2/README.mdlists the files and their sha256), so you can run them on your copies.The fixes are on
main, not yet in a release. 0.4.0 doesn't have them; the next release will, and until then a source build has them (docs/install.md). Closing as fixed onmain. If your files still show either problem on a build frommain, please reopen with the file name.DrunkOnJava commentedon Oct 18, 2026
This shipped in v0.5.0 with helenkwok's #752 and #753: a non-storey Level may share a storey's elevation, so these houses get Revit's eight storeys, and columns take their bottom from their geometry node. v0.5.1 is the latest release.
fix(ifc): an element on a Level that is not a building story goes to …