Repository navigation
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
Conversation
…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
marked this pull request as ready for review
November 15, 2026 02:16
…its current copy's, not that the code moves it (#1719)
This was referenced Nov 15, 2026
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
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 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,SlopeandRoll, 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,SlopeandRollon each. The probeprobe_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.Copies::Agreeing's whole-struct equality dropped them.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 ofscan_first_bounded_lineswithCopies::Current, giving the ids it took the current copy for),scan_records_noting_currentunderscan_first_records, theCopies::Currentcomment.changelog.d/fixed/1719-beam-line-current-copy.mdandreports/element-framing/RE-428-beam-location-line-properties.mdsection 7.src/research/partition_schema_mvp/framing.rs:attach_beam_axesreads the line throughscan_beam_linesand, 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).Copies::Agreeing(Core Interior's 7 walls,Copiesdoc).Testing
Measure 43664794789, unfiltered against the merge base
0e581f05, with samples, nordic, r2025 and holdout, on head1585c625(the commit holding everysrcchange; the later commits are a merge ofmain, a changelog fragment and the RE-428 addendum). Rows registered before it was read, with what it showed:Pset_BeamCommon.Span,SlopeandRollandQto_BeamBaseQuantities.Lengthgo 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 itsSpanandSlope(9 to 10 equal of 10, counts only;Rollis not scored in IFC2X3).differentdoes not rise and no value Revit does not write appears. Held:differentis 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).diagnostics.jsonare identical; the 4 exports that move are the 3 BIM4LCA files and the held-out pair, and the 3diagnostics.jsondiffer inparameter_value_countalone (+3, +3 and +21 = 7 beams times 3 values).same-project gatespass. 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 --checkpasses; CI runs the rest.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Part of #1719 (the body of the 9 beams is #1698).