Repository navigation
feat(elements): give railings their host's storey, and hosted elements their work plane's Level where their elevation agrees (#369) (RE-60) - #371
Merged
Conversation
…s their work plane's Level where their elevation agrees (#369) (RE-60) A record naming no Level keeps its reference list. A railing takes the Level of the one stair or ramp it names (Revit's storey on 73 of 74 Snowdon railings). Any other element takes the Level carried by the objects it names (01 00 00 00 + u64 id + u64 Level id) only where that is also the highest Level at or below its base (161 of 161). Snowdon's elements on no storey fall from 294 to 102, and 5,805 are in Revit's storey (5,612 before). Core Interior's IFC is unchanged.
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_84cfcda0-a6cc-4e57-8aa5-f58edb8c8ef6) |
This was referenced Sep 24, 2026
Closed
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
Most elements whose partition element record names no Level now get a storey (RE-60). There are two readings:
01 00 00 00 · u64 id · u64 Level id: work planes and views, 6,435 of them on Snowdon. An element takes the Level those objects carry only where that is also the highest Level at or below its base. That is Revit's storey on 161 of 161 Snowdon elements: light fixtures, slab edges, generic models and wall sweeps. Either reading alone fails on dozens of light fixtures (38 and 8).Per element, against Revit's own containment (
tools/re/storeys_vs_ifc.py):Changes
REFERENCES_FIELD,level_at_or_below,HOST_SOURCE,LEVEL_OBJECT_SOURCE, and the module doc.scan_level_objects.resolve_hosted_levelsruns after RE-59's base constraints.Testing
End to end, against real files. No tests were added.
rvt-ifcon Snowdon, Core Interior, RE1 and the MIT house, thentools/re/storeys_vs_ifc.pybefore and after. The report's §3 has the inputs' sha256 and the output.--profile ci;cargo +1.85.0 check.What this does not do
Snowdon still has 102 elements on no storey (#369):
Audit-honesty checklist
Legal and contribution hygiene
Related issues
Refs #369, #219, #33.
Note
Medium Risk
Changes IFC spatial containment for hundreds of elements, but rules are fail-closed and scoped to records with no Level; one new Snowdon disagreement is documented.
Overview
Extends storey containment for partition element records that still name no Level after RE-59, so more Snowdon elements land in Revit's
IfcBuildingStoreyinstead of staying unplaced on the building.Railings now inherit the Level of the single stair or ramp named in their reference list (
partition_element_record_host). Other hosted types (light fixtures, generic models, slab edges, wall sweeps) bind only when two readings agree: the Level carried by referenced work-plane/view objects (scan_level_objectsover01 00 00 00 · id · Level id) and the highest Level at or below the element base (level_at_or_below). Records without a Level keepm_referenceIds;resolve_hosted_levelsruns after base-constraint resolution and setsm_levelIdplusm_levelBindSource.Measured on Snowdon: 5,612 → 5,805 elements in Revit's storey and 294 → 102 with no storey; Core Interior IFC is unchanged apart from timestamp. Adds probe
probe_re60_hosted_levels, reportRE-60-hosted-levels.md, and doc/support-matrix updates.Reviewed by Cursor Bugbot for commit a7d6483. Configure here.