Repository navigation
feat(ifc): confirm a roof-joined wall's length by its cut-back centreline (#1046) (RE-290) - #1205
Merged
Merged
Conversation
DrunkOnJava
marked this pull request as ready for review
October 31, 2026 06:55
… counts Core Interior's six walls (#1046)
4 tasks done
Merged
8 tasks done
# 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
# Conflicts: # research/witness/magnetar-2024-core-interior-slim/observations/rvt-rs.json # research/witness/magnetar-2024-core-interior/observations/rvt-rs.json
Owner
Author
|
Automated review (Claude Code review agent, run by the maintainer). Verdict: ready to merge.
|
DrunkOnJava
enabled auto-merge (squash)
October 31, 2026 13:13
DrunkOnJava
added a commit
that referenced
this pull request
Oct 31, 2026
…rs writes that Revit's export does not (#1046) (#1222) ## Summary The held-out models' Measure results (`holdout-*/counts.txt`) report how many quantities rvt-rs writes that Revit's export does not (the strict W7 count), but not which quantity. This keeps one count line per quantity name, `extra Qto_X.Y: N`, and nothing else from that section. ## Motivation [#1046](#1046), W7: the count was 2 on the AA house and 3 on teste_export_2025 with no way to tell which rule wrote them. The scorer lists the objects under each quantity (ElementIds); the scrub keeps only the standard quantity name and the number, so the held-out models' scrub policy (counts only, never an ElementId or a name) is unchanged. ## Changes - `tools/ci/scrub-holdout-results.sh`: one awk step after the quantity census's `different` lines, reading the scorer's "rvt-rs quantities Revit does not write:" section and printing `extra Qto_<Set>.<Property>: <count>` for lines of exactly that shape; the header comment names what is kept. ## Testing N/A for unit tests (banned). Measure run [41182558730](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41182558730) on this change (`-f models="holdout-*" -f scorers=qtos_vs_ifc`) kept, for the three held-out models, only these lines beyond the existing ones: ``` holdout-AA-SingleDwellingHouse-RVT-CIADD: extra Qto_SlabBaseQuantities.Width: 2 holdout-teste_export_2025: extra Qto_CoveringBaseQuantities.Width: 3 holdout-modelo_bim: (none; 0 quantities Revit does not write) ``` - [x] Verified end to end on the real held-out files in Measure; the output above is the scrubbed artifact - [x] No ElementId, name or per-object line is kept (the awk pattern only matches ` Qto_<letters>.<letters>: <digits>`) - [x] Not an exporter change: no witness refresh - [x] No user-visible change, so no changelog fragment ## What the counts show Not caused by this PR, and not by the base-quantity PRs #1204, #1205 or #1206 (their runs add none on any held-out model). On `main` at 1a54a8f (the code of run 41182558730, with this branch's scrub), rvt-rs writes a slab `Width` where Revit's export omits it on 2 slabs of the AA house, and a covering `Width` where Revit omits it on 3 coverings of teste_export_2025. By the quantity names these are the slab `Width` rule (RE-295: a type with more than one layer) and the covering `Width` rules (RE-250, extended by RE-297 to ceilings of several pieces and to walls Revit exports as coverings); the earlier held-out runs on older `main` heads showed 2 and 0, so the 3 on teste_export_2025 arrived with a recent landing. Strict W7 says none is written, so the rule behind each needs narrowing; that is the spaces, coverings and slabs lane, and this PR only makes the quantity visible.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 31, 2026
…es (#1046) (RE-293) (#1223) ## Summary Stacked on #1205 (RE-290): this branch contains its commits, so the diff shows both until #1205 lands. rvt-rs now also writes `Qto_WallBaseQuantities.Height`, the body's, on every wall the second RE-270 rule gives `GrossSideArea`, `NetSideArea`, `GrossVolume` and `NetVolume` (a wall joined to roofs, floors or footings that lie clear of it): 47 more office walls as built and 58 at building permit, Revit's on every one, none different and none Revit's export leaves out (RE-293). ## Motivation #1046 step 1 (walls). Revit's export writes a wall's `Height` on exactly the walls it writes the four on (579 of 607 as built and 565 of 589 at permit; the others carry only a `NetVolume`), and on every wall of the office where the four are Revit's, rvt-rs's extrusion is as tall as Revit's solid: 117 of 117 as built (49 with no roof or floor join, 68 roof-joined) and 128 of 128 at permit (48 and 80), none different (RE-293 §2). The second rule already vouches that the wall is a rectangular prism its joins leave whole, so the height of its extrusion is the vertical span of Revit's solid, and the rule adds no condition of its own. Where a wall's top is joined to a roof Revit's `Height` is the attached wall's, so walls the second rule does not take stay unwritten (RE-293 §5). The rule takes none of the walls Revit writes only a `NetVolume` on; that is a measured result on this corpus (no `Height` is written where Revit writes none), not a guard in the rule. The evidence is one building, the BIM4LCA office in Revit 2024, with no out-of-sample test: the R2025 models and the held-out models take no wall by the second rule, so none of them tests it. ## Changes - `src/ifc/export_content/wall_areas.rs`: `add_bounded_wall_quantities` writes `Height` (the body's) beside the four on each wall it takes. - `reports/element-framing/RE-293-wall-height-bounded.md`. - README, W7 on the criteria page, the supported profile, the reconnaissance addendum, `changelog.d/added/wall-height-bounded.md`, and Core Interior's witness observations (7 more walls' `Height`, from CI's `octetproof-core-interior` artifact; both verdicts replay PASS with the verdict files unchanged). ## Testing Unit tests are banned in this repository; none added. Measure [41183229365](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41183229365): this branch (f5d4ab5, RE-290 and `main` merged in) against `main` (9066ded), every model and every scorer, with the held-out models (`-f base=main -f nordic=true -f r2025=true -f holdout=true`). The base is a newer `main` than the head by one landing (RE-283's wall parameters, #1182), which is why Einhoven's `diagnostics.json` and modelo_bim's property set census differ in that run; the quantities do not depend on it. Run [41180588895](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41180588895) (6317d42 against RE-290's head a07a850) shows what `Height` alone moves. | model | quantities | equal on `main` | with #1205 | with #1205 and this PR | different | Revit omits (rvt-rs writes) | |---|---:|---:|---:|---:|---:|---:| | office as built | 39,388 | 28,162 | 28,278 | 28,325 | 1 to 1 (the mullion) | 0 to 0 | | office at building permit | 39,679 | 28,076 | 28,220 | 28,278 | 1 to 1 | 0 to 0 | | R2025 models (24) | 1,515 | 775 | 775 | 775 | 0 to 0 | 0 to 0 | | RE1 Mechanical, Plumbing | 31, 63 | 31, 63 | 31, 63 | 31, 63 | 0 | 0 | `Qto_WallBaseQuantities.Height`: 81 to 128 of 579 as built (+47), 70 to 128 of 565 at permit (+58), R2025 93 of 138 as before; against #1205's head alone the office goes 28,181 to 28,228 and 28,155 to 28,213. Core Interior's and RE1 Architecture's exports were made with base quantities off (RE-242): the 7 `Height` values now written on Core Interior's walls are counted apart (2,268 on `main`, 2,292 with #1205, 2,299 with this PR); RE1 Architecture's 92 are unchanged. Held-out models (same run, scrubbed counts): the AA house (846 quantities, 127 equal, 0 different, 719 missing), modelo_bim (220, 7, 0, 213) and teste_export_2025 (44, 10, 0, 34) have the quantity counts of `main`'s on all three, so no `Height` is written there. The AA house's 2 quantities Revit's export does not write (slab `Width`, RE-295) and teste_export_2025's 3 (covering `Width`, RE-250 and RE-297) are on `main` already, not this change's. Left out and measured (RE-293 §5): `Height` on every wall the second rule does not take. - [x] Verified end to end on real Revit files (BIM4LCA office, CC BY-SA 4.0; puzzbobb's R2025 models, Apache-2.0): Measure above and `tools/re/wall_quantities_vs_ifc.py` reproduce it - [x] Witness observations refreshed in this PR - [x] No local build: `rustfmt` only; CI is the gate ## Audit-honesty checklist - [x] README, W7, the supported profile and the reconnaissance addendum say what is and is not written - [x] Changelog fragment under `changelog.d/added/` - [x] Limitations are in RE-293 §5 and this body - [x] Reverse-engineering finding: scorer, addendum and report included (the scorer is RE-270's) ## Legal and contribution hygiene - [x] Apache-2.0; clean-room: revit-ifc is read for what Revit's exporter writes and cited (`PropertyUtil.CreateWallBaseQuantities`), not copied ## Breaking changes None. ## Related issues Refs #1046, #1016. Stacked on #1205.
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
rvt-rs now also writes a wall's
GrossSideArea,NetSideArea,GrossVolumeandNetVolumeon a wall joined to roofs, floors or footings that lie clear of it when its centreline, cut back where the wall meets the walls joined at its ends, is as long as the record's box, not only when its record confirms itsLength: 29 more office walls as built and 36 at building permit, Revit's on every one, none different and none Revit's export leaves out (RE-290).Motivation
#1046 step 1 (walls), the second RE-270 rule. That rule needed the record to confirm the wall's
Length(the curve cut back at its joins as long as the curve, RE-252), which only 88 office walls as built meet. The longest vertical face of Revit's solid for a plain wall is as long as its exportedLength(128 of 132 such record-box walls as built, 127 of 141 at permit), the cut-back centreline when that differs from the curve, and rvt-rs reads the cut-back length wherever both ends are read twice alike. Where it is read it is the record box's long side on every wall (55 of 55 as built, 68 of 68 at permit); where the box is not Revit's face it is not read. The cut-back length is a confirmation, not a source: the values are still the box's (RE-290 §2).Changes
src/research/partition_schema_mvp/{fields,wall_joins}.rs:WALL_CUTBACK_LENGTH_FIELD, the cut-back lengthnative_walls::trimmed_endsreads, given whether or not the curve is as long.src/ifc/export_content/wall_areas.rs,src/ifc/export_content.rs: the RE-270 pass takes a wall whose record confirms itsLengthor whose cut-back length is within 1e-4 ft of the body's long side.probes/examples/probe_re290_wall_cutbacks.rs,reports/element-framing/RE-290-wall-cutback-length.md.changelog.d/added/wall-areas-cutback.md, and Core Interior's witness observations (6 more walls, four quantities each: 12 moreIFCQUANTITYAREAand 12 moreIFCQUANTITYVOLUME, copied from CI'soctetproof-core-interiorartifact; both verdicts replay PASS with the verdict files unchanged).Testing
Unit tests are banned in this repository; none added. Measure 41182651693: this branch (790f3bf,
mainmerged in) againstmain(3bc5e21), every model and every scorer (-f base=main -f nordic=true -f r2025=true). Onlyifc.sha256,qtos_vs_ifcand Core Interior's witness observations move; the other 1,465 scorer outputs are byte-identical tomain's. Run 41138696192 (the same change on an earliermain, withwall_quantities_vs_ifcandprobe_re290_wall_cutbacks) lists each wall; the code of the two runs is the same, onlymainmoved.By quantity (equal, of the walls Revit writes it on):
GrossSideArea,NetSideArea,GrossVolume67 to 96 of 579 as built and 70 to 106 of 565 at permit;NetVolume67 to 96 of 607 and 70 to 106 of 589. Core Interior's and RE1 Architecture's exports were made with base quantities off (RE-242): the 24 quantities rvt-rs now writes more on Core Interior (6 walls, four quantities each) are counted apart (2,268 to 2,292); RE1 Architecture's 92 are unchanged.Held-out models (41180458307,
-f holdout=true -f base=main, scrubbed counts): the AA house (846 quantities, 127 equal, 0 different, 719 missing), modelo_bim (220, 7, 0, 213) and teste_export_2025 (44, 10, 0, 34) have the same counts asmain's, so this rule writes nothing on them. The AA house has 2 quantities rvt-rs writes that Revit's export does not onmainalready; they are slabWidthvalues (RE-295, named by the scrub change in #1222), not this change's.Which gate keeps the one permit wall whose cut-back length is read but whose face is not the box's out: wall 2601954 (box 18.86 ft, Revit's face 12.74 ft). The 1e-4 ft comparison with the box's long side has not rejected any wall of these files (where the length is read it is the box's long side on every wall), so it is not that. Its record confirms its
Length, so RE-270's first condition would take it; its top join names slab 1451421 and ceiling 2094524 (Compound Ceiling:AK-3, anIfcCovering), and the pass measures only slabs, roofs and footings (wall_areas::JOINED_TYPES), so a wall joined to anything else is left out. The run writes none of the four on it, and none of its values differs from Revit's.Left out and measured (RE-290 §5):
walls whose cut-back length is not read (30 record-box walls joined to roofs as built, 25 at permit);
walls with cutouts: of the 37 whose cutout steps match the openings rvt-rs cuts and whose length is confirmed, 31 are right, 5 are walls Revit writes only a
NetVolumeon (so side areas would be values Revit omits) and 1 is wrong; the record does not tell them apart;walls drawn from their centreline: the cut-back length is read on 23 as built and is Revit's face on 22, but the one Revit writes only a
NetVolumeon is among them.Verified end to end on real Revit files (BIM4LCA office, CC BY-SA 4.0; puzzbobb's R2025 models, Apache-2.0): Measure above,
tools/re/wall_quantities_vs_ifc.pyandprobes/examples/probe_re290_wall_cutbacks.rsreproduce itWitness observations refreshed in this PR
No local build:
rustfmtonly; CI is the gateAudit-honesty checklist
changelog.d/added/Legal and contribution hygiene
WallExporter,PropertyUtil.CreateWallBaseQuantities), not copiedBreaking changes
None.
Related issues
Refs #1046, #1016.