Skip to content

fix(research): a Revit 2015 to 2023 wall record's control joins are read, and a Revit 2023 curtain wall gets its Length (#1584) (RE-364) - #2037

Merged
DrunkOnJava merged 6 commits into
mainfrom
fix/1584-wall-joins-pre2024
Nov 15, 2026
Merged

DrunkOnJava merged 6 commits into
mainfrom
fix/1584-wall-joins-pre2024

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

The native wall reader took every ElementId through native_json::element_id, which reads /m_id/m_id64 only. A Revit 2015 to 2023 save holds /m_id/m_id (RE-280), so a wall record's control joins, side joins, exposed faces, step partners and type came back empty there, although the records hold them (RE-364 section 10, #2035). The reader now reads either shape, as native_wall_types and native_wall_cuts do, and the Length rule runs on those releases too.

Runs R and H read the two effects apart (R the reads, on branch measure/1584-reads; H the Length rule on top); run F reads this head against main.

Motivation

#1584: RE-364 sections 5 and 6 leave Length, the side areas, footprint and volumes off Revit 2015 to 2023 walls for want of the control joins. This is the reading and the first of those values. The areas, footprint and volumes, and the angled walls of 2015 to 2020, stay their own pull requests.

Changes

  • src/research/native_json.rs: identifier_u64, the unsigned form of identifier_i64.
  • src/research/native_walls.rs: the ElementIds of the control joins, side joins, exposed faces, step partners and the wall's type go through identifier_u64; a step's top-join, cut-pair and base-join ids stay 2024-shaped on purpose (see Testing). The one step id read in either shape is the partner of a clean, cut or embed step (NativeWall::partners), which only decides whether a cut-back length can be trusted.
  • src/research/partition_schema_mvp/walls.rs: attach_wall_lengths runs on 32-bit releases too; two comments that said the joins read empty say what is so.
  • reports/element-framing/RE-364-2015-2023-wall-lines-and-joins.md section 11, docs/format-reconnaissance.md, docs/contribution-map.md, changelog.d/fixed/1584-wall-control-joins-2015-2023.md.

Testing

No local build; fast CI, then Measure. Rows registered before each run is read.

What the first two heads showed (read, and acted on). Head 27f9090c read every id in either shape; Measure 43668542421 (against main at f961f2aa) moved 7 exports, all of Revit 2015 to 2023, and the kept exports of the rme_basic 2023 save held to the 2024 save showed why one of them was wrong: reading a step's ids started the wall top cover (RE-267) on a release it is not measured on. 5 of 6 walls took wall_top_cut_at_covering_floor where the 2024 save has wall_top_stepped_at_covering_floor (the same covering floor, a flat top where 2024 steps it), and wall 573321 lost the Height the 2024 save writes. The third head, 22e4013e, returns the three step-id reads to the 2024 shape and says why in the code. What stays moved: the control joins, side joins, exposed faces, partners and the wall's type.

Two things from the first heads that still hold: the Length rule gave Qto_CurtainWallQuantities.Length on Revit 2023 curtain walls, equal to the 2024 save's on all of them (34 of 34 on rac_advanced, 9 of 9 on rac_basic, 33 of 33 on rme_basic; Measure 43670589212 with keep_ifc, save_pair_props.py), and no ordinary wall's Length on 2015 to 2022 (the 2024 save writes one on 1 rac_advanced wall, 2 of rst_basic's and 10 of rme_advanced's). These are re-read on the third head below.

Run R, 43671572302: the reads alone (branch measure/1584-reads, e4aa0767) against main at f961f2aa, unfiltered with samples, nordic, r2025, holdout, racadv and BIMcollab. Rows registered before it was read, and what it read:

  1. Met. Every export of a Revit 2024 to 2027 file is byte for byte main's (126 of 127 exports are, the sample saves and the racadv pairs and BIMcollab among them); every diagnostics.json too but for the new decoded.walls_type_confirmed list on 36 files of 2015 to 2023.
  2. Met. same-project gates pass.
  3. Met. No wall's BodyHeightSource, TopCoverElementId or Height changes on any sample save of 2015 to 2023, and none of those exports moves: the only export that does is the held-out Revit 2021 project's.
  4. Met, on counts only. The one export that moves is that project's, whose Revit export is IFC2X3 (counted apart): angled walls within 0.001 ft of Revit's ends go from 124 to 167 of 390 (0.1 ft: 126 to 173; 1 ft: 360 to 363; the largest miss 5.783 ft before and after). No Revit IFC4 export of a 2015 to 2023 file is among the exports that move.
  5. Met. No Length appears; nothing in W7 moves.

