Repository navigation
fix(ifc): a roof's holes stay in its GrossArea and GrossVolume, as Revit's export leaves them (#1636) (RE-413) - #1665
Merged
Merged
Conversation
DrunkOnJava
marked this pull request as ready for review
November 11, 2026 00:30
This was referenced Nov 11, 2026
DrunkOnJava
enabled auto-merge (squash)
November 11, 2026 01:35
9 of 10 tasks
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.
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
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.GrossAreaand that area times its depth forGrossVolume, where it got the area less the holes. Revit's export writes the holes as openings and takes them off the roof'sNetVolumealone; a floor's holes are taken off itsGrossArea, 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
GrossAreafor): the 8 floors'GrossAreais 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 writesGrossArea125.0450 andGrossVolume102.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 differentGrossAreaand the one differentGrossVolumeare 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.GrossAreaandGrossVolume, 1 different on each of the four large housing files.Changes
src/ifc/export_content.rs:add_slab_gross_areatakes a roof's outline area (profile_outline_area) forGrossAreaandGrossVolume.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 itAudit-honesty checklist
changelog.d/fixed/Legal and contribution hygiene
Breaking changes
None.