Skip to content

feat(ifc): a beam's Length, Span, Slope and Roll are its location line's, whatever its body is drawn from (#1697) (RE-428) - #1718

Merged
DrunkOnJava merged 6 commits into
mainfrom
research/1697-beam-lines
Nov 11, 2026
Merged

DrunkOnJava merged 6 commits into
mainfrom
research/1697-beam-lines

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

A beam gets the Length, Span, Slope and Roll of its location line, whatever its body is drawn from. On the BIM4LCA housing and offices that is Revit's value on all 291 beams that have a line in their element data (36 of them sloped), with 246 values added in the housing's four files and none different.

Motivation

#1697 found that the beams a saved mesh draws carry none of the four (28 of the timber housing's 41, 7 of the timber office's 71). Read from Revit's own IFC4, Qto_BeamBaseQuantities.Length and Pset_BeamCommon.Span equal the length of the beam's Axis representation, an IfcIndexedPolyCurve of two points (which the earlier scorer did not read), Slope is that curve's angle to the horizontal and Roll is 0, on all 142 beams of the four as-built files. The body does not give them: the housing's profile is extruded across the beam and Length is still the line's. rvt-rs already held that line (RE-49) and wrote the four only where it had solved the body along it.

beams of the ten BIM4LCA models count the line gives Revit's four rvt-rs wrote before
line attached, a box along it closes 234 (18 sloped) 234 of 234 Length, Span, Roll; Slope on the 216 level
line attached, the box is longer than the line (RE-328) 39 39 of 39 none
line read, inside the record box, no box along it closes 18 (all sloped) 18 of 18 none
no bounded line in the element data 9 none (Revit writes all four)

RE-328 left the second group out on the belief that no Revit export measures a beam longer than its line; Revit writes the line's length on all 39. Rows registered on #1636 before the probe (#1636 (comment)) and before the change's runs (#1636 (comment)), read in #1636 (comment) and #1636 (comment).

Changes

  • src/research/partition_schema_mvp/fields.rs, framing.rs: BEAM_LINE_START_FIELDS, BEAM_LINE_END_FIELDS and beam_line_from_fields; attach_beam_axes keeps the line that lies inside the beam's record box for the beam's properties, apart from the line its body is solved along. The bodies do not change.
  • src/ifc/export_content.rs: add_beam_length takes the line's length for a beam drawn any other way (the body's AxisLength where it is a box along the line, as before); add_beam_slope writes the line's angle to the horizontal (0 for a level line, as before); add_beam_roll is unchanged (written where the rotation is read as 0).
  • probes/examples/probe_1697_beam_lines.rs, tools/re/beam_lines_vs_ifc.py, tools/ci/scrub-holdout-results.sh (the scorer's summary lines as counts for the held-out models).
  • tools/re/mcp_answers_vs_ifc.py: Revit's plane angles are converted to radians, as the MCP answers give them; the first run counted the sampled sloped beams as different.
  • reports/element-framing/RE-428-beam-location-line-properties.md, docs/release-1.0-criteria.md, docs/format-reconnaissance.md, docs/status.md, changelog.d/added/1697-beam-location-line-properties.md.

Testing

Unit tests are banned in this repository: no tests added. Verified end to end on real files:

  • full / CI passed on the final head
  • Unfiltered Measure of the final measured head 2fc89466 against main 5cf94975, every flag, keep_ifc (43023503554), which reproduces the first run of the change (43018018669, head 558263ef): the 126 exports are byte-identical between the two, and the later commit changes only the MCP answers scorer. The commits measured are kept under refs/archive/2026-11-11/cited/.
    • 84 of 126 exports are byte-identical; the 42 that move are the housing's four files, nine IFC2X3 oracle models and 29 of Autodesk's samples that hold beams. On the 33 pairs that keep their exports no element is added or removed and 700 elements differ, all IfcBeam: 700 gain Pset_BeamCommon properties, 460 gain Qto_BeamBaseQuantities.Length, and no set loses or changes a property.
    • Equal to Revit's: Length, Span, Slope and Roll on 291 of 291 beams with a line (tools/re/beam_lines_vs_ifc.py, psets_vs_ifc, qtos_vs_ifc); 246 values added in the housing's four files, none different. different and every value Revit does not write are unchanged on every IFC4 model.
    • IFC2X3 oracle models count apart: Revit's export holds no Span or Slope for rac_advanced 2015 to 2020's 8 beams, so 16 values per file are rvt-rs's alone. The held-out modelo_bim's 8 beams are each cut by a column with no line: nothing is read.
    • body_sources are identical on the 101 models that report them; same-project gates pass on the measured head.
    • Not timed. No new read: the line is the one scan_bounded_lines already reads.
  • Registered rows read against both runs: List the shipped rules that rest on one project, and the second model that could test each #1636 (comment)

Audit-honesty checklist

  • A user-visible change has its entry as a fragment under changelog.d/added/.
  • docs/release-1.0-criteria.md and the reconnaissance addendum state what is written and what is left without; docs/status.md notes that RE-328's "no Span, Slope or Roll" no longer holds.
  • No emojis, no private paths in committed files.
  • Reverse-engineering finding: a probe, a scorer and a dated report are included; held-out models appear as counts only.

Legal and contribution hygiene

  • Apache-2.0. No Autodesk proprietary source, internals or NDA material.
  • No new test fixtures.

Breaking changes

None. A beam that has a line gains properties it did not carry; no value changes.

Related issues

Closes #1697. The 9 beams with no bounded line, which keep none of the four, are #1719. Refs #1636, #1698 (the beams whose body is not Revit's solid are untouched).

…'s beam Length, Span, Slope and Roll against it (#1697) (RE-428)

Revit's export writes Length and Span equal to the length of the beam's Axis representation on all 142 beams of the four large BIM4LCA files, Slope as that line's angle to the horizontal and Roll 0. rvt-rs attaches the line only where it and the record box make a beam solid, so the beams a saved mesh draws carry none of the four. The probe prints the first bounded line of each structural-framing element, whether it is attached, cut by a column or inside the record box; the scorer pairs them with Revit's beams by ElementId.
…e's, whatever its body is drawn from (#1697) (RE-428)

Revit's export writes Length and Span equal to the length of a beam's Axis curve, Slope as its angle to the horizontal and Roll 0 on all 291 beams with a bounded line in the BIM4LCA office and housing, 36 of them sloped. rvt-rs wrote them only for a beam whose body is a box along the line, and Slope only when level. The line of the beam's element data that lies inside its record box is kept for these properties apart from the body's, and add_beam_length, add_beam_slope take it for a beam drawn another way: a box longer than the line, a saved mesh, a beam whose line no box along it closes.
…as the answers give them (#1697) (RE-428)

A beam's Slope was 0 on every beam the answers carried, which equals Revit's in any unit. With the sloped beams' Slope written (RE-428) the scorer compared the answers' 0.0626 radians with Revit's 3.586 degrees and counted a difference on each sampled sloped beam (property values different from Revit 5 to 8 and 6 to 7 on the housing files, run 43018018669). psets_vs_ifc already compares angles in radians; this reads them the same way.
…location line on the BIM4LCA models, with the criteria, reconnaissance and status entries (#1697) (RE-428)
@DrunkOnJava
DrunkOnJava merged commit 053ceac into main Nov 11, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1697-beam-lines branch November 11, 2026 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant