Skip to content

fix(ifc): a roof's holes stay in its GrossArea and GrossVolume, as Revit's export leaves them (#1636) (RE-413) - #1665

Merged
DrunkOnJava merged 6 commits into
mainfrom
fix/1636-roof-gross-area
Nov 11, 2026
Merged

DrunkOnJava merged 6 commits into
mainfrom
fix/1636-roof-gross-area

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Summary

A flat roof Revit's export writes as a slab and whose sketch has holes now gets the area of its outline for Qto_SlabBaseQuantities.GrossArea and that area times its depth for GrossVolume, where it got the area less the holes. Revit's export writes the holes as openings and takes them off the roof's NetVolume alone; a floor's holes are taken off its GrossArea, which stays as it was.

On the BIM4LCA housing as built the pair shows it on 10 slabs with holes (5 are floors rvt-rs writes a GrossArea for): the 8 floors' GrossArea is the outline's less the holes (rvt-rs writes 5, all equal), and the 2 roofs' is the outline's. The roof 1567765's body is the same in both exports (volume 101.6165 m³), but Revit writes GrossArea 125.0450 and GrossVolume 102.5369 where rvt-rs wrote 123.9226 and 101.6165, 0.9% under. The unfiltered Measure (42928202421, 126 models) moves 4 exports, the four large housing files, and 122 are byte-identical: on each, the one different GrossArea and the one different GrossVolume are equal (0.9% to 2.9% under Revit's before). That is one roof, the Tag 1567765, in four saves of one project: no second model exercises the rule, and nothing here checks it against another Revit export.

Motivation

#1636, #1016. RE-402 section 4: Qto_SlabBaseQuantities.GrossArea and GrossVolume, 1 different on each of the four large housing files.

Changes

  • src/ifc/export_content.rs: add_slab_gross_area takes a roof's outline area (profile_outline_area) for GrossArea and GrossVolume.
  • Report RE-413, the changelog fragment, and the two docs lines that state the roof rule.

Testing

No unit tests. Measured end to end against Revit's own export (BIM4LCA, Revit 24.0.5, CC BY-SA 4.0, fetched by Measure): run 42925098078 for the BIM4LCA models and the unfiltered run 42928202421 (the same-project gates pass); both are in RE-413 section 4.

  • tools/check-local.sh: not run locally (no local builds here); CI builds it
  • Verified end to end on real Revit files: the run above
  • If this touches the IFC exporter: the witness verdicts replay or the changed observations are refreshed in this PR (checked when CI runs)

Audit-honesty checklist

Legal and contribution hygiene

  • Apache-2.0; no Autodesk source

Breaking changes

None.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 11, 2026 00:30
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 11, 2026 01:35
@DrunkOnJava
DrunkOnJava merged commit 26502b2 into main Nov 11, 2026
70 of 75 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1636-roof-gross-area branch November 11, 2026 01:43
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
…fails a pull request where the fetcher's list, its dump case and the open-model list disagree (#1678) (#1680)

## Summary

The six BIM4LCA housing files join the semantic check: each gets an MCP
dump and is listed as an open model, so a change confined to them, such
as #1665's slab and roof quantities, is no longer invisible to it. A CI
step, `tools/ci/check_semantic_models.py`, fails a pull request where
the fetcher's `MODELS_LIST`, its dump case and `OPEN_MODEL_NAMES`
disagree; run on main as it was before #1677 it reports exactly the two
timber models of #1675. No export changes.

## Motivation

Closes #1678; follows #1675 (#1677). The housing comes from the same VTT
archive as the office (CC BY-SA 4.0), so the licence that lets the
office's dumps go to Jev covers it. A model that joined the fetcher
without its dump case or its list entry made every complete run's check
read NOT MEASURED once; the guard makes that a failure in the pull
request that adds the model.

## Changes

- `tools/ci/measure-reference-models.sh`: the dump case covers
`nordic-housing-*`.
- `tools/re/semantic_diff.py`: `OPEN_MODELS` and `OPEN_MODEL_NAMES` list
the housing and its six models.
- `tools/ci/check_semantic_models.py` (new), run by the PII guard job of
`ci.yml`: five ways the three lists can disagree, and `--refusals`,
which shows it failing on six mutated copies of the two files.
- `docs/maintaining.md`: the guide counts 42 open models and names the
check.

## Testing

