Repository navigation
docs(re): RE-442 finds a tube beam's saved mesh short of Revit's six base quantities, which the drawn profile gives (#1698) - #1759
Merged
DrunkOnJava merged 4 commits intoNov 12, 2026
Conversation
…ctionarea-grosssurfacearea-gross
…base quantities, which the drawn profile gives (#1698) (RE-442) The probe's run on the BIM4LCA office as built (Measure 43113951802): all 8 tube beams' meshes give the six quantities within a relative 1.1e-4 to 4.4e-4 of Revit's export, outside the census's 1e-5, so nothing is written from the mesh. The profile Revit's export draws and the length give all six within the tolerance. A measured negative for the mesh; the values belong with the tube's body (#1698).
DrunkOnJava
marked this pull request as ready for review
November 11, 2026 22:54
DrunkOnJava
deleted the
pilot/20-beam-crosssectionarea-grosssurfacearea-gross
branch
November 12, 2026 01:11
3 of 4 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Nov 15, 2026
…ube, corners as arcs, and gets the six base quantities its profile gives (#1698) (#2034) ## Summary A structural framing element whose type is a rectangular tube is drawn as that tube, its corners as arcs, and gets the six base quantities the profile gives. On Revit 2024 only, which is the one release the BIM4LCA office's 8 tube beams (`Putkipalkki - suorakaide:PA-1`) are measured on. Part of #1698. ## Motivation #1698: rvt-rs drew the office's 8 hollow tube beams as a solid box, 0.3411 m3 where Revit's tube is 0.0221 m3, and left their six base quantities out (the saved mesh gives them only to 1.1e-4 to 4.4e-4, outside the census's 1e-5, because the tube's rounded corners are chords in it; #1759). The comment on #1698 showed the profile does give them. What was open was where the profile is in the file. **Found** (Measure [43663617767](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43663617767), `probe_1698_beam_type_lengths`): the tube type holds its profile as named lengths, `bf` 200 mm, `d` 300 mm, `tf` and `tw` 4 mm, `ri` 8 mm and `ra` 4 mm, on both office files. `ri` is the OUTSIDE corner radius and `ra` the inside one, the reverse of what the letters suggest. The columns' hollow sections use `b`, `Ht`, `t` and `kr`, so `hollow_section` finds nothing here. **Revit's form** (Measure [43665396874](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43665396874), `tools/re/beam_tubes_in_ifc.py`): each of the 8 is an `IfcExtrudedAreaSolid` over an `IfcArbitraryProfileDefWithVoids`, one signature for all 8: an outer `IfcIndexedPolyCurve` of 12 points (four arcs, four lines), one void of 12 points, depth 5,685 mm equal to the `Length` quantity on each, the extrusion running along the beam's local X from -L/2, the profile's X across the beam and Y vertical. ## Changes - `src/research/partition_type_parameters.rs`: `TUBE_BEAM_PARAMETER_NAMES` and `tube_beam_section`, which reads the six captions as a hollow section only when `tf` equals `tw` and the inside radius is the outside radius less the wall. - `src/research/partition_schema_mvp/fields.rs`, `framing.rs`: `TUBE_BEAM_REVIT_VERSIONS` (2024) and `attach_column_sections` giving structural framing the same four hollow-section fields a column gets, from the same read. - `src/ifc/export_content.rs`: `beam_tube_solid` (the beam's I-section solid with the tube's profile), the body chosen where the beam's body along its line is as wide and as deep as the tube's outside, `SectionShape` `RectangleHollow` and `SectionWallThickness` beside the record's other properties, and `add_tube_beam_quantities`: `CrossSectionArea` the profile's area, `OuterSurfaceArea` the outside outline times the length, `GrossSurfaceArea` that plus the two ends, `NetSurfaceArea` both outlines times the length plus the two ends, `GrossVolume` and `NetVolume` the area times the length, the arcs counted as arcs. - `src/ifc/element_provenance.rs`: the tube's source has its own reader, `type_tube_section` (six captions), listed as a profile reader and for a beam with that `SectionShape`, as an I section's is. `tests/value_sources_offsets.rs` holds it to its six captions and pins it on the office as built; its first form, sharing `type_hollow_section`, failed that check on the office. - `tools/re/beam_tubes_in_ifc.py`: the scorer above. `changelog.d/changed/1698-tube-beams.md`, `reports/element-framing/RE-470-tube-beam-sections.md`, and the docs above. The `BodySource` stays `partition_beam_axis`, so the storey binding, the same-project gates' beam minimums and the saved-mesh pass are as they were. ## Testing Measure [43667655898](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43667655898), unfiltered against the merge base `63d06f42`, with samples, nordic, r2025 and holdout; and [43667663717](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43667663717), the two office files with `beam_tubes_in_ifc`, `beam_quantities_vs_ifc`, `qtos_vs_ifc`, `psets_vs_ifc` and `column_bodies_vs_ifc`, `keep_ifc`, both on head `36664995` (the heads since add RE-470, docs and a merge of main). Rows registered before either was read, and what they read: 1. **Not met as registered; the body is Revit's within the writer's digits.** The 8 tube beams of each office file are an `IfcExtrudedAreaSolid` over `IfcArbitraryProfileDefWithVoids`, where they were `IfcRectangleProfileDef`. Outer and void have Revit's 12 points, the same alternation of four lines and four arcs, the outer counter-clockwise and the void clockwise, and areas 59,925.0 and 56,045.2 mm2 against Revit's 59,925.0 and 56,045.3. But the row asked for the same indices and points equal to 1e-6 mm: rvt-rs starts its outer ring one vertex and its void ring two vertices before Revit's, and writes its points to six decimals of a metre, so after aligning the start they differ by at most 0.000146 mm (outer) and 0.000427 mm (void). The row was tighter than the writer's resolution of 1e-3 mm; these are the bounds measured. Two beams 6,000.000 mm apart in Revit's export are 6,000.000 mm apart in rvt-rs's, turned by the office's site rotation (40.33 degrees), at Revit's height. 2. **Met.** The six quantities are written on the 8 and equal Revit's on both files, 48 values per file, none different, none missing; `Length` stays 8 of 8 equal. 3. **Met.** `different` is 1 on both sides on both files (the one that was already there); values Revit does not write 0. In `qtos_vs_ifc` the equal count goes 37,509 to 37,557 (as built) and 37,882 to 37,930 (permit). 4. **Met.** 118 of 120 exports are byte for byte the merge base's, the two that are not being the office files; all 102 `diagnostics.json` are. The Autodesk samples and the held-out models are among the 118. 5. **Met.** `same-project gates` pass on `36664995` (15 samples held to their earlier saves); the diagnostics are identical, so no `body_sources` count moves. Cost: one export of the as-built office took 21.3 s on the head and 23.7 s on the base (single runs, no difference above the noise). Not measured: any release but 2024, any tube of another shape (the reader gives none), a tube beam turned so that its body is not as wide and deep as the tube's outside (it keeps its box). RE-470 holds all of it. - [ ] `tools/check-local.sh`: no local builds; `rustfmt --check` passes; CI runs the rest. ## Audit-honesty checklist - [x] No figure beyond the runs named; the changelog fragment, RE-470, `docs/export-diagnostics.md`, `docs/evidence.md`, `docs/contribution-map.md` and `docs/one-project-rules.md` are updated from them. The measured commit and the probe's are archived under `refs/archive/2026-11-15/cited/`. - [x] No emojis, private paths or jargon. ## Legal and contribution hygiene - [x] Apache-2.0; no Autodesk source; no fixtures. ## Breaking changes None. Part of #1698.
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
RE-442, a measured negative: the saved mesh of a hollow tube beam does not give Revit's six base quantities to the census's tolerance, and the profile Revit's export draws does. No export changes; nothing is written.
On the BIM4LCA office as built, Revit's export writes
CrossSectionArea,OuterSurfaceArea,GrossSurfaceArea,NetSurfaceArea,GrossVolumeandNetVolumeon its 8 beams, all one tube type, and rvt-rs writes none of the six (RE-423 refuses a mesh with a hole through it). The probe reads each beam's mesh along its line with the lateral faces split into the outer and the inner surface. All 8 read alike, and the six quantities the mesh makes are within a relative 1.1e-4 to 4.4e-4 of Revit's, short every time by the chords of the rounded corners. The census reads equal within 1e-5, so all 48 values would read different.The profile Revit draws (200 by 300 mm with 8 mm corners, a void of 192 by 292 mm with 4 mm corners, 5,685 mm long) gives all six within the tolerance,
OuterSurfaceAreato the last digit printed. So the six arrive with the tube's body, #1698.Motivation
#1698, and #1693 before it (now shut): the 8 tubes are the beams RE-423 left without the six quantities, and the question whether a second mesh rule could fill them was open. It is answered no, in a report, so the next attempt starts from the profile and not from the mesh.
Changes
probes/examples/probe_beam_tube_quantities.rs: for every structural-framing element with a bounded line and whole saved graphics, two lines: what its mesh gives along the line, and the six quantities that makes. Counts and values only.reports/element-framing/RE-442-tube-beam-quantities.md: the question, what the probe prints, the six values against Revit's export, the profile's closed forms against the same values, what the result binds and what is not measured (one tube section on one model; where the profile sits in the file).changelog.d/research/1698-tube-beam-quantities.md.Testing
317b41b8,nordic-office-as-built): 8 beams, 8 meshed, 8 read, the figures in the report.research/bim4lca-models.tsv).src/. So no Measure of exports and no same-project verdict applies.The probe was drafted by an automated worker, which also found that no rule could be written and proposed the measurement instead. The run, the comparison and the report are the maintainer session's.
Part of #1698.
Audit-honesty checklist
changelog.d/Legal and contribution hygiene
Breaking changes
None.