Repository navigation
feat(ifc): a column cut across its top by one slab gets the cut mesh's CrossSectionArea and NetVolume (#1203) (RE-353) - #1477
Merged
Conversation
…s CrossSectionArea and NetVolume (#1203) (RE-353)
…e circumference times its height (#1203) (RE-353)
… its voids and non-convex outline (#1203) (RE-353)
… second slab across its top that misses the section is harmless (#1203) (RE-353)
… and named lengths (#1203) (RE-353)
…n round (#1203) (RE-353)
… offsets (#1203) (RE-353)
…ith its fragment, addendum and criteria entries (#1203)
DrunkOnJava
marked this pull request as ready for review
November 5, 2026 23:41
DrunkOnJava
enabled auto-merge (squash)
November 6, 2026 00:51
DrunkOnJava
added a commit
to puzzbobb/rvt-rs
that referenced
this pull request
Nov 6, 2026
Main moved by DrunkOnJava#1468, DrunkOnJava#1477 and DrunkOnJava#1481; the addenda of RE-353 and RE-362 both stay.
12 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…read by VWallDriver.m_pCrv, so 14 doors of rac_advanced 2027 take the axes rule (#1475) (RE-360) (#1500) ## Summary Closes #1475. On Revit 2027's save of `rac_advanced`, 18 of 180 `SWall` records hold a second `GLine` besides the location curve, owned by `WallRunTimeData.m_prevLocLine`. `native_walls` left out any wall with a second curve, so the 8 host walls of 14 doors returned no native line and the doors kept the default axes (RE-360). A record of exactly two curves is now read where one is the level `GLine` `VWallDriver.m_pCrv` names and the other is a `GLine` that only `m_prevLocLine` names. A record with the one `GLine` reads as before, and any other set of curves stays unread (a `CurveLoop.m_curves` profile wall, an arc, a null or ambiguous `m_pCrv`). ## Motivation #1456's second read found 14 doors of `rac_advanced`'s 2027 save left on the default axes. #1454's check compares each cut opening with the 2025 save, so the 14 differ on axes alone. Both done-when items of #1475 are met: the missing row is explained from the bytes (RE-360 section 1), and the 14 doors are placed by the rule on 2027. The 15th door of the 2024 save's 8 hosts is hosted by another wall on 2027: #1454's cause, not this one. ## Changes - `src/research/native_walls.rs`: `record_line`, `location_curve_index`, `is_previous_location_line`; `location_curve` (RE-348) now shares the pointer read. - `tools/re/bodies_across_saves.py`: the 2027 floor of `rac_advanced` doors 47 to 61 and the ceiling of doors left on the default axes 42 to 28, as RE-347 requires of a count that moves. Whichever of this and #1454 lands second sets 2027's numbers from a samples run on the merged head and takes neither side's: #1454's branch holds 68, 24 and 15 for the same counts, and this change's 61, 18 and 28 would loosen them. - `probes/examples/probe_re360_wall_location_curve.rs`, `tools/ci/scrub-holdout-results.sh` (keeps the probe's counts-only `previous lines:` line for a model without a licence), `reports/element-framing/RE-360-wall-previous-location-line.md`, `changelog.d/fixed/1475-wall-previous-location-line.md`, `docs/maintaining.md`, RE-347's section 7 (figures it no longer holds). ## Testing Unit tests are banned in this repository: none added. Measured on Autodesk's sample projects of 2024 to 2027 (25 files, no Revit export of any): - Measure [42129732742](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42129732742), head `d741927`: the probe, the cause. - Measure [42134051521](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42134051521), head `0a0ba7ce` against base `ce3a3c47` (the same code without the rule), default scorers, every job green. The figures below are from it. It was dispatched from `main`, so it took `main`'s gate. - Measure [42137808608](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42137808608) on head `b470a9ab`: the `same-project gates` check passes on 9 samples, but reads "Scored by workflow commit `c5bae9ed`", `main`'s gate, whose 2027 ceiling is 42. **It did not exercise this PR's edit of `bodies_across_saves.py`**, so 61, 18 and 28 are not yet scored by anything. - Measure [42141380072](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42141380072), the unfiltered run on head `5754c7f3` against `main` at `0dd3ad93`, dispatched from this branch (`-f base=main -f samples=true -f nordic=true -f r2025=true -f holdout=true -f keep_ifc=true`, the probe on every model), every default scorer, no filter, every job green. Its `same-project gates` check reads "pass: 9 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save", "Scored by workflow commit `5754c7f3`": this branch's gate, with its 61, 18 and 28. The same gate on the base fails `rac_advanced` 2027 on both numbers (47 doors below 61, 42 left out above 28), so the floor and ceiling bind. The figures under "Every model" are from it. - Head `a0c90b97` holds #1477 and #1483 (main moved after the run) through a clean merge; #1483's projected wall read is the 2015 to 2023 `WallReads::read`, not this read. Their effect on the figures was not measured. - [x] Verified end to end on real Revit files: the command, the files and the measured result are in the report, with the probe that reproduces it - [x] Touches the IFC exporter only through what the wall read feeds: of 111 models and samples six exports change and 105 are byte for byte main's (list below) - [x] Not a performance change ## Every model (run 42141380072, repeated on the landing head) The landing run is [42530216655](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42530216655), head `aa3324e8` against `main` at `1e2d3de4`, which includes #1517: that change makes `native_walls` reach Revit 2015 to 2023, so this rule does too. 112 of 118 exports are `main`'s, the same 6 move, none of them 2015 to 2023, and `same-project gates` passes. Before it, run [42518227323](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42518227323), head 431c2f2d against `main` at ab5f8e1, 118 models and samples: `ifc.sha256` moves on the same 6 as below, the office's door axes (placed by the rule 193 to 194, differing from Revit 0) and `Qto_WallBaseQuantities.Length` (missing 54 to 52, different 0) move as below, nothing else does, and the same-project gates pass with `rac_advanced` 2027 going from fail on the base to pass on the head. - **`ifc.sha256`, base against head:** equal on 105 of 111, moved on 6: `rac_basic` 2024 to 2027, `rac_advanced` 2027 (above) and the BIM4LCA office as built. Held-out and spent models: equal on all 19, kept counts unchanged but for the added `previous lines:` line. - **Walls read through the rule** (records, with a previous line (offset), read through the rule): Core Interior 1,209, 281 (0), 281, export byte for byte main's, so it exercised 281 walls and none reaches an output (no `REPLAY_DRIFT` is possible: its export and witness observations are the same); the office at permit 1,137, 76 (24), 76, byte for byte; `rac_basic` 2023 5, byte for byte (the consumers do not run there); Snowdon Architectural 2, byte for byte. Every other model reads none through the rule and exercises nothing. - **The office as built** (Revit's export exists; 1,082, 52 (23), 51): the export differs in one door and its opening of 13,688 products: door 2597741, set in the newly read wall 2599599, gains `PlacementAxesSource` and the rule's axes; no body, class, other property or quantity moves. `door_axes_vs_ifc`: placed by the rule 193 to 194, differing from Revit's 0, same 211 to 212. `qtos_vs_ifc`: equal 29,760, different 1 (as on main), rvt-rs quantities Revit does not write 0, unchanged; `Qto_WallBaseQuantities.Length` equal 92, different 0, missing 54 to 52, the 2 walls leaving it being the 2 newly read plain walls, whose Length Revit's export gives as rvt-rs's curve's or its Axis's (neither stays 0). `psets_vs_ifc`, `wall_bodies_vs_ifc`, `wall_ends_cv_vs_ifc`, `class_sets_vs_ifc` and `door_bodies_vs_ifc` are identical files. `wall_length_vs_ends` is not a Measure scorer. The diagnostics gain exactly the 2 walls; the semantic diff finds 0 elements changed. Nothing moved away from Revit's. - **Held-out:** 11 of the 18 hold native wall records (145 in all) and none holds a previous location line; the other 7 (2018 to 2022) hold none to read. So no held-out model has an offset previous line. The offices do (23 of 52, 24 of 76); the walls and the door of the office as built that reach its export agree with Revit's, but which of the 23 those are was not read. ## Measured result (run 42134051521, samples only) - **What each save reads** (base, head): `rac_advanced` 2027 162, 180 (2024 to 2026 180, 180); `rac_basic` 47, 52 on 2024 to 2026 and 46, 52 on 2027; `rme_advanced`, `rme_basic`, `rst_basic` unchanged; Snowdon Architectural 1,202, 1,204. On the head `rac_basic` reads the same 52 walls and `rac_advanced` the same 180 on all four saves, by id. No wall the old rule read is un-read. 26 walls are newly read over every `SWall` record of the 25 files (the probe's count), of which 20 can reach an export: the 18 of `rac_advanced` 2027 and `rac_basic`'s 709245 and 234869, none on Snowdon. - **What settles which line is the location curve** (RE-360 section 1): the previous line has the location curve's direction and length, so length cannot say. On the 4 walls where it is offset it is offset across the wall by exactly half the type thickness (0.4970 of 0.9941 ft, 0.2272 of 0.4544 ft); `m_pCrv`'s line equals the partition axis (RE-53) to 0.0000 ft on all 13 dumped walls that have one, and `attach_wall_lengths` gives `m_wall_curve_length` only within 1e-4 ft of that axis, which all 17 newly read plain walls got. A record whose `m_pCrv` names the stale line could not be told apart by naming; none exists in the 25 files. Curtain walls have no axis and no guard, so only the rule protects them; both here have a coincident previous line. - **What moves in the IFC:** `rac_basic` 2024 to 2027 and `rac_advanced` 2027 only. `rac_basic`: curtain wall 709245 gains `Qto_CurtainWallQuantities.Length` 3.01 m, nothing else. `rac_advanced` 2027: curtain wall 149877 gains `Length` 25.6109 m (its 2024 to 2026 value); 14 doors gain `PlacementAxesSource`; 13 doors and their 13 openings change placement. No body volume or world box moves, no product added or removed. No other wall, neighbour reach, shell or length changes on any save. **No check holds the two curtain `Length` values**: no Revit export of these files exists, no gate compares a curtain wall's `Length`, 709245 gains it on all four saves at once, and only its box width of 9.8753 ft corroborates it. - **Pinned walls (`lane/1454-gates`):** one overlap, 234869 on `rac_basic` 2027; its body, volume, box and properties are unchanged, so its pin holds. Nothing re-pinned. - **Snowdon Architectural:** byte for byte the base's; the 2 newly read walls are not products of rvt-rs's export nor of Revit's IFC4 (counts only), so nothing is scored and no wall moves from Revit's. - **The 14 doors:** equal to the 2025 save's (and the 2024 save's) in axes, origin, body vertices and volume, 14 of 14 (base: 1 of 14), placed by the RE-347 axes rule. The same-project gate of that run, main's: `rac_advanced` 2027 compares 79 (61 doors, 18 windows) and leaves 28 out, where the base compared 65 and left 42 out. - **The 14 cut openings:** placement now equal to the 2025 save's; their volume and vertices still differ on all 14 (0.3526 ft at the farthest) before and after, because the cut loop of a door's symbol is read on 2024 and 2025 only. #1454 widens that list; not measured together. - **Not measured:** any Revit export of the sample files; the newly read sample walls' lengths and directions against Revit's; whether the 2 walls and the door of the office as built that reach its export are among its 23 offset previous lines (the probe prints a count, not the wall). ## Audit-honesty checklist - [x] README and docs reflect the state: no capability claim changes beyond the two values above - [x] Changelog fragment under `changelog.d/fixed/` - [x] A limitation remains and is stated: the 14 openings' size on 2027 (above) - [x] Commit messages describe what changed - [x] No emojis; no private paths or personal addresses in committed files - [x] Reverse-engineering finding: a reproducible probe under `probes/examples/` and the report RE-360 ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 - [x] No Autodesk proprietary source, decompiled internals or NDA'd SDK content: member names and bytes of Autodesk's public sample files - [x] No fixtures ## Breaking changes None.
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.
Refs #1203. Figures from the unfiltered run 42130190386 at 35cfd89, which holds every limit below.
Summary
CutPairGStepnames the slab, a clean pair joins the column to the same slab, the slab's span starts inside the column and reaches its top) gets the quantities Revit's export writes on the 18 meshed columns of the BIM4LCA office at building permit:NetVolume, the volume of the box less the part of the slab inside it, andCrossSectionArea, half the surface of that cut box, where every edge of the slab inside the section runs parallel to a side of it (NetVolumealone otherwise). 17 of the 18 are written equal (run 42130190386, as at 223968a before the limits); the 18th, whose cut pairs name a wall that only touches it, is left out.OuterSurfaceArea, the circumference times its height, where its type's named lengths areDiameter, equal to both sides of its box, and at most the family'sOffset BaseandOffset Top, each exactly 0 (any other named length leaves it out). That is one column on each of the two office files, the same column, taken as round from the captionDiameteralone. ItsCrossSectionArea,GrossVolumeandNetVolumestay out: they are not the circle's (RE-353 section 4). The type's named lengths are those three, notDiameteralone as RE-291 took them to be (probe run 42121438036); RE-291 is corrected here.b(andh) equal to its box's sides is not implemented. It is:rectangular_sectionandfills_sectionhave required it since feat(ifc): write the base quantities of a joined column that nothing cuts or crosses (#1046) (RE-291) #1204 (RE-291 section 3), and 13 and 15 unjoined columns are written through it.Limits of the rules (the second read's findings)
SlabTop::Flat: record read, no shape edit moves its top: a sloped floor's underside is not its base), and the same slab a clean pair joins to the column. Any other slab across the column's top, joined by a clean pair, must have no plan area in the section.CrossSectionAreais written only where every edge of the slab inside the section is parallel to a side (1e-6 in the sine of the angle),NetVolume, exact geometry, either way. RE-353 section 3 states the limit.NEW_RULE_REVIT_VERSIONS): the office is the only file either is measured on, andsamples=true's verdict does not compare column quantities, so a later release is not opened by a run that cannot see it. The existing RE-291 rule keeps the releases it read. A column RE-178 trimmed (its body is cut though its source says record box) is left out. On Revit 2024 a floor's shaft is cut from its outline, so a floor with a shaft has its true outline; the later releases that export it whole are not read.body_geometry(plan_outline,Placement,clip_ring_to_band,signed_area, nowpub(crate)) instead of a copy.Motivation
#1203 items 2 and 3. revit-ifc (
PropertyUtil.CreateBeamColumnBaseQuantities, IFC_v24.3.40, CLEANROOM.md source 5) was read and cited, and no code was copied or translated: its column quantities takeLength,OuterSurfaceAreaandGrossVolumefrom the extrusion its exporter finds and, where there is none,CrossSectionAreafrom the element's computed area parameter andNetVolumefrom its computed volume. Measured on Revit's own export of the office at permit, all 18 meshed columns have exactly those two quantities, the volume is the mesh's and the area is half the mesh's surface (RE-353 section 2).Changes
src/ifc/export_content/column_quantities.rs: the column's cut pairs are assessed as before, and one slab across the top is now a third outcome beside clear and refused; the slab's plan region (outline and voids) is clipped to the column's section; the limits above. A round column'sOuterSurfaceArea.src/research/partition_type_parameters.rs,partition_schema_mvp.rs,partition_schema_mvp/{fields,framing}.rs,src/ifc/export_content.rs,src/ifc/body_geometry.rs(one visibility): the round section a column type holds and the file's release, queued for the pass, and the floors' known tops.probes/examples/probe_re353_column_cut_footprints.rs,probe_re353_round_column.rs;reports/element-framing/RE-353-cut-columns-and-the-round-column.md(and RE-291's correction), the changelog fragment, the addendum todocs/format-reconnaissance.md, the criteria page's entries anddocs/contribution-map.md's W7: the round column and the meshed columns' values, and the section check on box-drawn columns #1203 line.Testing
Unfiltered Measure run 42130190386 (head 35cfd89 against
mainat 8060ecc;-f base=main -f nordic=true -f r2025=true -f holdout=true -f samples=true, every scorer,qtos_vs_ifcandpsets_vs_ifcwith--revit-set-placement; the office as built and at permit, the 18 held-out models, the 24 R2025 models, the four RE1 models, Core Interior, Einhoven and the sample projects):CrossSectionArea320 to 337 andNetVolume265 to 282 of 345,OuterSurfaceArea320 to 321 of 327); as built 29,760 to 29,761 (OuterSurfaceArea278 to 279 of 279). 17 columns stay, the same count as at 223968a before the limits;main's, and the IFC sha256 of Core Interior, Einhoven, RE1 Architecture, the 18 held-out models and 108 of the 111 exports ismain's. The three that moved are the two office files andsample-2024-snowdon_towers_sample_architectural(Revit 2024), whose IFC is 136 bytes longer with the same entity total (40,945) and diagnostics. Run 42135731462 (filtered, head f60e0d3,keep_ifc=true) kept its IFCs: the 136 bytes are theOuterSurfaceAreaof its 2 round columns, which are all the round columns it has (RE-353 section 5.1). Revit's IFC4 export of the sample holds no base quantities at all (0IfcElementQuantity; RE-242), so the 2 values are counted apart, not scored equal, different or extra; Revit's own extrusion of each column (outer perimeter times depth) gives rvt-rs's value to 2.4e-7 and 1.5e-7 m², which checks the rule's inputs and not a value Revit wrote;same-project gatescheck passes on 35cfd89 (it does not compare column quantities).Files that exercise the rules: the cut-column rule, the office at permit alone (17 columns, scored equal); the round-column rule, the office as built (1 column) and at permit (the same column), both scored equal, and Snowdon Towers Architectural (2 columns, not scored against a value). No other model of the run has a column either rule takes.
Not measured: that the 17 are the columns the rule is meant to keep, by tag (the scorer counts); and the rules' generality, since the held-out models hold no column either rule takes. The branch now also holds the merge of
mainat daf3610 (CI files only) and the figures.