Repository navigation
feat(ifc): a wall carries its Length where its curve cut back at its joins is as long as the curve (#1046) (RE-252) - #1049
Merged
Merged
Conversation
…ts record names at its ends, scored against Revit's Length (#1046) (RE-252)
…all's end from the other walls' records (#1046) (RE-252)
…control join set names, and the scorer meets their location lines (#1046) (RE-252)
…GLine and face planes, and the scorer stops each end at a face of a wall joined there (#1046) (RE-252)
…xis along its GLine (#1046) (RE-252)
… and the curve its driver names, and the scorer reads trimmed-line axes (#1046) (RE-252)
…, the export's version and each wall's body items (#1046) (RE-252)
…d points (#1046) (RE-252)
…eQuantities sets (#1046) (RE-252)
…p partners and the partition reader's join reaches, and the scorer scores the free-wall rules (#1046) (RE-252)
…sed face map (#1046) (RE-252)
… both join readings agree at each end and every join step partner is a wall (#1046) (RE-252)
…joins is as long as the curve (#1046) (RE-252)
… uploading only their counts (#1046) (RE-252)
…e cut back at its joins is as long (#1046)
DrunkOnJava
enabled auto-merge (squash)
October 27, 2026 02:03
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 828138c8a8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…y's ratio to Revit's, without the element (#1048)
10 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 27, 2026
…the quantity census counts apart a Length whose two possible values differ (#1046) (RE-252) (#1052) ## Summary rvt-ifc's export diagnostics list each wall's native curve length (`decoded.wall_curve_lengths_feet`, by ElementId), and the quantity census counts a wall's missing `Length` apart where that length and the cut-back curve Revit's export draws as its `Axis` differ: Revit's export writes either one as the wall's `Length` (RE-252), and the maintainer chose (2026-10-26) to count those walls apart as an inconsistency of the export rather than as missing. ## Motivation #1046 and W7. RE-252 (#1049) writes a wall's `Length` only where its two possible values agree. The other walls stayed in W7's missing count though nothing in the model says which value Revit's export takes on them. ## Changes - `src/partition_schema_mvp.rs`: `WALL_CURVE_LENGTH_FIELD`, set by `attach_wall_lengths` on every wall it matches. - `src/ifc/mod.rs`: `DecodedExportDiagnostics::wall_curve_lengths_feet`, read from the memoised production walk the diagnostics already take their class counts from. The value is not written in the IFC file: the maintainer chose (2026-10-27) to keep a value only the census reads out of users' files. `docs/schemas/export-diagnostics.schema.json` and `docs/export-diagnostics.md` describe it. - `tools/re/qtos_vs_ifc.py`: reads each wall's curve length from the `diagnostics.json` beside the rvt-rs IFC (as Measure writes it, or `--diagnostics`) and the length of Revit's `Axis`, and counts a missing `Length` apart where the two differ by more than 1e-4 ft. Half of that comparison is rvt-rs's reading, so it counts apart only on a model where Revit's `Length` is rvt-rs's curve's or its own `Axis`'s on every wall, none neither; it prints the three counts. - `README.md`, `docs/release-1.0-criteria.md` (W7), RE-252 §7, `changelog.d/added/wall-curve-length.md`. - `tools/ci/scrub-holdout-results.sh`: keeps the census's two RE-252 count lines for the held-out models (counts only). ## Testing Measure [40448077811](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40448077811) (this change against `main`, unfiltered, `-f nordic=true -f r2025=true`, every scorer, the scorers from this branch), `qtos_vs_ifc`, `Qto_WallBaseQuantities.Length`: | model | Revit's = rvt-rs's curve / = Axis / neither | counted apart | scored | equal | missing | different | |---|---|---:|---:|---:|---:|---:| | office as built | 407 / 184 / 0 | 461 | 146 | 88 | 58 | 0 | | office at permit | 329 / 181 / 0 | 388 | 201 | 81 | 120 | 0 | | R2025 models (21 with walls) | | 71 | 46 | 46 | 0 | 0 | - No wall's `Length` moves: the 88, 81 and 46 equal are #1049's. The office's walls left missing are those whose two lengths agree but whose ends the two readings do not. - Every model's export is byte-identical to `main`'s (`ifc.sha256`), so no witness observation or project-count fixture moves; `psets_vs_ifc` and every other scorer: as on `main`. Each `diagnostics.json` lists the curve lengths, and the census's output is the same as on the earlier run of this PR that carried them in the IFC file ([40445560304](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40445560304)). - [x] Verified end to end on real Revit files (BIM4LCA office, VTT, CC BY-SA 4.0; Core Interior and RE1, MIT; puzzbobb's R2025 models, Apache-2.0) ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] A user-visible change has its entry as a fragment under `changelog.d/` - [x] What stays missing is stated (58 and 120 office walls) - [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] Apache-2.0 - [x] No Autodesk proprietary content. revit-ifc's `WallExporter` and `PropertyUtil` were read for what its export does and not copied (CLEANROOM.md source 5). - [x] No fixtures ## Breaking changes None.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 27, 2026
… RE-189 and RE-211 closed (#1064) ## Summary The README now lists what `main` adds after 0.9.0, and it no longer lists as open three gaps that RE-189, RE-211 and the materials work closed. It also fixes a broken anchor and a fuzz case count that was wrong. ## Motivation Griffin asked for the README to be brought up to date. It already carried every measured figure from #1049 to #1063 in its tables, but: - the "Support and evidence" link pointed at `#release-070-and-main`, a heading that no longer exists; - it sent readers to `[Unreleased]` in `CHANGELOG.md`, which is empty since #938 moved unreleased entries to `changelog.d/`; - it listed roofs by extrusion as not decoded (#883, closed by #930, RE-211), the ElemTable's first ids as an open question (#760, closed by #797, RE-189) and family instances' materials as decoder work (#34, closed 2026-09-27; the table's own row covers RE-149 to RE-206); - it said 38 fuzz regression cases, but `tests/fuzz_regressions.rs` has 64, all of them run in CI (`hardening fuzz_regressions` in `tools/ci/test-targets.txt`). It already had 64 when the sentence was written (#713). ## Changes - `README.md`: - the anchor now points at "Release 0.9.0 and main"; - "Release 0.9.0 and main" lists what `main` adds, taken from the `changelog.d/` fragments: base quantities, the diagnostics, and RE-248 and RE-251 to RE-255. On the office as built that is 21,065 quantities, against 0.9.0's 20,157; - the roofs row says a Revit 2025 roof by extrusion is drawn as its section. Its RE-211 figures (1,187 of 1,187 vertices within 0.001 ft, volume 1.00015 of Revit's) are stated apart from RE-199's 18 roofs, since its volume is outside the 1e-4 those meet. The two gap lists now say "outside Revit 2025", as `docs/status.md` already does; - the ElemTable row is Done, with RE-189's finding; - #34 is gone from the decoder-work list; - 38 becomes 64; - main's walls' `Width` is called an extension to slanted and unplaced walls, since 0.9.0 already had `Width` (RE-244). - `docs/support-matrix.json`, row `element-record-roof-outlines`: the notes still called #883 open. They now record RE-211's reading and measurement, and the evidence lists its reader, writer, probe, scorer and report. The status stays `partial`. N/A: no code, no export change, no changelog fragment (docs-only). ## Testing - `python3 tools/ci/api-doc-ids.py`: every cited RE finding has a report (240 reports). - `python3 tools/ci/wasm-api.py docs rvt-wasm/src/lib.rs README.md docs/viewer-api.md`: 22 bindings, matching. - `python3 tools/release/changelog.py check`: 18 fragments, valid. - Every `](#...)` anchor in the README resolves to a heading, every relative link resolves to a file, and there are no home paths. ## 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 (see `CONTRIBUTING.md`)
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 wall carries
Qto_WallBaseQuantities.Lengthwhere its curve, cut back where its body meets the walls joined at its ends, is as long as the curve (RE-252, #1046 step 1). Revit's export writes a wall'sLengthas either of those two lengths, by how it draws the wall (oneQto_WallBaseQuantitiesset per wall, never a third value), so only there is Revit's value never in doubt: 88 of the BIM4LCA office's walls as built, 81 at permit, 46 of the R2025 models' and 5 of the held-out flowbim.ee house's, each Revit's, none different.Motivation
W7: walls had only their
Width. The maintainer chose (2026-10-26) to treat Revit's switch between the two lengths as an inconsistency of its export, to writeLengthonly where both agree, and to compute the cut-back curve from the joins rather than limit it to unjoined walls; and to check the rule on held-out models fetched from their public sources, uploading only their counts.Changes
src/native_walls.rs:NativeWallgains the record's face planes, each end step's exposed face map, theCDJoinInfoside joins and the join step partners;joined_at_endsandtrimmed_endsread the cut-back curve, each end twice (record and join reach), taking it where the two agree.src/partition_schema_mvp.rs:attach_wall_lengthssetsWALL_LENGTH_FIELDwhere the cut-back curve is as long as the curve;src/ifc/export_content.rswrites it asLength.examples/probe_re252_wall_ends.rs,tools/re/wall_length_vs_ends.py(the rule, scored against Revit'sLength, and Revit's exportedAxisplaced along each wall's curve).-f holdout=truescoresresearch/holdout-models.tsv(the flowbim.ee house and two 255ribeiro projects, no licence stated) fetched from their sources;tools/ci/scrub-holdout-results.shreduces their results, and BIMcollab's (also unlicensed, RE-198), to summary counts before upload. The 26 artifacts of the 24 earlier runs that uploaded BIMcollab's full results were deleted (the maintainer, 2026-10-26).reports/element-framing/RE-252-wall-length.md, the moat addendum, README's base quantities row,docs/supported-profile.md, W7 indocs/release-1.0-criteria.md,changelog.d/added/wall-length.md; Core Interior's witness observations (+38IfcQuantityLength).Testing
This change against
main, unfiltered: Measure 40434067592 (-f nordic=true -f r2025=true, every scorer). Office as built: quantities equal 20,247 → 20,335, different 1 → 1, Revit does not write 0 → 0; at permit 20,151 → 20,232, 1 → 1, 0 → 0; R2025: wallLengthequal on 46 of 117, none different. Core Interior's 38 and RE1 Architecture's 1 counted apart (no base quantities in their exports). Every other scorer's output unchanged.Held out: 40433993376 (
-f holdout=true): the flowbim.ee house'sLengthequal on 5 of 59 walls, none different; the 255ribeiro projects get none. (Found there too, unrelated: a wallWidthdifferent on 1 ofteste_export_2025's 3 walls, W7: a wall's Width differs from Revit's on 1 of 3 walls of a held-out Revit 2025 model #1048.)Witness: Core Interior's two observations refreshed from the run's
witness-*.json;tools/ci/witness-verdict.pyreplayed with CI's arguments: PASS on both,verdict.jsonunchanged.Verified end to end on real Revit files (BIM4LCA office, VTT, CC BY-SA 4.0; puzzbobb's R2025 models, Apache-2.0; Core Interior and RE1, MIT; held out, the flowbim.ee house and 255ribeiro's projects, no licence stated, counts only)
Witness observations refreshed in this PR
Audit-honesty checklist
changelog.d/added/wall-length.mdexamples/, report and dated moat addendumLegal and contribution hygiene
I declare that this format finding comes only from public byte observations of the reference models and Revit's own exports of them (CLEANROOM.md source 1) and from reading Autodesk's open-source exporter revit-ifc (source 5:
LengthCalculator,WallExporter,PropertyUtil.CreateWallBaseQuantities, cited, not copied); no Autodesk or ODA SDK source, disassembly or NDA material was used.Breaking changes
None.
Related issues
Refs #1046 (step 1 of 3), #1016, #1048.