No unit tests added; the existing `test_jev_check` and
`test_semantic_diff` suites still pass locally, which is a guard and not
evidence. The new check is a contract check on the real files and is
shown failing on mutated copies and on the real defect (main before
#1677: the two timber offices). End to end: Measure run 42940165321
(this branch's tooling; head 6e58c27 against base 74a5034, complete),
judged against the rows registered on #1678 and reported there:

- H1: 42 models compared, `skipped` and `uncovered` empty, each housing
model holding a dump on both sides.
- H2: the largest housing dump opened is 1.91 MiB against the 400 MiB
cap.
- H3: housing shards 3.0 to 5.9 minutes (3.1 to 4.8 before).
- H4: `jev_check.py --dry-run` builds 13 chunks and 138,753 characters,
3 chunks and 39,622 characters more than without the housing, inside
`MAX_CHUNKS` (150).
- H5: the housing findings are #1647's `SavedMeshRefusal` additions and
counters, and nothing else; no element added or removed.

A side effect of that run, stated there: the Semantic check job refused
to send the housing diff (main's list lacks the housing until this
lands) and failed on a main commit, by design. This pull request's own
gate run is dispatched from main's tooling, so no housing dump is
written and the check scores it against the list of 36.

- [ ] `tools/check-local.sh` passes: not run locally (no local builds
here); CI runs it
- [x] Verified end to end on real Revit files: Measure run 42940165321
(BIM4LCA housing and office, CC BY-SA 4.0, fetched by Measure)
- [x] If this touches the IFC exporter: N/A, no exporter change
- [x] If this is a performance change: N/A

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: no
user-facing claim changes
- [x] A user-visible change has its changelog fragment: N/A, CI tooling
only
- [x] No emojis, private paths or personal addresses in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK
content
- [x] No new test fixtures

## Breaking changes

None.
puzzbobb pushed a commit to puzzbobb/rvt-rs that referenced this pull request Nov 15, 2026
…a complete Measure run is no longer NOT MEASURED (DrunkOnJava#1675) (DrunkOnJava#1677)

## Summary

Measure now writes the MCP dump for the BIM4LCA timber office
(`nordic-office-timber-*`), and the semantic check lists both timber
models among the open models it compares, so a complete run's check is
judged on all 36 instead of reading NOT MEASURED. No export changes.

## Motivation

Closes DrunkOnJava#1675. Every complete Measure run since the timber office joined
the fetcher (2026-11-10) ended its semantic check as NOT MEASURED, for
example check run 130231595702 on 5030181 (DrunkOnJava#1665):
"nordic-office-timber-as-built: no dump on the base or head side;
nordic-office-timber-permit: no dump on the base or head side". The two
folders match `OPEN_MODELS` (`nordic-office-*`) but held no dump, and
neither model was in `OPEN_MODEL_NAMES`, so `coverage_gaps` counted them
as gaps. A NOT MEASURED never supersedes a fail, so a pull request
holding an older fail could not be armed.

## Changes

- `tools/ci/measure-reference-models.sh`: the MCP dump case covers
`nordic-office-timber-*`.
- `tools/re/semantic_diff.py`: `OPEN_MODEL_NAMES` lists
`nordic-office-timber-as-built` and `nordic-office-timber-permit`; its
comment says a model joining the fetcher is added to the list and to the
dump case together.
- `tools/ci/test_jev_check.py`: the existing coverage test derives its
expected count from the model list instead of the literal 4.
- `docs/maintaining.md`: the guide counts 36 open models, names the
BIM4LCA office in concrete and timber, and says a model that joins the
fetcher needs its dump case as well as its list entry.

## Testing

No unit tests added; the existing `test_jev_check` and
`test_semantic_diff` suites still pass locally, which is a guard and not
evidence. End to end: Measure run 42935884112, complete (`nordic`,
`r2025`, `samples`, no `models` filter) with this branch's tooling, base
main 56821a1, head 8251fc4, judged against the rows registered in the
comment on DrunkOnJava#1675:

- A1 held: the semantic check on the head reads `pass: no semantic
difference in 36 models`, not NOT MEASURED.
- A2 held: the `semantic-diff` manifest has `requested_all` true, 36
models compared, and `skipped` and `uncovered` empty (both timber
offices hold a dump on both sides).
- A3 held: 0 findings in 98,720 elements, as a change that touches no
export must read.
- The same-project gates pass on this head
(`measure-reference-models.sh` is a gate path).

`semantic-check.yml` runs from main with main's tooling, so that verdict
was computed against the old list; no model was skipped, so it could not
be a gap. The later commit 332e2dc is documentation only (the guide's
count and the dump-case note).

- [ ] `tools/check-local.sh` passes: not run locally (no local builds
here); CI runs it
- [x] Verified end to end on real Revit files: Measure run 42935884112
(BIM4LCA office, CC BY-SA 4.0, fetched by Measure)
- [x] If this touches the IFC exporter: N/A, no exporter change
- [x] If this is a performance change: N/A

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: no
user-facing claim changes
- [x] A user-visible change has its changelog fragment: N/A, CI tooling
only
- [x] No emojis, private paths or personal addresses in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK
content
- [x] No new test fixtures

## Breaking changes

None.

## Screenshots or output samples

The manifest and verdict of run 42935884112 are posted on DrunkOnJava#1675.
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