Run H, 43671576196: head 22e4013e against run R's head; the difference is the Length rule on 2015 to 2023.

  1. Met. Only exports of Revit 2021 to 2023 move (5 of 127: Einhoven, the held-out Revit 2021 project and the 2023 saves of rac_advanced, rac_basic and rme_basic), and only by Length. Every written Length is Qto_CurtainWallQuantities.Length, equal to the same project's 2024 save on all of 34, 9 and 33 curtain walls (save_pair_props.py on the kept exports, Measure 43670589212 and, for rme_basic at this head, 43674102994), none different, none on a wall the 2024 save lacks one for.
  2. Narrower than hoped. 2023 only among the samples: none of the 2015 to 2022 sample saves gains a Length, and no ordinary wall of any sample does (the 2024 saves write one on 1 wall of rac_advanced, 2 of rst_basic, 10 of rme_advanced). Why is not decoded.
  3. Not comparable. No untouched Revit IFC4 export of a 2015 to 2023 file holds one of these walls' Length; the held-out Revit 2021 project's 8 are values its IFC2X3 export does not write, counted apart, and Einhoven's one has no Revit export to compare (Measure scores it by mcp_answers_vs_ifc and space_kinds_vs_ifc only), so it rests on the rule that is equal to the 2024 save on the samples.
  4. Met. same-project gates pass; nothing in W7 different moves; no side area, footprint or volume appears.

Run F, 43675013797: this head, a534c3e3 (the src changes since 22e4013e are three comments), against main at 655ed72c, the same inputs. Row: the exports that move are exactly the union of R's and H's (the held-out Revit 2021 project, Einhoven and the three 2023 saves), every other export is main's byte for byte, same-project gates pass on this head.

Not measured: reading a step's ids on 2015 to 2023 (the wall top cover and the areas of walls joined to floors there, which moved rme_basic 2023 the wrong way on the first head), the angled walls of 2015 to 2020 trimmed at their joins (no sample save of those years moves), and anything beyond the runs above. RE-364 section 11 holds all of it.

Audit-honesty checklist

  • Changelog fragment, RE-364 section 11, docs/format-reconnaissance.md and docs/contribution-map.md updated from the read runs; the measured commits are archived under refs/archive/2026-11-15/cited/.
  • No emojis, no private paths.
  • Reproduce commands name commits.

Legal and contribution hygiene

  • Apache-2.0; clean-room: only byte observations of Autodesk's public sample projects and the schema's own field names.

Breaking changes

None.

Related issues

Part of #1584.

…ape the schema saves it in, so a Revit 2015 to 2023 wall record's joins, steps and type are read (#1584) (RE-364)

native_walls took every ElementId through native_json::element_id, which
reads /m_id/m_id64 only; a 2015 to 2023 save holds /m_id/m_id (RE-280). Its
control joins, side joins, exposed faces, step partners and type came back
empty there. It now reads them as native_wall_types and native_wall_cuts do.
…ter releases take, now its control joins are read (#1584) (RE-364)

attach_wall_lengths was kept off on 32-bit releases because their records
were read without their control joins. They are read now, so the rule
runs on every release it can.
…rules they start are measured on 2024 and later (#1584) (RE-364)

Reading them on Revit 2015 to 2023 started the wall top cover and the areas
of walls joined to floors there: on rme_basic 2023, 5 of 6 walls took a flat
cover where the 2024 save steps the top, and a sixth lost its Height (Measure
43668542421). Control joins, side joins, exposed faces, partners and the type
are still read in either shape.
… and the curtain walls' Length on Revit 2023; the comments that said the joins read empty say what is so (#1584) (RE-364)

Measure 43671572302 (the reads, 126 of 127 exports unchanged) and 43671576196
(the Length rule on top, 5 of 127 move, curtain walls' Length equal to the
2024 save's on all of 76). The step ids stay in the 2024 shape: reading them
started the wall top cover on rme_basic 2023.
@DrunkOnJava DrunkOnJava changed the title fix(research): a Revit 2015 to 2023 wall record is read with its joins, and its Length is written as the later releases write it (#1584) (RE-364) fix(research): a Revit 2015 to 2023 wall record's control joins are read, and a Revit 2023 curtain wall gets its Length (#1584) (RE-364) Nov 15, 2026
…s are named as the one step id read in either shape; identifier_u64 says what it returns for an id of 0 (#1584) (RE-364)
@DrunkOnJava
DrunkOnJava merged commit f99403c into main Nov 15, 2026
65 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1584-wall-joins-pre2024 branch November 15, 2026 04:49
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