Skip to content

fix(ifc): a beam whose copies in several partitions disagree takes its current copy's location line for its Length, Span, Slope and Roll, and keeps its box (#1719) (RE-428) - #2033

Merged
DrunkOnJava merged 4 commits into
mainfrom
fix/1719-beam-line-current-copy
Nov 15, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

A beam whose element data sits in several partitions with different lines now takes the line of its current partition's copy for its Length, Span, Slope and Roll, and keeps its record box as its body. It is the first rule of #1719 (RE-428's residual: the 9 BIM4LCA beams with no line).

Motivation

#1719 asks why 9 beams have no bounded line when Revit's export writes Length, Span, Slope and Roll on each. The probe probe_1719_beam_line_copies (Measure 43663617767, 45c22b0a) sorts every beam with no line into the four reasons the reader can drop one: no element data, data without a line, an arc first, copies that disagree. On the ten BIM4LCA models all 9 are copies that disagree: 1 in the concrete housing as built, 1 in the timber housing as built, 7 in the timber office at permit, and none is of another kind.

  • Four of the 7 office beams hold one segment in all four of their copies (the same endpoints to the last digit) with different stored parameters, so Copies::Agreeing's whole-struct equality dropped them.
  • The others hold an older state in the earlier partitions: for 3346643 the copies of partitions 374 and 395 are 18.834 ft long, those of 410 and 424 are 18.479 ft, and the record box is 18.479 ft, the current copy's.
  • The housing's 2125408 reads 8.530 ft in partition 1531 and 8.888 ft in the current 1533, whose length its box (8.917 ft) follows.

This is RE-216's rule (an element whose copies disagree takes its current partition's copy), which sketch lines already follow (#824). RE-306 had found no boxed beam with disagreeing copies on its files, so nothing closed it for beams.

Changes

  • src/research/partition_beam_axes.rs: scan_beam_lines (the scan of scan_first_bounded_lines with Copies::Current, giving the ids it took the current copy for), scan_records_noting_current under scan_first_records, the Copies::Current comment.
  • changelog.d/fixed/1719-beam-line-current-copy.md and reports/element-framing/RE-428-beam-location-line-properties.md section 7.
  • src/research/partition_schema_mvp/framing.rs: attach_beam_axes reads the line through scan_beam_lines and, for an id that took the current copy, keeps the line for the properties (BEAM_LINE_*, where it lies inside the record box) and does not attach it for the body (BEAM_AXIS_*): no solid along those 9 lines has been measured against Revit's (Beams: a body that is not Revit's solid (the concrete housing's 20 of 22 beams and the timber housing's 10 of 41; the office's 8 hollow tubes are Revit's since RE-470) #1698).
  • Walls keep Copies::Agreeing (Core Interior's 7 walls, Copies doc).

Testing

Measure 43664794789, unfiltered against the merge base 0e581f05, with samples, nordic, r2025 and holdout, on head 1585c625 (the commit holding every src change; the later commits are a merge of main, a changelog fragment and the RE-428 addendum). Rows registered before it was read, with what it showed:

  1. The 9 beams gain Revit's values. Held: Pset_BeamCommon.Span, Slope and Roll and Qto_BeamBaseQuantities.Length go from 21 to 22 equal of 22 (concrete housing as built), 40 to 41 of 41 (timber housing as built) and 64 to 71 of 71 (timber office at permit), 4 values each, 36 in all, each equal. The held-out 2021 pair with such a beam gains its Span and Slope (9 to 10 equal of 10, counts only; Roll is not scored in IFC2X3).
  2. different does not rise and no value Revit does not write appears. Held: different is 1, 1 and 1 on the three files, as before, and "rvt-rs values Revit does not write" is unchanged on every model (24, 29, 34). The one new quantity on the held-out IFC2X3 pair is counted apart (its export writes no base quantities).
  3. No body moves, and every export without such a beam is byte for byte the merge base's. Held: 116 of 120 exports and 99 of 102 diagnostics.json are identical; the 4 exports that move are the 3 BIM4LCA files and the held-out pair, and the 3 diagnostics.json differ in parameter_value_count alone (+3, +3 and +21 = 7 beams times 3 values).
  4. same-project gates pass. Held: 15 samples held to their earlier saves, and the Areas on 4 saves and the 2021 save; the semantic diff finds 7 findings in 42 models, all the new values.
  • tools/check-local.sh: no local builds; rustfmt --check passes; CI runs the rest.

Audit-honesty checklist

  • The figures are the run's. The changelog fragment and RE-428's section 7 are written from it.
  • No emojis, private paths or jargon.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk source; no fixtures.

Breaking changes

None.

Part of #1719 (the body of the 9 beams is #1698).

…s current copy's location line for its Length, Span, Slope and Roll, and keeps its box (#1719) (RE-428)

The 9 BIM4LCA beams of #1719 (1 in each housing file as built, 7 in the timber
office at permit) have their element data in several partitions with different
lines, so Copies::Agreeing dropped them and Revit's four values stayed missing.
scan_beam_lines takes the line of the copy in the beam's current partition
(RE-216) and names the beams it did that for; attach_beam_axes keeps that line
for the properties and leaves the body alone.
…beams whose copies disagree, and what taking the current copy measured (#1719)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 15, 2026 02:16
…its current copy's, not that the code moves it (#1719)
@DrunkOnJava
DrunkOnJava merged commit f961f2a into main Nov 15, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1719-beam-line-current-copy branch November 15, 2026 02:32
DrunkOnJava added a commit that referenced this pull request Nov 15, 2026
…ounts, so a held-out file's beams can be sorted into the reasons they give no line (#1719) (#2042)

## Summary

`tools/ci/scrub-holdout-results.sh` now keeps two count lines of
`probe_1719_beam_line_copies` for the held-out models, each prefixed
`beam lines:`:
- the release line: structural-framing elements, and how many read a
location line;
- the summary: how many of the rest fall under each of the four reasons
the reader gives no line (`no_data`, `data_without_line`, `arc_first`,
`copies_disagree`, `other`).

The probe's `beam` and `copy` lines are still dropped, since they carry
ElementIds, lengths and partitions.

## Motivation

#1719's done-when was met by #2033 on the 9 BIM4LCA beams. The issue
also names the held-out `modelo_bim`'s 8 beams (Revit 2023, each cut by
a column), which hold no line. Closing #1719 needs those 8 sorted into
the probe's four reasons, counts only. Without these lines the scrub
keeps nothing of the probe.

## Changes

- `tools/ci/scrub-holdout-results.sh`: the two `grep -E` lines with
their comment, and the header list.

## Testing

- `bash -n` passes. Both patterns were run on a sample of the probe's
output: they keep the release and summary lines and drop the `beam` and
`copy` lines.
- Measure
[43681645435](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43681645435)
dispatched from this branch with the probe at `45c22b0a`,
`holdout=true`, `models=holdout-modelo_bim`. Its result goes in #1719's
closing comment.
- No export changes. The scrub runs only on held-out results, after
scoring.

## Audit-honesty checklist

- [x] Counts only: no id, length, name or partition leaves the run
- [x] No emojis, private paths or PII

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk source; no fixtures

## Breaking changes

None.

https://claude.ai/code/session_01TFTgj3Ddfs7cFGMNAgVAut
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