Skip to content

feat(ifc): Revit 2025 beams and tread landings, held to the 2024 save (#1440) (RE-345) - #1452

Merged
DrunkOnJava merged 14 commits into
mainfrom
feat/1440-2025-beams-landings
Nov 5, 2026
Merged

DrunkOnJava merged 14 commits into
mainfrom
feat/1440-2025-beams-landings

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

Summary

Revit 2025 saves now draw beams along their axes and tread landings as their treads, and read a sketch line's arcs, as 2024, 2026 and 2027 do. No Revit export checks any of it on 2025. Each is held to the same Autodesk project's 2024 save, which cannot catch an error that save shares. Shaft openings are cut on Revit 2024 only (Griffin's decision, 2026-11-05): the only shafts measured on 2025 cut nothing, so the check could not catch a bad cut; this turns off the cut #1426 landed on 2026 and 2027, and the export counts the shafts it did not cut.

Motivation

#1440. BEAM_AXIS_SUPPORTED_REVIT_VERSIONS and NATIVE_LANDING_REVIT_VERSIONS were [2024, 2026, 2027] after #1426. The beam list also gated the arc, circle and shaft line readers, so the 2025 save drew rac_advanced's floor 139803, roof 201262 and ceiling 147534 with the chord of an arc (floor: 24 vertices against 170, 440.512245 m3 against 441.111228 m3).

Changes

  • src/research/partition_beam_axes.rs: the beam list gains 2025; the arc reader gets its own list, SKETCH_CURVE_SUPPORTED_REVIT_VERSIONS, [2024, 2025, 2026, 2027]; the shaft cut gets SHAFT_OUTLINE_SUPPORTED_REVIT_VERSIONS, [2024], which attach_shaft_voids, shaft_outlines and scan_sketch_circles (its only consumer is the shaft) follow; the shaft's lines are read with the release-free scan_first_bounded_lines.
  • src/research/partition_element_records.rs, src/ifc/mod.rs: scan_shafts_not_cut and the new skipped item shaft_opening_not_cut (class ShaftOpening), documented in docs/export-diagnostics.md and docs/schemas/export-diagnostics.schema.json.
  • src/research/native_stairs.rs: NATIVE_LANDING_REVIT_VERSIONS gains 2025 (a monolithic landing stays its box).
  • tools/re/bodies_across_saves.py, tools/ci/check-bodies-across-saves.sh, tools/ci/measure-reference-models.sh, tools/ci/same_project_verdict.py (+ its pure-helper test): a 2025 save is held to the 2024 save; REQUIRED and OUTLINE_LEAST are per year; the gate counts the elements whose sketch holds an arc. The verdict expects the 2025 samples.
  • probes/examples/probe_824_slab_arcs.rs: floor 139803 and ceiling 147534 are default owners.
  • Docs: reports/element-framing/RE-345-2025-beams-landings-arcs.md, docs/status.md, docs/supported-profile.md, docs/evidence.md, docs/compatibility.md, docs/maintaining.md, docs/export-diagnostics.md, docs/support-matrix.json, docs/format-reconnaissance.md, README.md, changelog.d/added/1440-2025-beams-landings.md (the feat(ifc): Revit 2026 and 2027 beams, stair runs, landings and sketch lines (#421) #1426 fragment loses its shaft claim).

Testing

Unit tests are banned: nothing here adds one (the verdict script's existing pure-helper test only moves its expected sample count).

  • tools/check-local.sh: not run locally (CI is the build).
  • Verified end to end on real Revit files, on Autodesk's sample projects (fetched, not stored) and the models with Revit's own exports. The run that judges this head is Measure run 42091457764 (head 830a4d9, unfiltered: base=main, nordic, r2025, holdout, samples for every year, keep_ifc, no ifc_flags), success. Earlier filtered runs: 42056591627 (beams and landings only), 42056599984 and 42062038214 (before the shaft decision).

What run 42091457764 shows, and what it does not:

  • The verdict: the same-project gates check run on the head is success: "pass: 9 samples held to their earlier saves, and the Areas on 4 saves". Read per sample, all nine bodies_across_saves.txt end PASS. Areas: 25 Areas with a body on each of 4 saves, every field equal.
  • 2025 against 2024: 42 beams and tread landings of rac_advanced (37 IfcBeam, 5 IfcSlab landings) and 354 IfcBeam of rst_basic equal per element (391 beams, 5 landings); 86, 13 and 5 sketch outlines equal.
  • 2026 and 2027 (the path the rewritten gate had not run on): outlines 82, 12 and 5 against the 2024 save, each also equal to the 2025 save's; stair runs 10, 2 and 1 compared against the 2025 save; beams and landings 42, 0 and 354. rac_advanced's roof 201262 is a record box there (counted among 4 IfcRoof left as boxes), as RE-341 section 5 holds roofs to the box solve.
  • ifc.sha256 against main: 111 exports; 3 move, the three Autodesk 2025 samples. The other 108 are main's, among them all 10 Autodesk samples of 2026 and 2027, the 4 BIM4LCA office files, Core Interior, Einhoven, the 4 RE1 models, the 24 R2025 models and all 19 held-out and spent models. main still cuts shafts on 2026 and 2027, so no 2026 or 2027 export, held-out included, has a shaft that cut something.
  • Floor 139803, read from its curves: line 141561 reads as an arc inside its record box and not as a line (centre (16.758, -11.783, 12.467), radius 11.4829 ft, angles +-0.671678 rad), identical in the 2024 and 2025 saves; the chord's missing segment (2.26 m2) times an implied 0.265 m thickness is the 0.599 m3 gap.
  • Arc elements compared: of 7 owners whose sketch holds an arc, 2 are drawn outlines compared equal on 2025 (a floor and a roof, one project); the ceiling and a railing are record boxes in both saves; 3 have no body.
  • Shaft openings (shaft_opening_not_cut): rac_advanced 2025, 2026 and 2027 hold 2 each, every other sample of those years 0, the 24 R2025 models and 4 RE1 models none. They cut nothing in the 2024 or 2025 save. The cut is measured on 2024 only (Snowdon Towers architectural: 9 shaft records, 7 voids equal a shaft's outline; structural: 1, none). Held-out models carry no shaft count; none of the 5 of 2026 and 2027 moves.
  • The 24 R2025 models and the four RE1 models (Revit 2025): 0 beams, 0 tread landings, 0 landing slabs in all 28; the arc and shaft census (0 floors, ceilings or roofs with an arc, 0 shafts) covers the 24 R2025 models and RE1 Architecture only. Their exports are byte for byte main's, so no scorer moved; that is no regression and it is not evidence for these readers.
  • Held-out and spent models (counts only): 19 of 19 byte for byte main's, 3 of them Revit 2025 files and 5 of 2026 or 2027. None moves in any category, none toward or away from Revit's export; they hold no beam and do not exercise the readers either.
  • What moves: the three Autodesk 2025 samples only. rac_advanced: 29 + 8 beams and 5 landings leave the record-box set, floor and roof take their arcs, the ceiling returns to its box; rst_basic: 345 + 9 beams; rac_basic: +2 entities and +3 parameter values, settled from run F's kept IFCs (head against main: 2 more IfcPropertySet, 6 more IfcPropertySingleValue including TypeName and Reference 220mm Thickness, 2 more IfcRelDefinesByProperties): its monolithic landing slab's type name; the body is still the record box.
  • Not measured: a natively authored 2025 beam; quantities and property sets of the new bodies (the gate compares bodies); a monolithic landing on 2025; a shaft cut on any release but 2024.

Audit-honesty checklist

  • README and docs name what no Revit export checks, in the same words as RE-345.
  • A changelog fragment, changelog.d/added/1440-2025-beams-landings.md; the superseded caveats in the feat(ifc): Revit 2026 and 2027 beams, stair runs, landings and sketch lines (#421) #1426 fragment are removed.
  • Resolved limitation (2025 beams, landings and arcs not drawn): docs/status.md, docs/supported-profile.md, the support matrix.
  • New limitations stated: the same-project check cannot catch an error the 2024 save shares; two arc elements are the whole evidence for the arc reader; no shaft cut outside 2024.
  • No emojis, no private paths.
  • Reverse-engineering finding: probes/examples/probe_824_slab_arcs.rs and probe_re96_sketch_arcs.rs reproduce it; addendum in docs/format-reconnaissance.md.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk proprietary source, decompiled internals or NDA material (CLEANROOM.md); no new fixtures.

Breaking changes

None for the API. Revit 2025 exports of files with beams, tread landings or arcs change (Autodesk's rac_advanced, rac_basic and rst_basic do). Revit 2026 and 2027 exports no longer cut shaft voids from floors, ceilings and roofs (#1426 had turned that on); none of the files held here changes by it (run 42091457764).

Related issues

Refs #1440. Follows #1426 and RE-341.

…eaders on their own list (#1440) (RE-345)

The beam and landing release lists gain 2025, the sketch line arc and circle readers and the shaft line reader move to a list of their own that still omits it, and bodies_across_saves.py holds a 2025 save to the 2024 save.

Refs #1440
…or the Measure run that scores them (#1440) (RE-345)

Refs #1440
…cord box, not the chord outline (#1440) (RE-345)

The arc and circle readers stay off on 2025: no R2025 model or RE1 Architecture holds a floor, ceiling, roof or shaft with an arc or circle to score them. The arc record is still read there to tell that a sketch holds one, so the record-box solve's chord outline, which the sketch's own curves show to be short, is not drawn.

Refs #1440
…2026 and 2027 do, and the arc detection is removed (#1440) (RE-345)

Reverts 9464a84. The gate holds rac_advanced's floor 139803, ceiling 147534 and roof 201262 on 2025 equal to the 2024 save with the arc reader on (run 42056599984), and no Revit export of a 2025 floor, ceiling, roof or shaft with an arc or circle exists to score it.

Refs #1440
…and ceiling equal to the 2024 save, and counts the elements whose sketch holds an arc (#1440) (RE-345)

Refs #1440
…eld to the 2024 save, and what no Revit export checks (#1440) (RE-345)

Refs #1440
@DrunkOnJava DrunkOnJava added the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 5, 2026 16:49
@DrunkOnJava DrunkOnJava removed the ready-when-green Draft whose code is complete: marked ready for review once its fast CI passes label Nov 5, 2026
DrunkOnJava added a commit to puzzbobb/rvt-rs that referenced this pull request Nov 5, 2026
…345 being taken (DrunkOnJava#1190) (RE-346)

RE-343 is DrunkOnJava#1438's door and window flips, RE-344 is DrunkOnJava#1442's parameter ids and RE-345 is DrunkOnJava#1452's Revit 2025 beams. The report, the readers' doc comments, the scorers, the docs and the changelog fragment cite RE-346.

Refs DrunkOnJava#1190
DrunkOnJava added a commit to puzzbobb/rvt-rs that referenced this pull request Nov 5, 2026
… the reference year or before (DrunkOnJava#1190) (RE-346)

A 2025 sample is the reference of the later saves, so a run that scores it as a candidate (DrunkOnJava#1452) reads not applicable, not PARTIAL, for the checks held to the 2025 save.

Refs DrunkOnJava#1190
…ease counts the shafts it did not cut (#1440) (RE-345)

Griffin's decision, 2026-11-05: the only shafts measured on 2025 cut nothing, so the same-project check could not catch a bad cut. The shaft cut gets its own release list, [2024], which turns off the cut #1426 landed on 2026 and 2027; the export's shaft_opening_not_cut skipped item counts the shafts left uncut. Also: the count of models with Revit's own 2025 exports is 25, the shaft sentence of RE-345 names 2025, the 104 outlines of the three samples, and RE-341's and the support matrix's stale 2025 caveats are annotated.

Refs #1440
…pass, three exports move, no held-out export moves (#1440) (RE-345)

Run 42091457764, head 830a4d9. Also settles rac_basic's +2 entities (its monolithic landing's type name) from the run's kept IFCs, and states that 2026 and 2027 hold rac_advanced's roof as a record box. No src or gate file is touched.

Refs #1440
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 5, 2026 20:20
@DrunkOnJava
DrunkOnJava merged commit e9f4c59 into main Nov 5, 2026
45 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/1440-2025-beams-landings branch November 5, 2026 20:37
DrunkOnJava added a commit to puzzbobb/rvt-rs that referenced this pull request Nov 5, 2026
…on, the matrix rows for 2026 and 2027, the pairing rule (DrunkOnJava#1190) (RE-346)

The corrected cuts of six rac_basic walls land and their bodies still differ as on main; the census admits 16 pinned walls and counts roofs left as record boxes; the flips pass, the gate's reach and the unmeasured 2027 pins are said as they are.

Refs DrunkOnJava#1190
DrunkOnJava added a commit that referenced this pull request Nov 5, 2026
… plan topology alone, marked unchecked (#1434) (RE-333) (#1450)

## Summary

Closes #1434. May the plan topology draw an Area when the partition
copies of its lines conflict? **Yes, for a conflict that stays in place,
and for nothing else.** The 2021 save of Autodesk's `rac_advanced`,
which holds both states of the model (16 lines with two copies that
differ in box by 0.0246 ft, each naming the same Level and scheme at the
same height), now writes its 25 Areas, from the plan topology alone.
They say `SpaceOutlineSource` `area_plan_topology_unchecked`, and a gate
holds the 2021 save to the 2022 save.

**The rule.** A line whose copies disagree but share their Level, scheme
and height can lie in one group only. That group is `Group::Conflicted`,
no longer `Unreadable`: the lines' arrangement is not read (which copy
is current is not known from the partitions), and the topology, which
reads the current copy of each line and is checked against the area
Revit saves for the loop and the Area's point, draws it. An Area may
name such a line; the lines it names must still bound its region. A copy
that names another Level or scheme or lies at another height, a design
option, a stray height, a missing line and a line off the Level still
make the group unreadable. Where the topology is not read, the Area
keeps `boundary_lines_not_readable`.

**The evidence** (RE-333 section 10):

- The 2021 save's topology regions equal the 2022 save's, 25 of 25
(vertex count, holes, arcs, area), and differ from the 2020 save's on
exactly the 7 Areas where the 2020 and 2022 saves differ (0.23 to 2.77
ft2). The native current copy of the 2021 save is the later state.
- Measure run 42054772905 (unfiltered, `-f base=main -f nordic=true -f
r2025=true -f samples=true -f racadv=true -f holdout=true`, no
`ifc_flags`, head 240989f with main at dd3dc11 merged): green,
`Same-project gates` green. **One model of 117 exports moves, the 2021
`rac_advanced`**; the other 116 are byte for byte main's. Of the 93
models with public diagnostics it is the only one with a group-level
refusal on main (22 `boundary_lines_not_readable`, 3
`named_lines_not_in_scheme_and_level`, now 0). It writes 25 Areas with a
body, 25 `native_area_plan_topology`; 25 more property sets and swept
solids. Run 42030399700 on 9b5f0bc (before the marker below) gave the
same counts.
- **Exercised: 1 model, 25 Areas.** The 24 models whose diagnostics are
kept as counts only (held-out and other unlicensed) do not move, so none
exercises the change. The held-out Revit 2021 Areas model is 6 in both
files, 0 only in rvt-rs's, 2 only in Revit's, as on main: `only in
rvt-rs` 0 holds and says nothing about this change.
- **No public file has a design-option area line**, so that refusal (and
the stray height, missing line, off-level line and moved copy) is kept
by construction and shown only by failure-first tests of the pure
helpers `group_arrangement` and `same_place` on synthetic data, not on a
Revit file.
- The gate, `tools/re/areas_across_saves.py 2022=... 2021=...`, in the
shard that holds both saves: 25 compared, every field equal on 25
(GlobalId, number, name, storey, outline source, body area, top surface,
height, lowest vertex), none missing or extra. The 2024 to 2027 gate
still passes. `tools/ci/same_project_verdict.py` requires the 2021 gate
when the run's sample years hold both saves (so `sample_years="2024
2027"` does not need it) and fails on a result that fails whether or not
it was required; checked on the shards of run 42054772905 (success with
and without the 2021 gate required) and by its tests.

**The marker (Griffin's decision, AskUserQuestion, 2026-11-05).** The
2021 save's Areas say `area_plan_topology_unchecked`. Their outlines are
the later state of the model; the only Revit export of the project shows
the earlier state, which equals 18 of the 25 and does not show the other
7. His marker rule of the same day is by release (2025 to 2027
unchecked, 2015 to 2024 `area_plan_topology`), so the 2022, 2023 and
2024 saves, the same later state, keep `area_plan_topology`; this save's
Areas are his separate decision, made in
`partition_area_records::area_unchecked` beside the release rule. Every
`IfcSpace` carries `SpaceKind` (the new Areas say `area`).

**Changes**

- `src/research/partition_area_records.rs`: `Group::Conflicted`,
`BoundaryLines::moved`, `same_place` (it tests the Level, the scheme and
the height, not the box), the topology-only path in `locate`, the
named-line rule in `draw_area`, `area_unchecked`; 15 pure-helper tests.
- `src/ifc/export_content.rs`, `rvt-mcp/src/schema.rs`,
`docs/mcp-tools.json`, `docs/mcp-tools.md`, `docs/mcp.md`: the unchecked
value's description. **The MCP contract changes**; the JSON is edited to
the text the server writes and the markdown re-rendered with
`render-mcp-tools.py`, so CI's `tool_contract_is_committed` is the
check.
- `tools/ci/measure-reference-models.sh`,
`tools/ci/check-areas-across-saves.sh`,
`tools/ci/same_project_verdict.py` and its tests,
`.github/workflows/measure.yml`, `tools/re/areas_across_saves.py`: the
second gate.
- `reports/element-framing/RE-333-area-plan-topology.md` section 10; the
Area paragraphs of `docs/rooms.md`, `docs/status.md`,
`docs/evidence.md`, `docs/supported-profile.md`,
`docs/support-matrix.json`, `docs/export-diagnostics.md`;
`changelog.d/added/1434-areas-2021-save.md`.

## Testing

Unit tests are banned except for pure helpers: the tests added are
failure-first tests of `group_arrangement` and `same_place`, which read
no file. The gate's outline-source field, not a test, checks the marker.

- [x] Measure 42054772905 (unfiltered; see above) and 42030399700.
- [x] `python3 tools/release/changelog.py check`, `python3
tools/ci/api-doc-ids.py`, `python3
tools/ci/test_same_project_verdict.py` (30 tests), `rustfmt --check` and
`bash -n` of the scripts pass locally; no local build, per this
checkout's rules, so CI compiles and runs the Rust tests.
- [ ] A samples-only run (`-f samples=true -f
scorers=bodies_across_saves`) on the final head, after #1452 lands and
main is merged, to write the `same-project gates` check run.
- **No unfiltered rerun.** The `src/` Area code is unchanged since run
42054772905: the later commits touch `src/` only in doc comments, the
two removed tests and main's merge (door flips #1438, saved graphics
#1441, none in the Area code). The gate scripts changed after it (the
verdict, the summary, the notice), so a samples-only run on the final
head writes the `same-project gates` check run; run 42089276000 on
c912325 was green and is superseded by it.

## Audit-honesty checklist

- [x] The report says what is and is not measured: no Revit export of
the later state of the project; the design-option refusal is not
exercised by any public file; the held-out models do not exercise the
change.
- [x] A changelog fragment, not `CHANGELOG.md`.
- [x] No emojis, no private paths.

## Legal and contribution hygiene

- [x] Apache-2.0.
- [x] No Autodesk proprietary source; the corpora are fetched, not
stored (CLEANROOM.md).
- [x] No new fixtures.

## Breaking changes

None to the API. The MCP `space_outline_source` description of
`area_plan_topology_unchecked` widens (see above), and a file whose
Areas main did not write now writes them.

## Related issues

Closes #1434. Refs #1261.
DrunkOnJava added a commit to puzzbobb/rvt-rs that referenced this pull request Nov 6, 2026
Takes DrunkOnJava#1452's separate release lists for beams, sketch curves and shafts: BEAM_AXIS_32BIT_REVIT_VERSIONS stays as the beams' list for 2015 to 2023 beside BEAM_AXIS_SUPPORTED_REVIT_VERSIONS (2024 to 2027), whose comment now says what it still gates. The report is RE-362, RE-348 being main's wall end join order, and the profile rows keep main's local-only labels with this change's beam text.
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
…ne (#1190) (RE-362) (#1509)

## Summary

Revit 2015 to 2023 projects now draw beams along their location lines
and write their `Span`, `Slope`, `Roll` and `Length`, as 2024 projects
do. It's a third slice of #1190, measured against the same Autodesk
samples saved by a later release, not against a Revit export.

## Motivation

#1190 asks for each capability 2024 and 2025 have on every release from
2015 to 2027. Revit 2015 to 2023 take a branch of
`recover_partition_schema_mvp` that ends before the beam readers, so a
beam there was its record box, although walls on those releases read the
same line record (RE-114, RE-180, RE-181). `exported.body_sources` on
`main`:

| body source | `rac_advanced` 2023 / 2024 | `rst_basic` 2023 / 2024 |
|---|---|---|
| `partition_beam_axis` | 0 / 29 | 0 / 345 |
| `partition_beam_box_along_axis` | 0 / 8 | 0 / 9 |

## Changes

- `src/research/partition_schema_mvp.rs`: the 2015 to 2023 branch calls
`attach_beam_rotations` and `attach_beam_axes`.
- `src/research/partition_schema_mvp/framing.rs`: the rotation's native
read names `NATIVE_RELEASES` (its default stops at 2023; RE-280 measured
the framing on 2015 to 2022), and the line is read through
`scan_first_bounded_lines` behind the new gate. Both readers skip a beam
a column cuts (RE-122): its record box fields are the cut box's, so
`attach_beam_axes` would test a line against them and attach it where
they coincide (5 of `rst_basic`'s 31 cut beams on each of 2016 to 2023
in the first head); skipping restores `main`'s bytes on those beams and
cuts `rst_advanced`'s rotation decode from 397 beams to 64.
- `src/research/partition_beam_axes.rs`:
`BEAM_AXIS_2015_TO_2023_REVIT_VERSIONS` (2015 to 2023, renamed from
`BEAM_AXIS_32BIT_REVIT_VERSIONS`: it is not the 32-bit set, 2008 to
2023) and `beam_axis_read_on`. `BEAM_AXIS_SUPPORTED_REVIT_VERSIONS` is
left alone because it also gates `scan_bounded_lines`, which isn't
measured on these releases (#1452 has split the sketch curves and shafts
off). `line_copies` and `all_line_copies`, which only probes call, gate
on `beam_axis_read_on` too.
- `probes/examples/probe_re362_beam_lines_pre2023.rs`:
`probe_re328_beam_rejections` on 2015 to 2027, counts only, as `native
readers:` lines the scrub keeps for an unlicensed model.
- `reports/element-framing/RE-362-2015-2023-beam-axes.md`, an addendum
to `docs/format-reconnaissance.md`, `README.md`, `docs/status.md`,
`docs/evidence.md`, `docs/supported-profile.md`,
`docs/support-matrix.json`,
`changelog.d/added/1190-2015-2023-beam-axes.md`.

## 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)
- `tools/check-local.sh --corpus` passes on d6f69d9 (`integration` 300
of 300, 6 filtered out), and `cargo +1.87 check --profile ci
--all-targets` is clean. The commit was then rebased onto 6299876,
three CI-only commits that touch none of these files; `cargo fmt
--check` and `tools/ci/api-doc-ids.py` were rerun there.
- [ ] 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
- **Not against Revit's own export: no Revit export scores any beam this
rule draws on 2015 to 2023, among the models Measure fetches without a
held-out pair.** Measure run 42134881703 (head 0c39def, base `main`,
`-f bimcollab=true -f racadv=true -f samples=true -f sample_years="2015
2024"`, counts only) scored the two sources of such an export.
BIMcollab's Revit 2015 example holds 91 beams in Revit's export, and
rvt-rs draws all 91 as record boxes, on `main` and on this head: 0 drawn
by line, `Span` and `Slope` missing on all 91 as on `main`. The three.js
IFC2X3 export of `rac_advanced`, which `racadv-2015` to `racadv-2020`
are scored against, holds no `IfcBeam` (3,308 `IfcMember`, 1,349
`IfcPlate`, 176 `IfcColumn`, 75 `IfcBuildingElementProxy`), and none of
the 38 beams has an element with its Tag in it under any class. So
`Span` and `Slope` are written on 25 `racadv` beams that export does not
carry, which is what the rule does there, with nothing to score it.
Measured against the same Autodesk samples saved by a later release,
which can't catch an error that save shares. The files are the pinned
samples in `research/autodesk-sample-projects.tsv` (fetched, never
stored).
- Beams the change draws, against the later save, to 3 mm on the world
box and 0.1% on the volume (`tools/re/save_pair_bodies.py`):
    - `rac_advanced` 2015 to 2023, against 2024: 33 of 33 on each.
    - `rst_basic` 2019 to 2023, against 2024: 312 of 323 on each.
    - `rst_basic` 2017 and 2018, against 2024: 298 of 323.
    - `rst_basic` 2016, against 2024: 285 of 323.
    - `rst_advanced` 2015, against 2019: 54 of 54.
- `rst_basic` 2015 is another model (RE-181), so it has no later save.
Its 29 beams are only checked within the file.
- The 11 have the same box and another volume: the 2024 save draws those
steel beams as their type's I section (RE-103), not tried on these
releases.
- The other 14 on 2017 and 2018, and 27 on 2016, already differ in the
saves' raw record boxes with no line read (`main`'s exports, against the
2023 save: 3.9 mm, and 4.1 to 24.4 mm). Why Revit's upgrade moved them
is not decoded.
- Within each of 20 files, every beam's new body is within 3 mm of its
own save's record box. The reader requires that, so it places the
differences in the saves and doesn't show the box is right.
- `Span`, `Slope`, `Roll` and `Length` written here equal the later
save's to 1e-3, except `Span` and `Length` on 13 beams of `rst_basic`
2016, the ones whose box differs by about 25 mm. Every beam's storey and
GlobalId are as on `main`.
- Why BIMcollab's 91 beams read no line (Measure run 42139236978,
`probe_re362_beam_lines_pre2023`, counts only): the release gate passes,
every beam has a record box and element data in a partition, and none of
the 91 has a bounded line record in it (`no_line` 91, nothing refused
for its box). The line record this change reads is what Autodesk's 2015
samples hold for 33 of 34 `rac_advanced`, 29 of 39 `rst_basic` and 54 of
64 `rst_advanced` beams that RE-122 does not cut; BIMcollab's structural
model, from outside those samples, holds none, so the reach is
Autodesk's samples and no model from elsewhere has been read. No fix:
the probe shows the line absent from the window, not where it is (RE-362
§5).
- **Landing run**, Measure
[42548058739](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42548058739):
`e853e731`, this change rebuilt on `main` at `1c088750`, against that
`main`, unfiltered with held-out models, BIMcollab and `racadv`, 118
models. 91 exports are byte for byte `main`'s. The 27 that move are the
20 sample saves named above, the 6 racadv models and held-out Gdynia
2021. No 2024 to 2027 export moves, BIMcollab's 91 beams stay boxes
(#1514), and `same-project gates` passes on `e853e731`. Its figures are
those of the earlier run below.
- **Earlier run** (Measure
[42518199499](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42518199499),
head e05db36, unfiltered, with held-out models, BIMcollab and
`racadv`). Gdynia (Revit 2021, held out, counts only) is the first Revit
export to score a beam this rule draws: `Pset_BeamCommon.Span` and
`Slope` 3 equal, none different and 7 missing of 10 each; all values
equal 689 to 695, different and values Revit doesn't write unchanged. On
`racadv` 2015 to 2020, values Revit doesn't write go 342 to 392 (25
`Span`, 25 `Slope`): that IFC2X3 export holds no `IfcBeam`, so it is
counted apart.
- Byte identity, by hash in Measure run 42134881703 (Autodesk's samples
2015 to 2024, `racadv`, BIMcollab): 26 exports move and nothing else: 20
sample saves (`rac_advanced` 2015 to 2023, `rst_basic` 2015 to 2023,
`rst_advanced` 2015 and 2019) and the 6 `racadv` models. No 2024 export
moves, nor `rac_basic`, `rme_advanced`, `rme_basic`, Snowdon or
BIMcollab; 2025 to 2027 were not in that run. The local count of 11 of
206 files, "2017 to 2023", did not hold: 2015 and 2016 draw beams too.
- [x] If this touches the IFC exporter: the witness verdicts replay (see
CONTRIBUTING.md) or the changed observations are refreshed in this PR
- Core Interior (2024) exports byte for byte as before, so its
observations are unchanged.
- [ ] If this is a performance change: reran `tools/bench.sh` and
attached the before / after
- N/A. The beams' native read adds under 0.15 s to a 1.2 s export
(`rst_basic` 2023 and 2019, single runs).

```
tools/fetch-autodesk-samples.sh samples 2015 2024
for f in samples/*.rvt; do rvt-ifc "$f" -o "${f%.rvt}.ifc"; done
S=partition_beam_axis,partition_beam_box_along_axis
python3 tools/re/save_pair_bodies.py samples/2023-rstbasicsampleproject.ifc samples/2024-rstbasicsampleproject.ifc --sources $S
python3 tools/re/save_pair_bodies.py samples/2016-rst_basic_sample_project.ifc samples/2024-rstbasicsampleproject.ifc --sources $S
```

## 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] A user-visible change has its entry as a fragment under
`changelog.d/<section>/` (see `changelog.d/README.md`), not in
`CHANGELOG.md`
- [x] If a limitation was resolved, the "Known limitations" / "What
works today" section in the relevant docs is updated
- `docs/status.md`, `docs/evidence.md`, `docs/supported-profile.md`. The
2008 to 2014 rows now say "as on 2015, without beams along their axes".
- [x] If a new limitation was introduced, it is documented in the PR
body and in-code
- None new. Still not done, RE-362 §5 and §6: on these samples 31
`rst_basic` and 4 `rac_advanced` beams keep RE-122's column cut as on
`main`, without `Span`, `Roll` or `Length` (and 333 of `rst_advanced`'s
397, 120 of `rst_basic` 2015's 159); I sections aren't tried;
`tools/re/bodies_across_saves.py` and Measure's gate don't hold these
saves, and no Revit export checks a beam this rule draws.
- [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
- [ ] If this is a reverse-engineering finding: a reproducible probe
under `probes/examples/` and a dated addendum to
`docs/format-reconnaissance.md` are included
- The addendum is included. No new byte layout is decoded (the records
are RE-49's and RE-276's), so there is no probe;
`tools/re/save_pair_bodies.py` reproduces the measurement.

## 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
  - No fixtures.

## Breaking changes

None. A new public constant and function; existing names and types are
unchanged.

## Screenshots or output samples

`rst_basic` 2023 against its 2024 save, this branch:

```
tools/re/save_pair_bodies.py --sources partition_beam_axis,partition_beam_box_along_axis
same 312, differ 11, not in the reference 0
  IfcBeam: same 312, differ 11, not in the reference 0
```

## Related issues

Refs #1190, #1426, #1452, #1514 (BIMcollab's 91 beams hold no line the
reader finds)

## Notes

Independent of #1454. #1452 has merged: `beam_axis_read_on` stays as it
is, reading the beam list (2024 to 2027 since #1452) and the 2015 to
2023 list beside it.


## Clean-room declaration

The changes in this PR are based on public byte observations of
Autodesk's sample projects and of BIMcollab's example project (the
bounded line record, RE-49 and RE-114; the cross-section rotation,
RE-276; the native record framing, RE-280) and on Revit's own IFC
exports as counts. No Autodesk SDK source, ODA SDK source, leaked
internal documentation, NDA material or decompiled internal Revit
implementation code beyond public symbol exports was used, and no code
was copied or translated from revit-ifc. The maintainer's additions to
this branch (the skip of a beam a column cuts, the probe and the
corrections) are from the same sources. puzzbobb's confirmation of their
part is asked.

Co-authored-by: Griffin Long <[email protected]>
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