Skip to content

feat(elements): put plumbing fixtures on the Level their work planes carry, as Revit does (#369) (RE-68) - #396

Merged
DrunkOnJava merged 2 commits into
mainfrom
feat/plumbing-storeys
Sep 24, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
feat/plumbing-storeys

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

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 id objects 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:

class the objects' Level is Revit's storey it is not
plumbing fixtures 4 0
generic models 21 0
light fixtures 108 38
slab edges 30 29
wall sweeps 3 6

So a plumbing fixture now takes that Level on its own, bound with LevelBindSource partition_element_record_plumbing_level_object. Every other class still needs it to agree with its base.

Snowdon Towers, storeys_vs_ifc.py --any-copy main this PR
on Revit's storey 5,945 5,949
on no storey 5 1
on a different storey 1 1

The 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

  • src/partition_schema_mvp.rs: resolve_hosted_levels binds a plumbing fixture to its objects' Level.
  • src/element_record_level_refs.rs: PLUMBING_LEVEL_OBJECT_SOURCE and module docs.
  • reports/element-framing/RE-68-remaining-storeys.md §6.
  • README storey row, which still carried the figures from before RE-68 (5,805 / 44 / 102). Also the support-matrix row, status and CHANGELOG.

Testing

End to end. No tests were added.

  • rvt-ifc on Snowdon, then storeys_vs_ifc.py --any-copy -v against Revit's IFC4 export, for main and this branch.
  • The other local files export byte-identical IFC apart from the timestamp: Core Interior, the four RE1 models, Einhoven, and the MIT house in its 2024 and 2025 saves. Both Core Interior witness observations regenerate identical.
  • fmt, clippy -D warnings, rustdoc -D warnings, the workspace suite, the corpus tests under --profile ci, cargo +1.85.0 check and the fuzz workspace check.

Audit-honesty checklist

  • Counts measured against Revit's own export. The small sample is stated.
  • RE finding: probe (probe_re68_remaining_levels), tool (storeys_vs_ifc.py), report addendum.
  • No emojis, private paths or personal data.

Legal and contribution hygiene

  • Apache-2.0
  • Clean-room: byte observations, with Revit's own export as the oracle.
  • Snowdon Towers and the MIT house stay local.

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, PlumbingFixture is handled before the RE-60 base-elevation check: one carried Level binds with partition_element_record_plumbing_level_object. Light fixtures, slab edges, and wall sweeps still require that Level to match level_at_or_below their 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.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 24, 2026 13:59
@cursor

cursor Bot commented Sep 24, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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)

@DrunkOnJava
DrunkOnJava merged commit 3cab6c5 into main Sep 24, 2026
21 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/plumbing-storeys branch September 24, 2026 14:04
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.

Storeys for elements whose record names no Level: railings by host, light fixtures unknown

1 participant