Skip to content

research(elements): Revit cuts a wall's top at the floor its top join names, on 63 of 65 office walls, but nothing tells the 5 it leaves (#1067) (RE-258) - #1071

Merged
DrunkOnJava merged 20 commits into
mainfrom
re/wall-cuts
Oct 28, 2026
Merged

DrunkOnJava merged 20 commits into
mainfrom
re/wall-cuts

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

RE-258 measures where rvt-rs's walls stand against Revit's export, base and top. On the BIM4LCA office they differ at one end only: 65 tops and 20 bases as built, 70 and 24 at permit. On Core Interior's 360 walls and puzzbobb's 117 R2025 walls, both ends match.

Revit cuts a top at the underside of a floor that the wall's top join names (JoinToRoofGStep with m_baseOrTop 1), over the wall's middle. That rule gives 63 of 65 office tops as built and 68 of 70 at permit, but it also cuts 5 walls at each stage that Revit leaves whole. Neither file tells those apart, so no wall is cut. The base waits on the footings, which rvt-rs draws as boxes and Revit draws sloped.

tools/re/wall_heights_vs_ifc.py is new, and Measure now runs it on every model.

Motivation

#1067 (W6, and W7's walls' Height, which RE-257 showed is the body's span). Before writing a cut rule, the question was whether one exists that is never wrong.

Changes

  • tools/re/wall_heights_vs_ifc.py (new) compares each wall's base and top with Revit's body, and the floors', roofs' and footings' own heights. It prints the extents, which floors cross which wall ends, and each floor's underside over a wall's middle in both files. It fits the 40.33 degree turn between the office's two plans by least squares (residual 0.016 ft). The pieces either exporter writes under one Tag (a floor sketched as separate loops) count as one body, and only each product's Body representation is meshed, with the products left out counted (Codex's reviews).
  • tools/ci/measure-reference-models.sh: Measure runs it on every model (56 s on the office, 8 s on Core Interior).
  • reports/element-framing/RE-258-wall-cuts.md, an addendum in docs/rvt-moat-break-reconnaissance.md, changelog.d/research/wall-cuts.md.
  • README.md: the wall height gap says Revit cuts at one end, mostly at a floor the wall's top is joined to.

Testing

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

  • tools/check-local.sh passes: this PR's CI.
  • Verified end to end on real Revit files: Measure 40509396187 (every model), 40515952214 and 40523970600. Those runs measured the branch before its rebase, kept under refs/archive/2026-10-27/re/wall-cuts. The tallies are in the report. 40556720844 re-ran every model with the merged-pieces scorer (5820d7b), and 40720727607 with it meshing only the Body (7df1774): its output is byte-identical to 40556720844's on all 29 scored models, nothing is left out, and every count in the report is unchanged.
  • N/A: the IFC exporter is unchanged.
  • N/A: performance.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • Changelog fragment under changelog.d/research/
  • The limitation stays documented: Walls drawn taller than Revit's body on 78 of the BIM4LCA office's walls (RE-257) #1067, the README gap row
  • 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
  • Reverse-engineering finding: scorer, report and dated addendum. The record fields come from the existing RE-251 probe.

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk proprietary content
  • No fixtures

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); no Autodesk or ODA SDK source, disassembly or NDA material was used.

Breaking changes

None.

