Repository navigation
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
Conversation
…'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.
…b keeps (#1697) (RE-428)
…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)
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 gets the
Length,Span,SlopeandRollof 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.LengthandPset_BeamCommon.Spanequal the length of the beam'sAxisrepresentation, anIfcIndexedPolyCurveof two points (which the earlier scorer did not read),Slopeis that curve's angle to the horizontal andRollis 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 andLengthis 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.Length,Span,Roll;Slopeon the 216 levelRE-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_FIELDSandbeam_line_from_fields;attach_beam_axeskeeps 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_lengthtakes the line's length for a beam drawn any other way (the body'sAxisLengthwhere it is a box along the line, as before);add_beam_slopewrites the line's angle to the horizontal (0 for a level line, as before);add_beam_rollis 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 passedon the final head2fc89466againstmain5cf94975, every flag,keep_ifc(43023503554), which reproduces the first run of the change (43018018669, head558263ef): the 126 exports are byte-identical between the two, and the later commit changes only the MCP answers scorer. The commits measured are kept underrefs/archive/2026-11-11/cited/.IfcBeam: 700 gainPset_BeamCommonproperties, 460 gainQto_BeamBaseQuantities.Length, and no set loses or changes a property.Length,Span,SlopeandRollon 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.differentand every value Revit does not write are unchanged on every IFC4 model.SpanorSlopeforrac_advanced2015 to 2020's 8 beams, so 16 values per file are rvt-rs's alone. The held-outmodelo_bim's 8 beams are each cut by a column with no line: nothing is read.body_sourcesare identical on the 101 models that report them;same-project gatespass on the measured head.scan_bounded_linesalready reads.Audit-honesty checklist
changelog.d/added/.docs/release-1.0-criteria.mdand the reconnaissance addendum state what is written and what is left without;docs/status.mdnotes that RE-328's "no Span, Slope or Roll" no longer holds.Legal and contribution hygiene
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).