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
Storeys for elements whose record names no Level: railings by host, light fixtures unknown #369
After RE-59 (#368), 294 of Snowdon Towers' exported elements are still on no storey. Their element records name no Level:
type
count
IfcLightFixture
148
IfcBuildingElementProxy
77
IfcRailing
64
IfcSanitaryTerminal
4
IfcStair
1
Revit's own export puts every one of them on a storey.
Measured so far (a scratch probe that lists, for each record naming no Level, the categories of the ids its reference list names):
Railings name their host. 74 railing records name exactly one Stair or Ramp. Revit contains the railing in that host's storey on 73 of them. The other is in Parking against Revit's L1 - Block 37. The hosts themselves are bound through RE-59.
Light fixtures name nothing recognisable. 128 of them reference 5 ids that are in none of the element-record categories rvt-rs reads, so their host carrier (ceiling face, work plane or similar) is not yet identified.
Generic models, slab edges and wall sweeps name Floors, Walls or nothing recognisable, in several patterns.
Next step: bind a railing to its host's storey as a measured rule, stating the one disagreement or finding what separates it. Then identify what the light fixtures' references are.
RE-60 (#371, merged) places most of these elements.
Railings take the storey of the stair or ramp their record names: Revit's storey on 73 of 74. The miss is 1646280, now on Parking against Revit's L1 - Block 37.
Other elements take the Level carried by the objects their record names (01 00 00 00 · u64 id · u64 Level id, 6,435 on Snowdon), but only where that is also the highest Level at or below their base: Revit's storey on 161 of 161. These are light fixtures, slab edges, generic models and wall sweeps. Either reading alone was wrong on 38 and 8 light fixtures.
On Snowdon, the elements on no storey fall from 294 to 102, and 5,805 are in Revit's storey. What remains:
46 proxies;
40 light fixtures whose two readings disagree or where one is missing;
RE-68 (#383, merged) places the rest. Measured on main (51431e2) with tools/re/storeys_vs_ifc.py --any-copy against Revit's own IFC4 export of Snowdon Towers:
after RE-60
after RE-68
same storey as Revit's
5,944
on no storey
102
5
on a different storey
2
2
The rules, in the order they apply:
Stairs and ramps whose base sits exactly on a Level (±0.001 ft) take that Level.
Parts of a same-class host take the host's storey. This covers the 16 light fixtures nested in one chandelier.
Slab edges, light fixtures, wall sweeps, generic models, hardscape and stairs take the Level their base elevation gives:
the Level just above the base, when the base is at most 0.25 ft below it;
otherwise the Level at or below the base, when the next Level up is at least 0.5 ft above it.
Anything in between is left off a storey.
None of the 97 newly placed elements is on a storey other than Revit's.
--any-copy matters here: Revit writes a multistory stair, its runs, landings, supports and railings once per storey under one Tag. The default one-copy comparison reports 55 differences, and 53 of them are three multistory stairs whose L3 copy rvt-rs matches and whose L4 copy the scorer happened to pick.
What stays unplaced (fail closed):
4 plumbing fixtures. Revit puts them on the Level object they name. Nothing separates those objects from the light fixtures' ones, which don't name Revit's Level. The elevation band would misplace them: the floor sinks sit 0.57 ft below their Level and the faucet 3.2 ft above.
Slab edge 2060948, in the band's closed part.
Report: reports/element-framing/RE-68-remaining-storeys.md. Leaving this open for the 4 plumbing fixtures.
Activity
feat(elements): give railings their host's storey, and hosted element…
DrunkOnJava commentedon Sep 24, 2026
RE-60 (#371, merged) places most of these elements.
01 00 00 00 · u64 id · u64 Level id, 6,435 on Snowdon), but only where that is also the highest Level at or below their base: Revit's storey on 161 of 161. These are light fixtures, slab edges, generic models and wall sweeps. Either reading alone was wrong on 38 and 8 light fixtures.On Snowdon, the elements on no storey fall from 294 to 102, and 5,805 are in Revit's storey. What remains:
Report:
reports/element-framing/RE-60-hosted-levels.md.feat(elements): place elements whose record names no Level on Revit's…
DrunkOnJava commentedon Sep 24, 2026
RE-68 (#383, merged) places the rest. Measured on main (51431e2) with
tools/re/storeys_vs_ifc.py --any-copyagainst Revit's own IFC4 export of Snowdon Towers:The rules, in the order they apply:
None of the 97 newly placed elements is on a storey other than Revit's.
--any-copymatters here: Revit writes a multistory stair, its runs, landings, supports and railings once per storey under oneTag. The default one-copy comparison reports 55 differences, and 53 of them are three multistory stairs whose L3 copy rvt-rs matches and whose L4 copy the scorer happened to pick.What stays unplaced (fail closed):
Report:
reports/element-framing/RE-68-remaining-storeys.md. Leaving this open for the 4 plumbing fixtures.feat(elements): put plumbing fixtures on the Level their work planes …