…s and footings crossing a wall's ends are Revit's cuts (#1067)
…ooting crossing each wall's end, and whether Revit cuts there (#1067)
…oor lies over the wall's middle or beside it (#1067)
…oof's underside over a wall's middle, in both files (#1067)
… names, on 63 of 65 office walls, but nothing tells the 5 it leaves (#1067) (RE-258)
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 27, 2026 14:53

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6ab1d5ac37

ℹ️ 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".

Comment thread tools/re/wall_heights_vs_ifc.py Resolved
@DrunkOnJava
DrunkOnJava disabled auto-merge October 27, 2026 18:05

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5820d7beec

ℹ️ 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".

Comment thread tools/re/wall_heights_vs_ifc.py Resolved
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 27, 2026 18:16
@DrunkOnJava
DrunkOnJava disabled auto-merge October 28, 2026 15:54
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 28, 2026 16:19
@DrunkOnJava
DrunkOnJava merged commit 53e2149 into main Oct 28, 2026
31 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/wall-cuts branch October 28, 2026 16:24
DrunkOnJava added a commit that referenced this pull request Oct 30, 2026
…rs it; the rule is exact at permit and misses one wall as built (#1067) (RE-267) (#1151)

## Summary

RE-267 reads why RE-258's rule cut 5 office walls per stage that Revit's
export left whole: it did not leave them whole. Revit cuts a wall's top
at the underside of the floor its top join (or a cut pair) names over
the part of the wall's plan the floor covers, and leaves the rest at
full height, so the highest point RE-258's scorer read does not move. A
rule that cuts a top only where the named floor covers the whole of the
wall's plan, and is level across it, gives 64 of the BIM4LCA office's 65
cut tops as built and 70 of 70 at permit, and cuts no wall that Revit
leaves whole. One wall as built is cut by Revit with a 0.085 ft stub
past the floor's edge, nothing read explains it, and a part-covered wall
needs a stepped top an extrusion cannot draw. The exporter is unchanged
and no wall is cut yet.

## Motivation

#1067 (W6, and W7's walls' `Height`, which RE-257 showed is the body's
span). RE-258 asked what in the file separates the walls Revit cuts from
the ones it leaves; the answer is the plan, not a field.

## Changes

- `reports/element-framing/RE-267-wall-top-cover.md`: the finding, the
tallies, what was compared and does not separate, the one wall, and the
correction of RE-258 §3's claim that the two stages' records and floors
are the same (they are not: the walls' plans differ by 0.03 ft).
- `tools/re/wall_top_cover_vs_ifc.py` (new, run when Measure names it
with `-f scorers=wall_top_cover_vs_ifc`: it takes 68 s per office model
and 21 s on Core Interior, and its rule is not shipped, so it stays out
of the default list): reads each wall's top along its length in both
files, the horizontal faces of its upper half, each floor's underside
along and across it, and the part of its plan outside each floor. It is
the reproduce command's dependency.
- `probes/examples/probe_1067_native_dump.rs` (new): every wall's step
records and relations and saved parameters, and the records of the
floors and elements they name.
- `changelog.d/research/wall-top-cover.md`, the dated addendum in
`docs/rvt-moat-break-reconnaissance.md`, the #1067 row of
`docs/contribution-map.md` and a pointer in RE-258, as RE-258's own PR
(#1071) did.

## Testing

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

- [ ] `tools/check-local.sh` passes: this PR's CI. (No local build: the
probe is built by Measure; `python3 tools/release/changelog.py check`
and `tools/ci/api-doc-ids.py` pass.)
- [x] Verified end to end on real Revit files: Measure
[41075127575](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41075127575)
(both offices, probe and scorer),
[41076305345](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41076305345)
(every model),
[41077948567](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41077948567)
(the probe on Core Interior, RE1 and the R2025 models) and
[41079569865](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41079569865)
(every model, the scorer also reading each floor's level across the
wall). BIM4LCA office files: CC BY-SA 4.0
(`research/bim4lca-measure.tsv`); R2025: Apache-2.0
(`research/r2025-models.tsv`). The runs measured the branch's commits,
kept under `refs/archive/2026-10-30/re/1067-wall-top-cuts` once it
lands.
- N/A: the IFC exporter is unchanged.
- N/A: performance.

The rule also cuts none of Core Interior's 360 walls, RE1 Architecture's
7 and the R2025 models' 138.

| | as built | at permit |
|---|---:|---:|
| tops Revit cuts (highest point) | 65 | 70 |
| cut by the rule (top join / cut pair) | 62 / 2 | 68 / 2 |
| not cut by the rule | 1 | 0 |
| walls the rule cuts that Revit leaves whole | 0 | 0 |
| Revit's body cut somewhere on its centre line (RE-258: the highest
point only) | 94 | 96 |
| walls with exactly one named level floor where Revit's full-height
face area equals the plan outside the floor (to 0.002 ft²) | 79 of 83 |
83 of 87 |

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR: nothing
shipped changes; the limitation (#1067) stays documented
- [x] Changelog fragment under `changelog.d/research/`
- [x] The limitation stays documented: #1067, `docs/contribution-map.md`
- [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
- [x] Reverse-engineering finding: probe, scorer, report and dated
addendum. The office files are third party and not committed; the report
names only the elements RE-258 already published and describes the
others by role.

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No fixtures

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); no Autodesk or ODA SDK source, disassembly or
NDA material was used.

## Breaking changes

None.

## Related issues

Refs #1067, #1016.
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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