Repository navigation
research(elements): what separates the water closet tank Revit's export lacks from the fixtures it holds (#1496) (RE-363) - #1513
Merged
Conversation
…rt lacks from the fixtures it holds (#1496) (RE-363)
DrunkOnJava
force-pushed
the
research/1496-water-closet-tank
branch
from
November 8, 2026 20:12
ec2da9b to
af85afa
Compare
DrunkOnJava
marked this pull request as ready for review
November 9, 2026 01:16
DrunkOnJava
enabled auto-merge (squash)
November 9, 2026 02:05
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
… left out, as Revit's export leaves it out (#1496) (RE-363) (#1538) Closes #1496. Follows #1513 (RE-363), which has landed. ## Summary A plumbing fixture whose type's saved graphics at Fine detail decode cleanly to no surface, with a branch left out as not visible, is left out and counted as `element_record_family_type_draws_nothing`. Revit's exporter writes such an instance only when it has a body. RE-363 section 2 scores this category on every model with an export, with no false negative. Other categories are written whatever their type draws: a first version applied the rule to every family instance and left out 91 Generic Models on Snowdon Towers Structural, a file with no Revit export, where nothing supported it (RE-363 section 7). If the check can't run, every fixture is written and `warnings` says so. ## Testing Unit tests are banned here. Measure run 42534365349 on `ce5a3c4a` against #1513's head `ad607125`, every model: 117 of 118 exports are byte for byte, and only RE1 Plumbing moves. There the extra `IfcSanitaryTerminal` goes (elements 124 to 123), connections not in Revit's export go from 2 to 0, values Revit does not write from 2 to 0, and different stays 0 with equal at 313. `same-project gates` passes. `tests/element_records_2025.rs` now expects RE1 Plumbing's fixtures to equal Revit's.
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
RE-363 reads, from the bytes, what separates RE1 Plumbing's water closet tank 442378 (written by rvt-rs, absent from Revit's export) from the plumbing fixtures Revit does export, and scores each candidate rule by how many of Revit's own fixtures it would drop.
Motivation
#1496. The candidates are the four in the issue (nested shared-component status, a container or host reference, a FamilyInstance super-component field, the family's category) and one read from revit-ifc's FamilyInstanceExporter (a non-door, non-window instance with no 3D solid or mesh gets no entity; RE-312 landed that principle for IfcSpace instances).
Changes
re363count lines may leave a held-out model.Testing
No unit tests. Measured by Measure runs 42518898114 and 42521763730 on 52 models with a Revit export (held-out models counts only),
tools/re/empty_bodies_vs_ifc.pyandtools/re/tank_rules_vs_ifc.py: the rule keyed on no surface, no diagnostic and a hidden branch drops 5,551 of 31,958 family instances and has no false negative, and read once per type drops 5,556, also none. No export changes; this reports the finding, and the rule that writes it is a separate change.Related issues
Refs #1496