Skip to content

research(elements): what separates the water closet tank Revit's export lacks from the fixtures it holds (#1496) (RE-363) - #1513

Merged
DrunkOnJava merged 6 commits into
mainfrom
research/1496-water-closet-tank
Nov 9, 2026
Merged

DrunkOnJava merged 6 commits into
mainfrom
research/1496-water-closet-tank

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 6, 2026 •

Copy link
Copy Markdown
Owner

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

  • probes/examples/probe_re363_plumbing_fixtures.rs: per plumbing fixture, the record, native, family-form and saved-graphics readings.
  • tools/re/tank_rules_vs_ifc.py: per candidate rule, how many fixtures in Revit's export it would drop.
  • tools/ci/scrub-holdout-results.sh: the scorer's re363 count 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.py and tools/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

…rt lacks from the fixtures it holds (#1496) (RE-363)
@DrunkOnJava
DrunkOnJava force-pushed the research/1496-water-closet-tank branch from ec2da9b to af85afa Compare November 8, 2026 20:12
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 9, 2026 02:05
@DrunkOnJava
DrunkOnJava merged commit 20167df into main Nov 9, 2026
62 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1496-water-closet-tank branch 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.
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.

1 participant