Skip to content

research(re): storeys_vs_ifc counts elements in another storey than Revit's by class, LevelBindSource and storeys apart (#1842) - #2301

Merged
DrunkOnJava merged 2 commits into
mainfrom
research/1842-storey-sources
Dec 6, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
research/1842-storey-sources

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Dec 6, 2026 •

Copy link
Copy Markdown
Owner

Summary

tools/re/storeys_vs_ifc.py now breaks down the elements it finds in a different storey from Revit's export: by class, by the LevelBindSource rvt-rs wrote on each, and by how many storeys above or below Revit's they are. Both storeys are ranked in Revit's own list by Elevation, and an rvt-rs storey whose name Revit's file lacks is counted as not in Revit's. Counts only: no names or Tags, so it can be run on a file that can't be shared.

Motivation

#1842: on a reporter's Revit 2027 model, 21 IfcBuildingElementProxy are in another storey than Revit's (20 one storey lower, 1 six lower, from their tables on #1842), and none of the reference, BIM4LCA or Revit 2025 models with a Revit export in Measure has a proxy in a different storey (the held-out models weren't read for it). The new lines say which of rvt-rs's level rules placed each one, which is what the next fix needs.

Changes

  • tools/re/storeys_vs_ifc.py: storey_ranks, bind_source, and the breakdown printed after "different, by type". The existing lines are unchanged.

Testing

  • Measure on three models (run 47643080983, scorer from this branch at c0c6bdd4, code main at 0efde8ee). On each, the new rows sum to the "a different storey from Revit's" count:
    • BIM4LCA office as built: 4, all IfcRamp | partition_element_record_reference_list | -2;
    • office terrain (concrete): 11, ramps and ramp flights at -1 (9) and -2 (2);
    • housing concrete as built: 4, IfcRailing | partition_element_record_host | +1 (2), and a ramp and a ramp flight at +1.
  • No export or other scorer output changes. mcp_answers_vs_ifc, native_levels_vs_ifc and storey_rules_vs_ifc import only the module's functions, which are unchanged, and the held-out scrub (tools/ci/scrub-holdout-results.sh) keeps only the existing lines, so the new rows aren't uploaded for held-out models. No unit tests.

Breaking changes

None.

Refs #1842

@DrunkOnJava
DrunkOnJava merged commit da9bbee into main Dec 6, 2026
48 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1842-storey-sources branch December 6, 2026 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant