Skip to content

fix(ifc): leave out a floor's and a covering's Width, which Revit's exporters write differently (#1046) (RE-294) - #1225

Merged
DrunkOnJava merged 5 commits into
mainfrom
feat/1046-narrow-slab-covering-width
Oct 31, 2026
Merged

DrunkOnJava merged 5 commits into
mainfrom
feat/1046-narrow-slab-covering-width

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

rvt-rs no longer writes a floor's Qto_SlabBaseQuantities.Width (RE-295), a ceiling's Qto_CoveringBaseQuantities.Width (RE-250, and the ceilings in pieces of RE-297) or the Width of a wall Revit exports as a covering (RE-297). Revit 2024's exporter writes them; the exporters that wrote two held-out models do not, and the standing rule (the maintainer, 2026-10-31) is that where Revit's exporters disagree on a value, rvt-rs leaves it out. The held-out run shows 0 quantities rvt-rs writes that Revit's export omits, from 2 on the AA house and 3 on teste_export_2025 (RE-294).

Motivation

#1046, W7 (strict: never write a value Revit's export omits). The held-out run of #1222 named the quantities: extra Qto_SlabBaseQuantities.Width: 2 on the AA house (Revit 26.4 export) and extra Qto_CoveringBaseQuantities.Width: 3 on teste_export_2025. The only support for the three rules is the BIM4LCA office, one building exported by Revit 24.0.5; the R2025 models hold no floor Width and no covering. Nothing in a file says which exporter will write it (an older file can be exported by a newer Revit), so there was no narrower rule to write.

Changes

  • src/ifc/export_content.rs: add_slab_gross_area drops the Width it wrote on a floor of more than one layer, add_ceiling_quantities the Width it wrote on a ceiling, and add_wall_covering_width is removed with its call. GrossArea, Depth, GrossVolume and NetVolume are untouched.
  • reports/element-framing/RE-294-slab-covering-width-exporters-disagree.md; RE-250, RE-295 and RE-297 and their addenda say the Width rule is withdrawn.
  • README, W7 on the criteria page (with the standing rule), the supported profile, the reconnaissance addendum, changelog.d/removed/slab-covering-width.md, the unreleased fragments of RE-295 and RE-297 (which no longer claim the Width), and Core Interior's witness observations (one fewer IFCQUANTITYLENGTH, 1,340 to 1,339).

Testing

Unit tests are banned in this repository; none added. Measure 41204218380: this change (d6cf2fa; this head adds the later landings of main and docs) against main (904861a), every model and every scorer, with the held-out models (--ref ci/holdout-extra-quantities -f base=main -f nordic=true -f r2025=true -f holdout=true; the ref only supplies #1222's scrub). The other 1,463 outputs are byte-identical to main's.

rule removed the export that omitted it equal lost, office as built equal lost, at permit
compound floor Width (RE-295) AA house, Revit 26.4: 2 compound floors 14 14
ceiling Width (RE-250) teste_export_2025 (Revit 2025 file): its 3 coverings carry GrossArea and NetArea, no Width 59 55
ceiling in pieces Width (RE-297) the same export 19 20
wall exported as a covering Width (RE-297, 21 AK-1.otsa walls) the same export (no held-out model exports a wall as a covering; withdrawn with the others on the same evidence) 21 0
total 113 89
model quantities equal before equal after different missing before to after Revit omits (rvt-rs writes)
office as built 39,388 28,329 28,216 1 to 1 (the mullion) 11,058 to 11,171 0 to 0
office at building permit 39,679 28,254 28,165 1 to 1 11,424 to 11,513 0 to 0
R2025 models (24) 1,515 787 787 0 to 0 728 to 728 0 to 0
AA house (held out) 846 127 127 0 to 0 719 to 719 2 to 0
modelo_bim (held out) 220 7 7 0 to 0 213 to 213 0 to 0
teste_export_2025 (held out) 44 10 10 0 to 0 34 to 34 3 to 0

No held-out equal count falls. Qto_CoveringBaseQuantities.GrossArea (57 of 90 as built, 45 of 75 at permit) and Qto_SlabBaseQuantities.NetVolume (31 of 63) are as on main. Core Interior's and RE1 Architecture's counted-apart values fall by 1 and by 8 (6 covering and 2 slab Width values). The scrubbed held-out counts name the quantity, not the element, so which of the three covering rules wrote teste_export_2025's 3 is not recorded.

  • Verified end to end on real Revit files (BIM4LCA office, CC BY-SA 4.0; puzzbobb's R2025 models, Apache-2.0; the held-out models as scrubbed counts): the Measure above reproduces it
  • Witness observations refreshed in this PR (one IFCQUANTITYLENGTH fewer; the slim file the same)
  • No local build: rustfmt only; CI is the gate

Notes for landing

  • The census sentence on the criteria page and the README row hold main's stated figures adjusted by this change's delta (113 fewer equal as built); main's own figure predates RE-296 and the W7 PRs still in the queue, so one census refresh with a fresh unfiltered run is owed once they land.
  • A release gate (write Width only on files of release 2024 or earlier) would restore the 113 and 89 without the held-out extras, but the exporter is not the file's release (an older file exported by a newer Revit), so under the standing rule it is not taken; RE-294 §2 says so for the maintainer to reverse.
  • The RE-298 branch (slab Depth and GrossVolume) edits add_slab_gross_area too: whichever lands second takes a small merge in that function.

Audit-honesty checklist

  • README, W7, the supported profile and the reconnaissance addendum say what is and is not written
  • Changelog fragment under changelog.d/removed/, and the unreleased RE-295 and RE-297 fragments corrected
  • Limitations are in RE-294 §2 and this body
  • Reverse-engineering finding: report and addendum included

Legal and contribution hygiene

  • Apache-2.0; clean-room: only Revit's own exports are compared, nothing is copied

Breaking changes

rvt-ifc no longer writes Qto_SlabBaseQuantities.Width on a compound floor or Qto_CoveringBaseQuantities.Width on a ceiling or a wall exported as a covering (values 0.11.0 wrote for ceilings): output only, no API change.

Related issues

Refs #1046, #1016, #1222 (names the extras).

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Review (maintainer's Claude Code session). Verdict: ready to merge. This applies the maintainer's standing rule (2026-10-31): a value Revit's exporters disagree on is not written. Measure 41204218380, unfiltered with the held-out models, brings the held-out extras to 0: the AA house goes from 2 to 0 (the slab Width on 2 compound floors, which Revit 26.4's export omits) and teste_export_2025 from 3 to 0 (the covering Width; its Revit 2025 export writes GrossArea and NetArea and no Width on its 3 coverings). No held-out equal value is lost. The office loses 113 equal values as built and 89 at permit, which become missing, not different: 14 floor, 59 ceiling, 19 ceilings in pieces and 21 covering walls as built (14, 55, 20 and 0 at permit). The one different value (a mullion's) is unchanged, and so is "rvt-rs quantities Revit does not write", 0. RE-294 names the export and the equal counts behind each rule.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 31, 2026 13:38
# Conflicts:
#	README.md
#	docs/release-1.0-criteria.md
#	docs/supported-profile.md
# Conflicts:
#	README.md
#	docs/release-1.0-criteria.md
#	research/witness/magnetar-2024-core-interior-slim/observations/rvt-rs.json
#	research/witness/magnetar-2024-core-interior/observations/rvt-rs.json
@DrunkOnJava
DrunkOnJava merged commit 836f274 into main Oct 31, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/1046-narrow-slab-covering-width branch October 31, 2026 14:00
DrunkOnJava added a commit that referenced this pull request Oct 31, 2026
… the open list drops the two W7 issues that closed (#1230)

The W7 figures in `docs/release-1.0-criteria.md` and the README,
refreshed from Measure runs on `main` at `f9f71e68`, after the W7
changes that landed today (#1204, #1206, #1215, #1223, #1225, #1226).

- **Quantities**
([41213779326](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41213779326),
unfiltered): office as built, 29,262 of 39,388 equal (was 29,223), 1
different, 10,125 missing (was 10,164), none written that Revit's export
leaves out. The +39 are #1215's flat-roof slab quantities.
- **Properties**
([41215480967](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41215480967),
with `--revit-set-placement`, as W7 is measured): as built 289 of 45,525
missing (was 455) and 1 different; at permit 292 of 45,704 (was 452).
Without the option, 1,361 and 1,364 (was 1,421 and 1,418). The earlier
figures stay, as the previous run.
- **Values rvt-rs writes that Revit's export does not**: 10 as built and
14 at permit, the same in every run back to `5d863fba`. The page now
says what they are.
- All but one are on elements Revit's export leaves out: openings, and
at permit a column (RE-239, #792).
- The one, a sanitary terminal's
`Pset_SanitaryTerminalTypeCommon.Reference`, follows from fixture
3095244's class. Revit's export writes it as `IfcFlowTerminal`, rvt-rs
as `IfcSanitaryTerminal` (#792, found from `class_sets_vs_ifc` in the
same run).
- **README, from the same two runs:**
- The IsExternal row is now 2,198 of 2,334 as built and 2,206 of 2,319
at permit, none different. Of the 136 and 113 values missing, all but
one are on type objects; the other is on the building.
- The set-placement row gains 1,072 values, not 966. That adds the 122
stair-flight values from RE-287.
- **The open list** dropped #1186 and #1187, which closed when RE-287
and RE-288 landed.
- `docs/archive/TODO.md`'s two links to `docs/status.md` and
`docs/support-matrix.json` were relative to the wrong folder.

No changelog fragment (no user-visible change).
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