Repository navigation
feat(elements): put plumbing fixtures on the Level their work planes carry, as Revit does (#369) (RE-68) - #396
Merged
Merged
Conversation
…carry, as Revit does (#369) (RE-68)
DrunkOnJava
enabled auto-merge (squash)
September 24, 2026 13:59
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_579b6d96-28cf-4e8d-b96e-9e71b571e11b) |
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
The last 4 elements #369 left on no storey are Snowdon Towers' plumbing fixtures: three floor sinks and a faucet whose records name no Level. Revit's export puts all four on the Level their Level objects carry (the
01 00 00 00 · u64 id · u64 Level idobjects of RE-60). RE-60 only took that Level where it agreed with the base elevation, and here it doesn't: the sinks sit 0.57 ft below it and the faucet 3.2 ft above. RE-68 left them unplaced because nothing in the objects separates them from the light fixtures'.The fixture's category does. Of the records in these categories that name no Level and whose objects carry exactly one Level:
So a plumbing fixture now takes that Level on its own, bound with
LevelBindSourcepartition_element_record_plumbing_level_object. Every other class still needs it to agree with its base.storeys_vs_ifc.py --any-copyThe one left on no storey is slab edge 2060948, in the elevation band's closed part (RE-68 §2), which the issue already accepts.
The evidence is one file's 4 fixtures, with no counterexample. The plumbing records in Core Interior and the MIT house that name no Level also name no Level object, so the rule does not reach them.
Changes
resolve_hosted_levelsbinds a plumbing fixture to its objects' Level.PLUMBING_LEVEL_OBJECT_SOURCEand module docs.Testing
End to end. No tests were added.
rvt-ifcon Snowdon, thenstoreys_vs_ifc.py --any-copy -vagainst Revit's IFC4 export, for main and this branch.--profile ci,cargo +1.85.0 checkand the fuzz workspace check.Audit-honesty checklist
probe_re68_remaining_levels), tool (storeys_vs_ifc.py), report addendum.Legal and contribution hygiene
Related issues
Closes #369.
Note
Medium Risk
Changes IFC storey containment for a specific element class, but the rule is category-scoped, fail-closed on ambiguous Level objects, and measured against Revit's export on a small sample.
Overview
Plumbing fixtures whose partition record names no Level now land on the storey of the Level their referenced objects carry, matching Revit's IFC export even when base elevation disagrees (e.g. Snowdon sinks below / faucet above that Level).
In
resolve_hosted_levels,PlumbingFixtureis handled before the RE-60 base-elevation check: one carried Level binds withpartition_element_record_plumbing_level_object. Light fixtures, slab edges, and wall sweeps still require that Level to matchlevel_at_or_belowtheir base.On Snowdon Towers this places 4 remaining fixtures on Revit's storey (5,945 → 5,949 matched); other local exports stay byte-identical apart from timestamps. Docs (CHANGELOG, README, support matrix, RE-68 report §6) reflect the updated counts.
Reviewed by Cursor Bugbot for commit 288f855. Configure here.