Repository navigation
research(re): storeys_vs_ifc counts elements in another storey than Revit's by class, LevelBindSource and storeys apart (#1842) - #2301
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tools/re/storeys_vs_ifc.pynow breaks down the elements it finds in a different storey from Revit's export: by class, by theLevelBindSourcervt-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 byElevation, and an rvt-rs storey whose name Revit's file lacks is counted asnot 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
IfcBuildingElementProxyare 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
c0c6bdd4, codemainat0efde8ee). On each, the new rows sum to the "a different storey from Revit's" count:IfcRamp | partition_element_record_reference_list | -2;IfcRailing | partition_element_record_host | +1(2), and a ramp and a ramp flight at +1.mcp_answers_vs_ifc,native_levels_vs_ifcandstorey_rules_vs_ifcimport 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