Repository navigation
feat(ifc)!: the sloped line of a wall's edited elevation profile goes on, along its slope, to the wall's end (#1473) (RE-358) - #1501
Merged
Conversation
DrunkOnJava
force-pushed
the
fix/1473-far-end-stub
branch
2 times, most recently
from
November 9, 2026 00:51
403ce02 to
9e8dd7c
Compare
DrunkOnJava
marked this pull request as ready for review
November 9, 2026 01:40
DrunkOnJava
enabled auto-merge (squash)
November 9, 2026 02:16
DrunkOnJava
disabled auto-merge
November 9, 2026 02:19
DrunkOnJava
force-pushed
the
fix/1473-far-end-stub
branch
from
November 9, 2026 02:25
9e8dd7c to
4ad9e7d
Compare
…on, along its slope, to the wall's end (#1473) (RE-358)
DrunkOnJava
force-pushed
the
fix/1473-far-end-stub
branch
from
November 9, 2026 02:33
4ad9e7d to
7ffb7ad
Compare
12 of 13 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Nov 9, 2026
…ub at 24 ends and finds it the sketch's top line carried on, as RE-358 draws it (#1473) (#1618) ## Summary Revit's body keeps a profile-edited wall's top line on to the wall's end: measured directly at 24 stub ends of 12 walls, Revit's top is the sketch loop's top edge carried on, and rvt-rs's top (RE-358's rule) is Revit's. The report is RE-383, with the scorer that reads it; there is no source change. ## Motivation #1473 was kept open after RE-358 (#1501): the four office walls' volumes matched Revit's, but the issue's done-when also asked for the stub's top to be read from the bytes, or for a measured negative to say what was tested, and RE-358 had not read Revit's top over the stub, only volumes and plan rows. RE-380 (#1608) then showed that Revit clips such a wall by the planes of its profile's sloped hull edges, which is what carries a sloped line on to the wall's end. This reads Revit's own bodies at the ends of the stubs. ## Changes - `tools/re/wall_profile_tops_vs_ifc.py`: a scorer for the output of `probe_1607_wall_profile_lines` (commit `80808447`, the sketch lines of every wall) and an IFC. It takes the file out of its IfcSite placement (`ifc_common.site_frame`) and prints, for each wall whose loop lies in a plane along x or y, the highest point of the body at the ends of the wall's box and of its loop and between, the loop's top at the same places, and the loop's top edge at each end carried on to the stub's end. It scores nothing. - `reports/element-framing/RE-383-profile-wall-stub-tops.md` and `changelog.d/research/383-profile-wall-stub-tops.md`. ## Testing Unit tests are banned in this repository; nothing here is a pure helper. The measurement is end to end on real files, and no output of the exporter changes: - [ ] `full / CI passed` on the final head - [x] Measured on Revit's own exports: Measure [42658044225](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42658044225) (the scorer as the probe scorer on commit `01ecb7c4`, on the two BIM4LCA office files), the same scorer on rvt-rs's export of them from Measure [42655806838](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42655806838) (`main` at `060e8f0a`), and locally on Snowdon Towers' Revit export and rvt-rs's export of it. At all 20 stub ends of the office's 9 walls with one (10 per file) Revit's top is the carried line to 0.0001 ft and rvt-rs's is Revit's to 0.0000 ft; on 4 stub ends of Snowdon's 3 walls read, the same. The numbers are in RE-383 section 2. - No Measure of this change is needed: nothing under `src/` or the gates' files changes. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR: a report and a research fragment; no capability row changes. - [x] A user-visible change has its entry as a fragment under `changelog.d/research/`. - [x] If a limitation was resolved, the docs are updated: #1473's done-when, RE-383 section 5. - [x] If a new limitation was introduced, it is documented in the PR body and in-code: none; what no file with a Revit export can test (a stretch longer than the wall is thick, an arc, an angled wall, the end `rac_basic`'s wall 493612 refuses) is RE-383 section 4. - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files - [x] Reverse-engineering finding: the report RE-383. ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`) - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`). Contributor declaration: every fact here comes from byte observations of the BIM4LCA office's files (CC BY-SA 4.0) and Autodesk's Snowdon Towers sample (counts and equalities only), with Revit's own IFC4 exports of them. No Autodesk or ODA SDK source, disassembly, leaked document or NDA material was used, and nothing was copied or translated from revit-ifc. - [x] No new test fixtures ## Breaking changes None. ## Related issues Closes #1473 (RE-383 section 5 says why its done-when is met). Refs RE-358 (#1501), RE-380 (#1608), #1474.
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 wall whose elevation profile was edited keeps its cut-out past the profile, to the wall's end, where the wall goes on past the profile. The opening that voids the wall (RE-151) stopped at the profile's end, so a stretch of the wall that goes on past it stayed as the box had it while Revit's body goes on along the profile (#1473, RE-358). Two shapes are read: a sloped line, carried along its slope, and the cut-out of a notch (both neighbours level), carried straight out and told from the wall's own top or base by height, not by the order the outline lists its vertices in.
Motivation
#1470 (RE-348) made the ends of the BIM4LCA office's Basement walls 2057668, 2057670, 2058499 and 2058501 Revit's but left each 0.209 ft3 over Revit's volume as built (0.207 at permit): a 0.4101 ft stretch past the profile's end, flat at 183.7343 ft where Revit's top reaches 183.085 ft. #1410's volume done-when rests on it.
Changes
src/research/partition_schema_mvp/walls.rs,fields.rs: the profile's lowest and highest points along its own axis are kept with the wall's openings (m_profile_extent), on the rule's own release list (Revit 2024).src/ifc/export_content/wall_profile.rs(new),export_content.rs: after the wall ends and base cuts, an opening that reaches an end of the profile with one vertical edge is carried on to the wall's end, where the wall goes on past the profile by more than 0.001 ft and the stretch is at most the wall's thickness (a stated heuristic; the record lists no joined wall at the office's stub ends, so none is asked for). Not read:ProfileStubRefusal.extendedis pure and has unit tests of its failure modes next to it.src/ifc/mod.rs,export_decisions.rs,rvt-mcp/src/*.rs,docs/export-diagnostics.md,docs/mcp.md,docs/schemas/export-diagnostics.schema.json,tools/re/wall_rule_counts.py,tests/export_decisions_counts.rs:exported.wall_profile_sources,exported.wall_profile_refusalsand the decisionwall_profile_extension_refused.Testing
Unit tests are banned; measured end to end on Revit's own exports.
The landing code,
8c584d88. Measure 42524360776 againstmainatab5f8e1c, unfiltered (nordic,r2025,samples,holdout,bimcollab,racadv): 114 of 118 exports aremain's; the two office files,rac_basic2024 and Snowdon Architectural move;same-project gatespasses and the semantic check passes. Measure 42522409171 on the same code with the wall scorers: the office's 8 walls are carried on each file (6 high, 2 low, no refusal, none lower than Revit's), six to Revit's volume within 1e-4 ft3, 2056705 and 2056770 still 0.770 ft3 over as built and 0.132 at permit, 0.206 closer than before. Snowdon (local Revit IFC4, counts only): one wall of 1,078 moves,planequal 662 taller 10toequal 672 taller 0 lower 0, volume over Revit's 12.66 to 6.36 ft3. It now takeswall_profile_level_past_both_endswith no refusal;rac_basichas two refusals,profile_cut_not_read_at_the_wall_endandprofile_level_cut_between_two_lines. The head adds only RE-358.The bullets below are the earlier heads' runs, kept as the record of how the rule was narrowed.
Verified end to end on real Revit files (the BIM4LCA office, CC BY-SA 4.0): Measure 42130070528 at
3c461d02againstmainat8060ecc8(nordic=true samples=true sample_years="2024 2024", modelsnordic-office-* core-interior sample-2024-*, the four wall scorers). Eight Basement walls take the rule on each office file (wall_profile_sloped_past_the_high_end6,_low_end2, no refusal): the four of A profile-edited wall's sloped top stops at the profile's end: a 0.41 ft stub stays flat, 0.65 ft too high #1473 go from 0.209 ft3 over Revit's (0.207 at permit) to Revit's within 1.1e-5, withplanrowsequal 100 taller 0; 2056705 and 2056770 (Walls 2056705 and 2056770: Revit cuts their ends back above 182.087 ft and steps them, and neither office file draws that #1474) move 0.206 ft3 towards Revit's; 2070689 and 2070691, which the prediction did not name, go from 0.249 over to Revit's within 4.1e-5. Noloweranywhere. This meets Wall ends Revit steps up the height: the second step is left out (RE-337 follow-up) #1410's volume done-when (2057668 and 2057670 within 1e-5 ft3, no top above Revit's).Outside the office the same run moved two more 2024 files: Autodesk's
rac_basic(walls 198694 at both ends and 493612 at the low end, one refusalprofile_cut_not_read_at_the_wall_end; no Revit export to check them) and Snowdon Towers Architectural (wall 1996082 at the low end, one refusalprofile_slope_leaves_the_cut; against the local Revit export itsplanrows go fromequal 662 taller 10toequal 672 taller 0of 672 and it is the only wall of 1,078 that moves, its volume still 8.16 ft3 over Revit's from 12.59). Core Interior and every other 2024 file are byte for bytemain's.Run 2, Measure 42138664887 at
337ca29cagainstmainatc5bae9ed(nordic=true samples=true sample_years="2024 2027", modelsnordic-office-* core-interior sample-*, default scorers,keep_ifc; 30 exports): that head asked for a joined wall at the carried end, and it carried nothing.exported.wall_profile_sourcesis empty andexported.wall_profile_refusalsisprofile_end_has_no_join_partner8 on each office file, 2 onrac_basicand 1 on Snowdon: every end run 1 carried was refused.ifc.sha256moved on those four files for the markers alone (the scorer diff holdswall_rules.txtonly). Thesame-project gatescheck run is success (9 samples held to their earlier saves, and the Areas on 4 saves), of a head that carried nothing and a gate that does not compare these walls. The probe of run 42096049754 shows why: at all eight office stub ends the record's end step lists no joined wall (m_realJoinedandm_geomJoinedempty) and names one exposed neighbour, face 6, which 175 of 1,601 ends without a joined wall also have. The requirement is dropped in the push after run 2; the level fix, the names and the release list are measured by no run yet.Run 3, Measure 42143081343 at
8e351289againstmain(nordic=true samples=true sample_years="2024 2027", modelsnordic-office-* core-interior sample-*, default scorers,keep_ifc): the rule without the join requirement, the level fix by height, the form names, the release list, the same-project gate on a head that carries, andexported.wall_profile_height_checks, a count of how a carried sloped line stands against the record box's top (a rising line should equal it; the office's falling ones cannot) that nothing is carried or kept by.Against Revit's own public IFC4 export of the Revit 2018
rac_basic(local only, no licence): walls 198694 and 493612 are in it with the same names and Tags, and neither matches before or after the rule (equal 0of 425 and of 646 plan points); the rule moves their volumes 6.37 and 2.79 ft3 towards Revit's, and they stay 35.2 and 7.7 ft3 from it for reasons the rule does not touch. They are unchecked; the same-project gate does not compare them (the profile openings are read on 2024 only).The landing run, Measure 42544325206:
9e8dd7ca, this change rebuilt onmainat228ab52a, against thatmain, unfiltered with samples, the held-out models, racadv and BIMcollab (118 models). 114 exports are byte for bytemain's, and the 4 that move are the ones this 2024-only rule reaches: the BIM4LCA office as built and at permit,rac_basic2024 and Snowdon Towers Architectural 2024. No held-out, R2025, racadv or 2015 to 2023 export moves, no scorer output differs between the sides, andsame-project gatespasses on9e8dd7ca.Audit-honesty checklist
changelog.d/fixed/.Breaking changes
IfcModelgains a public field,wall_profile_height_checks.IfcModelis not#[non_exhaustive], so a struct literal that names every field no longer compiles; one that ends in..IfcModel::default()is unaffected. The rest are additions to theexporteddiagnostics, which are#[non_exhaustive], and one decision reason.Related issues
Closes #1410 (its volume done-when is met: 2057668 and 2057670 within 1e-5 ft3, no top above Revit's).
Refs #1473 (not closed here): its done-when says no other wall moves and the stub is read from the bytes. Seven other walls move (2056705, 2056770, 2070689, 2070691 and three of
rac_basicand Snowdon); the slope is read from the profile's bytes andrac_basic493612's record box carries the line to the wall's end, while that Revit goes on along it is shown against Revit's export on the office and one Snowdon wall.Refs #1474 (stays open): walls 2056705 and 2056770 go from 0.339 ft3 over Revit's at permit to 0.132; what remains is the end step above 182.087 ft.