Skip to content

feat(ifc): write a wall's GrossFootprintArea where its side areas and volumes are written (#1046) (RE-292) - #1206

Merged
DrunkOnJava merged 17 commits into
mainfrom
feat/1046-wall-footprint-area
Oct 31, 2026
Merged

DrunkOnJava merged 17 commits into
mainfrom
feat/1046-wall-footprint-area

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

rvt-rs now writes a wall's GrossFootprintArea, its length times its width, on the walls it writes the four RE-270 quantities on by the first rule (a record box cut back at its joins, nothing joined to or cutting the wall) that are more than three times as long as thick: 48 of the BIM4LCA office's walls as built, 47 at building permit and 91 R2025 walls, Revit's on every one, none different and none Revit's export leaves out (RE-292).

Motivation

#1046 step 1 (walls). RE-270 left GrossFootprintArea out because Revit omits it on one wall of its first rule's 49 as built and one of 48 at permit, and nothing told it apart. It is the same wall in both files, 3184170, 0.164 ft long across a 0.328 ft thickness: its long side is its thickness. It is the only wall of the first rule's group, 188 walls over the two offices and the R2025 models, with a length under 3.12 times its thickness, and the footprint is Revit's on 186 of the 188, the two without being that wall in the two office files. revit-ifc's PropertyUtil.CreateWallBaseQuantities takes the footprint from WallExporter.TryToCreateAsExtrusion (the area of the wall's footprint loop), a path gated by an internal Revit check, so the model cannot say which walls pass it. That is one wall, so what decides it cannot be told from this corpus. Every wall of the group longer than 3.12 times its thickness has a footprint in Revit's export (186 of 186) and nothing between 1.0 and 3.12 times was measured, so the bound is a round 3.0 times, just under the shortest wall measured to have one (3.12): it was 2.0 before, which lay in the unmeasured interval. A wall between 3.0 and 3.12 times, of which the corpus has none, would be written without a measurement behind it.

Changes

  • src/ifc/export_content.rs: add_wall_areas_and_volumes also writes GrossFootprintArea (the box's long side times the type's width) where the wall is more than three times as long as thick (FOOTPRINT_MIN_LENGTH_FACTOR = 3.0, the measured bound).
  • reports/element-framing/RE-292-wall-footprint-area.md.
  • README, W7 on the criteria page, the supported profile, the reconnaissance addendum, changelog.d/added/wall-footprint-area.md, and Core Interior's witness observations (139 more IFCQUANTITYAREA, 491 to 630, copied 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 41183025562: this branch (9019678, main merged in) against main (c21e587), every model and every scorer (-f base=main -f nordic=true -f r2025=true). The exports of both offices, Core Interior, RE1 Architecture and the 23 R2025 models that have walls change; the other 1,398 scorer outputs are byte-identical to main's. The walls' own records and bodies are RE-270's (run 41136551451 lists each wall with wall_quantities_vs_ifc and probe_1067_native_dump).

model quantities equal before equal after different Revit omits (rvt-rs writes)
office as built 39,388 28,162 28,210 1 to 1 (the mullion) 0 to 0
office at building permit 39,679 28,076 28,123 1 to 1 0 to 0
R2025 models (24) 1,515 775 866 0 to 0 0 to 0
RE1 Mechanical, Plumbing 31, 63 31, 63 31, 63 0 0

Qto_WallBaseQuantities.GrossFootprintArea: 0 to 48 of 279 as built, 0 to 47 of 276 at permit, 0 to 91 of 138 on R2025; the walls' other quantities are as on main. Core Interior's and RE1 Architecture's exports were made with base quantities off (RE-242): the 139 and 1 footprint areas rvt-rs now writes on their walls are counted apart (Core Interior 2,268 to 2,407, RE1 Architecture 92 to 93).

Held-out models (41180524862, -f holdout=true -f base=main, scrubbed counts): the footprint is written on 8 AA house walls, all Revit's (127 to 135 equal, 0 different both times), and on none of modelo_bim's or teste_export_2025's. The 2 quantities rvt-rs writes there that Revit's export does not are on main already (slab Width, RE-295), not footprints; the extras are unchanged.

Left out and measured (RE-292 §3): walls joined to roofs or floors (Revit writes the footprint on 78 of the 85 record-box walls with only roof and clean joins as built and 78 of 93 at permit; the best single feature of any step's content predicts it on 216 of 258 record-box walls and is wrong on 42), layered walls, walls with openings, cut pairs, embedded walls or sweeps.

  • 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
  • Witness observations refreshed in this PR
  • No local build: rustfmt only; CI is the gate

Audit-honesty checklist

  • README, W7, the supported profile and the reconnaissance addendum say what is and is not written
  • Changelog fragment under changelog.d/added/
  • Limitations are in RE-292 §3 and this body
  • Reverse-engineering finding: scorer, addendum and report included (the probe is RE-270's probe_1067_native_dump)

Legal and contribution hygiene

  • Apache-2.0; clean-room: revit-ifc is read for what Revit's exporter writes and cited (WallExporter, PropertyUtil.CreateWallBaseQuantities), not copied

Breaking changes

None.

Related issues

Refs #1046, #1016.

Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
# 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
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Automated review (Claude Code review agent, run by the maintainer). Verdict: ready to merge.

  • Checked against Measure 41183025562: GrossFootprintArea is Revit's on 48 of 279 walls as built and 47 of 276 at permit, R2025 gains 91, nothing is different and nothing is added that Revit omits.
  • Fixed: the length bound was 2.0, inside an unmeasured interval. It is now 3.0, described as a round bound just under the shortest measured wall Revit gives a footprint (3.12 times as long as thick). The report says the one omission seen is the same wall in two files.
  • Held-out run 41180524862: the AA house (Revit 26.4 export) gains 8 footprints, all Revit's, with no extra.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 31, 2026 13:13
# Conflicts:
#	README.md
#	docs/release-1.0-criteria.md
#	docs/rvt-moat-break-reconnaissance.md
#	docs/supported-profile.md
#	research/witness/magnetar-2024-core-interior-slim/observations/rvt-rs.json
#	research/witness/magnetar-2024-core-interior/observations/rvt-rs.json
# Conflicts:
#	README.md
#	docs/release-1.0-criteria.md
#	docs/supported-profile.md
@DrunkOnJava
DrunkOnJava merged commit dc9d73c into main Oct 31, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/1046-wall-footprint-area branch October 31, 2026 13:48
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.
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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