Skip to content

ci(measure): score puzzbobb's Revit 2025 models against Revit's exports with -f r2025=true (#766) (#356) - #805

Merged
DrunkOnJava merged 1 commit into
mainfrom
corpus/766-r2025-models
Oct 19, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
corpus/766-r2025-models

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 18, 2026 •

Copy link
Copy Markdown
Owner

Summary

Measure can now score puzzbobb's 23 purpose-made Revit 2025 models (R2025_Models.zip, #356) against Revit's own IFC4 exports of them, with -f r2025=true. Ticks #766's third item.

Motivation

Several findings rest on these models: the roof planes of #356, the stairs of #357, the wall parameters of #798 (RE-185) and #35. Until now they could only be measured on the contributor's machine. Their author made them and released the .rvt and .ifc files under Apache-2.0 on #356 (2026-10-05). He posted the archive's SHA-256, which research/r2025-models.tsv pins.

Changes

  • research/r2025-models.tsv: the archive's URL, SHA-256 and size, and its licence.
  • tools/ci/fetch-r2025-models.sh: downloads the archive, checks its hash and size, and extracts its .rvt and .ifc files into models/r2025/. It exits 1 on a mismatch and 2 when the archive cannot be downloaded.
  • tools/ci/measure-reference-models.sh: each models/r2025/*.rvt joins the model list as r2025-<name>, with its export beside it, or - for the one model without one.
  • .github/workflows/measure.yml: the r2025 input and its fetch step. A download failure is NOT MEASURED; a mismatch fails the run, as for the BIM4LCA models.
  • docs/reference-models.md and CHANGELOG.md.

Testing

  • Local checks of the fetcher, against a local copy of the archive:

    • the pinned archive gives 23 .rvt and 22 .ifc, exit 0;
    • a wrong hash gives exit 1 and extracts nothing;
    • a missing archive gives exit 2.

    The model-list hook gives 23 entries, with 07_1Slope_ArrowDefined_2Cut50mmFascia marked as having no export. bash -n and shellcheck pass, and the workflow parses.

  • On the runners, Measure run 39175059258, dispatched from this branch with -f r2025=true, #798's head and its probe:

    • all 23 models were fetched, verified and exported, every rvt-ifc exiting 0;
    • every scorer ran on the 22 with an export.

    The probe reproduces Re185 wall function #798's tables exactly:

    • RE1 Architecture: 8 walls; IsExternal equal on 8; ExtendToStructure on 7 (the curtain wall has none).
    • R2025 models: 21 models with 117 walls; IsExternal 117 true and equal on 117; ExtendToStructure 32 true, 85 false, equal on 117.
    • Windows of models 12 to 17: the 0.5h table entries are 12482 × 18 and 12220 × 9.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content
  • No file is committed. The models are fetched for a run by their pinned hash. They are the contributor's own, under Apache-2.0 by his statement on Sloped roofs need a Revit 2024/2025 pitched-roof oracle #356.

Breaking changes

None. Without -f r2025=true, Measure runs as before.


Note

Low Risk
CI-only, opt-in measurement plumbing with pinned external archives; no changes to export or runtime behavior when r2025 is unset.

Overview
Adds an opt-in Measure path to score puzzbobb's 23 purpose-made Revit 2025 models against Revit's IFC4 exports, mirroring reference-model and BIM4LCA scoring.

-f r2025=true on the Measure workflow downloads R2025_Models.zip using a new pin file (research/r2025-models.tsv), verifies SHA-256 and size via tools/ci/fetch-r2025-models.sh, and extracts .rvt/.ifc into models/r2025/ for the run only. Download failure is NOT MEASURED; a hash mismatch fails the job. measure-reference-models.sh auto-registers each models/r2025/*.rvt as r2025-<name> (missing export uses - for the one model without IFC). Docs and CHANGELOG describe the corpus and dispatch flag.

Reviewed by Cursor Bugbot for commit abb055d02a6187900c2aeafb6f56d685a6b10653. Configure here.

…ts with -f r2025=true (#766) (#356)

R2025_Models.zip holds 23 Revit 2025 projects, each made to isolate one
feature (roofs, slope arrows, rooms, stairs, wall joins), and Revit's IFC4
export of all but one. Its author released the .rvt and .ifc files under
Apache-2.0 on #356. research/r2025-models.tsv pins the archive by the hash
he posted; tools/ci/fetch-r2025-models.sh downloads it, checks the hash and
size, and extracts the models into models/r2025/, where the Measure script
adds each to its model list with the export beside it. A download failure
is NOT MEASURED and a hash mismatch fails the run, as for the BIM4LCA
models.
@DrunkOnJava
DrunkOnJava force-pushed the corpus/766-r2025-models branch from abb055d to 3932247 Compare October 19, 2026 00:14
@DrunkOnJava
DrunkOnJava merged commit 086b05b into main Oct 19, 2026
30 checks passed
@DrunkOnJava
DrunkOnJava deleted the corpus/766-r2025-models branch October 19, 2026 00:21
DrunkOnJava pushed a commit that referenced this pull request Oct 19, 2026
…tendToStructure its roof attachment (RE-185) (#798)

## Summary

Research for #35 (B28 walls, B42), as RE-185. A wall's `IsExternal` is its type's native `WallType.m_function`, and its `ExtendToStructure` is true exactly where its record holds a `JoinToRoofGStep`. A window's `FireRating` is a family-type text parameter that RE-77's id-first scan does not read. Probe and report only; no library change.

## Motivation

RE-158 found no wall type entry for `IsExternal`, and RE1's walls are all false, so nothing told the candidates apart. RE-154 left B42 waiting for a model with a longer fire rating. The maintainer asked on #35 for the patch attached there to be opened as a PR, renumbered from RE-172 (which is #751) to RE-185.

**Walls.** Both values come from native records:

- `IsExternal` is the type's `WallType.m_function` (0 Interior, 1 Exterior, the enum of the doors' `FUNCTION_PARAM`). The type comes from `SWall.m_WallAttributesId`.
- `ExtendToStructure` is true exactly where the wall's record holds a `JoinToRoofGStep`.

| models | walls | `IsExternal` T / F | equal | `ExtendToStructure` T / F | equal |
|---|---:|---|---:|---|---:|
| RE1 Architecture | 8 (1 curtain wall) | 0 / 8 | 8 | 0 / 7 | 7 |
| `R2025_Models.zip` (#356), 21 models | 117 | 117 / 0 | 117 | 32 / 85 | 117 |

None differs from Revit's IFC4 export.

**B42.** Of RE-154's four ids, RE-77 already names -1001206 Fire Rating (from the VIM export) and reads RE1's 7 walls from it. rvt-rs carries the value on each wall, but writes it only in its own identity set, not as `Pset_WallCommon.FireRating` or `Pset_ConcreteElementGeneral.FireRating`, the 14 values B42 counts.

**Family-type text.** A window's `FireRating` (`0.5h`, models 12 to 17) is a family parameter named `Fire Rating`. It is an entry in the family types' parameter table, `u32 n · UTF-16 · (u32 0 | ff ff ff ff · u16) · f64 · ElementId · i64 parameter · u32 · u16`, where the text belongs to the id after it. RE-77's id-first scan does not read it. This is measured on models 12 to 17 (report §3.3). Whether it accounts for some of the 166 rated Snowdon elements RE-77 leaves unread is **unmeasured**: Snowdon's export was not available.

## Changes

- `examples/probe_re185_wall_function.rs`: the probe that measures every value above against Revit's IFC4 export.
- `reports/element-framing/RE-185-wall-function.md`: the RE-185 report.

## Testing

Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.

- [x] `tools/check-local.sh` passes (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)
- [x] Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it
- [x] If this touches the IFC exporter: N/A, no exporter change
- [x] If this is a performance change: N/A

```text
cargo run --profile ci --example probe_re185_wall_function -- RE1-Architecture.rvt R2025_models/*.rvt
```

Files: the RE1 Architecture model and the 21 wall-bearing models of `R2025_models.zip` (#356), each with Revit's own IFC4 export.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR — no claims of features that are not actually shipped in this PR
- [x] If a limitation was resolved: N/A, research only; nothing new is exported
- [x] If a new limitation was introduced: N/A
- [x] Commit messages describe WHAT changed and WHY, not "fix things" or "updates"
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in committed files
- [x] If this is a reverse-engineering finding: a reproducible probe under `examples/`, with the dated finding in `reports/element-framing/RE-185-wall-function.md`, as recent RE PRs do

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`)
- [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`)
- [x] Any new test fixtures use synthetic values (`testuser`, `111111`, `FY-20XX`, etc.) and contain no real-world PII: N/A, no fixtures added

**Contributor declaration (CLEANROOM.md).** The changes in this PR are based on byte observations of Revit files (CLEANROOM.md §Accepted sources 1), compared with Revit's own IFC4 exports of the same models: the RE1 Architecture model and the 21 wall-bearing models of `R2025_models.zip` (#356), with class and member names read from each file's own `Formats/Latest` schema. I have not used Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code beyond public symbol exports, and I have not copied or translated code from revit-ifc.

## Breaking changes

None.

## Screenshots or output samples

N/A: no UI or IFC output change. The probe's measured tables are above and in the report.

## Related issues

Refs #35. Refs #356 (the `R2025_models.zip` models become CI evidence once that archive is pinned).

Not done: `LoadBearing` (no Structural wall measured), and walls attached to floors or ceilings rather than roofs.

## Maintainer notes (landing)

- Landed as one commit authored by puzzbobb, rebased onto `main`. The probe and the report are his. In the report, the archive is called `R2025_Models.zip` throughout, the name it has on #356. Its artefacts line notes the runner reproduction, and §6 gains the Measure command. A CHANGELOG entry under Research credits him.
- Reproduced on GitHub's runners: #805 pinned the archive, and Measure run [39175059258](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39175059258) (`-f r2025=true -f probe=probe_re185_wall_function`) gives the tables above exactly. RE1 Architecture: 8 and 7 equal. The 21 models: 117 walls, all equal. Models 12 to 17: the `0.5h` entries 12482 × 18 and 12220 × 9.
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 19, 2026
6 tasks done
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
## Summary

Prepare v0.6.0. Merging this is not the release: the release is the signed `v0.6.0` tag on the merged commit, after the maintainer's go-ahead. This stays a draft until then.

## Motivation

Since 0.5.1, `main` has:

- **IFC4's own property sets (#822):** the IFC2X3 sets 0.5 took from Revit's exports of the RE1 models are gone or moved to where IFC4 and Revit's own IFC4 export put them (#825, #829, #833), and Measure checks every export's standard property sets against buildingSMART's published IFC4 property set definitions (#826). That is rvt-rs's own check: buildingSMART's Validation Service has not been run on the exports, and quantity sets are not checked.
- **More of what Revit's exporter writes:** parameters named for an IFC4 property set's property (RE-194, #815, #817/#821), each element's `IsExternal` (RE-193, #814), a type's Fire Rating (#830), a door's overall size (#788), Revit 2024 Areas as spaces (#811), port types and electrical flow directions (#832), rooms with no number (#818), pieces' property sets (#819), a room's floor finish in IFC4's set (#820).
- **Older and newer releases, experimentally:** Revit 2015 to 2022 (#742) and 2027 (#740) element records.
- **Fixes:** Export to IFC As on fixtures, stairs, doors, curtain walls and wall sweeps (#796, #804, #812, #813), the latest copy of an element's or type's data (#803, #809), declared ElementIds (#797), diagnostics naming the file, not its folders (#785), the browser viewer's wasm32 string-length panic (#835), and `rvt-inspect`, `rvt-corpus doctor` and the viewer's File Status taking Revit 2015 and 2027 as releases rvt-rs reads (#838).
- **CI and release:** IfcOpenShell 0.9.0.post1 (#795), Rust installed with rustup (#793), a tag publishes nothing until the maintainer approves it (#786, #787), and Measure's office, R2025, paired-probe and per-sample hashing (#790, #799, #805, #806).

## Changes

- **Versions 0.5.1 → 0.6.0** in the nine files that carry them: `rvt`, `rvt-py` and its pin, `rvt-wasm`, the `stream_evidence` pin, `CITATION.cff` (with `date-released`), `.release-please-manifest.json`, `viewer/package.json` and both lockfiles' workspace entries.
- **CHANGELOG:** `[0.6.0] — 2026-10-19`, with an introduction, **Upgrading from 0.5** (the property sets that moved, the public API changes, the releases that now export elements) and the outside contributors credited: puzzbobb (#740, #742, #798), Erry91 (#788) and MadsHolten (#835). The section's headings were already single; its 41 entries are all kept, with #835's and #838's added. Its introduction says the property sets match buildingSMART's published IFC4 definitions by rvt-rs's own check, as does the README's release summary.
- **README:** "Release 0.6.0 and main" names v0.6.0 and summarises what it added. The lines that said `main` reads Revit 2015 to 2022 and 2027 now say experimental (since 0.6.0). The opening and "Not yet" lines name those releases, and so does the capability table. The bullet list of what 0.5.0 added is gone; #832 had put 0.6.0's port types in it. As Codex found, the IFC4 export row, the viewer paragraph and the decoder-work paragraph also said 2022 and earlier export only the scaffold, and the by-input table skipped 2014; they name 2015 to 2022, 2026 and 2027 now.
- **Witnesses:** the IFC header carries the version, so both Core Interior `rvt-rs.json` observations and their verdicts are refreshed from this pull request's CI run.

## Testing

- CI on this pull request, the witness replays included.
- Measure on `main` at 23a9d76, which is everything in this release but #835's wasm32-only fix and #838's CLI and viewer version range, neither of which changes an export: run [39273188597](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39273188597). All 89 exports (the reference models, both BIM4LCA office files, Autodesk's 58 sample projects and the 23 R2025 models) have no finding in Measure's IFC4 property set check (#826, against buildingSMART's published definitions), and IfcOpenShell's schema validation finds nothing on any of the 89; none was too large to validate.
- Witnesses: both Core Interior observations and verdicts are taken from this pull request's CI run 39275014518; only `witness_version` and the verdict hashes differ, and CI's replay on b82c0c3 passes.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content

## Breaking changes

See **Upgrading from 0.5** in the CHANGELOG: standard property sets moved to IFC4's, and five public API changes.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Version and documentation-only release prep with no runtime code changes in this PR.
> 
> **Overview**
> **Bumps the workspace from 0.5.1 to 0.6.0** across `Cargo.toml`, `rvt-py` / `rvt-wasm` / `stream_evidence` pins, lockfiles, `viewer/package.json`, `.release-please-manifest.json`, and `CITATION.cff` (release date 2026-10-19).
> 
> **Documents the release:** adds the `[0.6.0]` section to `CHANGELOG.md` (IFC4 property sets, broader Revit export parity, experimental 2015–2022/2027 element export, wasm viewer fix, and **Upgrading from 0.5** breaking notes). **README** now treats v0.6.0 as the current release—updates the support matrix and “Release 0.6.0 and main” to describe shipped capabilities instead of the old 0.5.1 bullet list.
> 
> No application or library source changes in this diff; it packages and narrates work already on `main`.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c8826b82982270fd4f47b8da656f2e3e6021c76b. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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