Repository navigation
feat(ifc): a door or window whose symbol cuts no outline takes its own extents as its overall size (#810) (RE-218) - #960
Merged
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
October 25, 2026 06:15
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 689462095e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
DrunkOnJava
force-pushed
the
feat/810-box-sizes
branch
from
October 25, 2026 06:44
6894620 to
23206b3
Compare
…d box along its own X axis and its height as its OverallWidth and OverallHeight (#810)
… its record box as its size (#810)
…mes a floor or roof, not one without a wall host (#810)
…floor or roof does (#810)
… its door by its X and Y extents; the floor-reference gate, which measured nothing, goes (#810)
…tain wall; the horizontal loop, which measured nothing, goes (#810)
…EADME and changelog for door and window box sizes (#810)
…s no outline, not one whose outline is unread (#810)
DrunkOnJava
force-pushed
the
feat/810-box-sizes
branch
from
October 25, 2026 08:04
5fe7c49 to
c8e573d
Compare
DrunkOnJava
added a commit
that referenced
this pull request
Oct 25, 2026
…the tracker as of 2026-10-25 (#969) ## Summary The contribution map's open remainders, the viewer's "IFC now" line and ROADMAP's 0.8.0 paragraph follow the tracker as of 2026-10-25. ## Motivation The map says it lists each open issue "with each issue's own title"; four titles had moved on (#869, #824, #810, #357) and #844 had closed (#960). The viewer's support line still said releases other than 2024 and 2025 export only 2023 ArcWalls or a scaffold, which has been wrong since 0.4.0, and named only the geometry of 0.6.0. ## Changes - `docs/contribution-map.md`: rows synced to the open issues' titles and milestones; #844 removed; date 2026-10-25. - `viewer/index.html`: "IFC now" names landings, roof planes, pipe cylinders and stair treads and risers (spiral ones included), and the releases README states elements are recovered from (2023; experimentally 2015 to 2022, 2026 and 2027). - `ROADMAP.md`: #844 dropped from the door and window sizes item. ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [ ] `tools/check-local.sh`: CI. - [x] Docs only. Each map row was compared with `gh issue list --state open` (26 open issues: 19 in 0.8.0, 7 in 1.0.0); every row's issue is open and in its section's milestone. The viewer line restates README's support table and status (RE-81, RE-131, RE-199, RE-214, RE-217). ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [ ] A user-visible change has its entry as a fragment under `changelog.d/`: not needed, docs only - [x] Resolved limitation updated (support matrix, status): no capability change - [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 ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content - [x] No fixtures ## Breaking changes None. ## Related issues Refs #844
13 of 14 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Oct 25, 2026
…own Y axis, as revit-ifc measures it (#810) (#972) ## Summary A door or window whose symbol cuts no outline and whose element record names no wall now takes its `OverallHeight` along its own Y axis, as Revit's export measures a family no wall hosts. On both BIM4LCA office files 266 of 269 doors have Revit's `OverallWidth` and `OverallHeight`, where 258 did: the four roof hatches (`$` before) and the four doors of type 3267242 (the type's height before). Part of #810 (RE-218 §6). ## Motivation #810 is the office's doors and windows whose overall size differs from Revit's. #960 (RE-218) sized every loopless door or window set in a wall by its record box and left the eight whose records name no wall alone, because Revit's height for them is a horizontal extent. revit-ifc's `FamilyInstanceExporter.GetDoorWindowDimensionFromSymbol` (CLEANROOM.md source 5) states why: a door's height is `GetMinSymbolHeight` where its host is a `Wall` or `FaceWall`, and otherwise the extent along Y of the symbol geometry's bounding box. ## Changes - `src/partition_schema_mvp.rs`: `attach_cut_loop_sizes` sizes every loopless, upright, axis-aligned door and window by its record box: width along its own X axis as before; height through the box where its record names a wall or curtain wall, else along its own Y axis. - `reports/element-framing/RE-218-box-sizes.md` §6, `docs/status.md`, `docs/support-matrix.json`, `README.md`, `changelog.d/added/door-window-box-sizes.md` (unreleased, counts updated). ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [ ] `tools/check-local.sh`: CI. - [x] Verified end to end on real Revit files. Measure [40177398023](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40177398023), this change against `main` (9afafa7), default models plus `-f nordic=true -f r2025=true`, `door_window_sizes_vs_ifc`: | model | IfcDoor equal before / after | differ before / after | `$` before / after | |---|---:|---:|---:| | BIM4LCA office as built (CC BY-SA 4.0) | 258 / 266 | 6 / 2 | 5 / 1 | | BIM4LCA office at building permit | 258 / 266 | 6 / 2 | 5 / 1 | Every window stays equal (269 and 265), only the two office files' IFC changes, and no other scorer's output does. RE1 Architecture's curtain-wall door 445975 (pinned in `tests/door_overall_sizes.rs`) names its curtain wall and is unchanged. - [x] Measured negative, recorded in RE-218 §6: taking every such door's height along its own Z axis gave the hatches 1.6562 ft and type 3267242 3.3531 ft, both wrong (Measure [40176316442](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40176316442)). ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] A user-visible change has its entry as a fragment under `changelog.d/` - [x] Resolved limitation updated (support matrix, status) - [x] Limitation documented: doors 1756089 and 1765267 stay 0.1137 ft wider than Revit's; an instance turned off the model's axes gets no box size (RE-218 §4, §5) - [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] Finding recorded as RE-218's addendum ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content. Clean-room declaration: the box and transform are byte observations of the files' own records (RE-21, RE-87); the host rule is from revit-ifc, the open-source LGPL exporter CLEANROOM.md lists as source 5, read for behaviour, not copied. No Autodesk SDK source, disassembly or NDA material was used. - [x] No fixtures ## Breaking changes None. ## Related issues Refs #810
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 door or window whose symbol cuts no outline, and whose element record names a wall or a curtain wall, now writes its record box's extent along its own X axis and the box's height as its
OverallWidthandOverallHeight. On the BIM4LCA office all 269 windows (265 at building permit) and 258 of 269 doors now have Revit's sizes, where the windows had none and 187 doors had them. RE1 Architecture's curtain-wall door 445975 does too. RE-218.Motivation
#810: the office's windows and 82 of its doors are drawn by symbols whose
m_pCutLoopsis empty, so RE-215 gives them nothing. rvt-rs wrote$or the type's Width and Height, which on these Finnish families are 10 mm short of Revit's. #844: RE1's curtain-wall door has no cut loop and its type stores no size.Changes
src/partition_schema_mvp.rs:attach_cut_loop_sizesrecords, for each door or window with no cut loop whose element record's reference list names a wall or curtain wall, and that is upright and along a model axis (RE-87 transform), the box's extent along its own X axis and its height (INSTANCE_BOX_SIZE_FIELDS,instance_box_size_from_fields). One transform scan now serves both this and the Opening geometry from the symbol's cut loop on releases other than 2024 and 2025: no Revit export of another release's openings is in CI #227 openings.src/ifc/export_content.rs:BoxWidthandBoxHeightproperties.src/ifc/step_writer.rs: theOverallWidthandOverallHeightchain is now cut loop (RE-215), type opening (RE-93, RE-94), record box, type size (RE-187).tools/re/door_window_sizes_vs_ifc.py: names the first 12 that differ without--list.examples/probe_810_odd_doors.rs,tools/re/window_sizes_list.py,tools/re/window_openings_vs_box.py: the evidence.reports/element-framing/RE-218-box-sizes.md,docs/status.md,docs/support-matrix.json(native-symbol-cut-sizes),README.md,changelog.d/added/door-window-box-sizes.md.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
tools/check-local.sh: CI.Verified end to end on real Revit files. Measure 40167653898, this change against
main(eb369d9), default models plus-f nordic=true -f r2025=true,door_window_sizes_vs_ifc:$Every door and window that was equal stays equal, and none goes from
$to a wrong size. No other scorer's output changes. Core Interior, Einhoven, the other three RE1 models and the 23 R2025 models are byte-identical.The gate was measured, not assumed. Without it, 8 doors whose records name no wall came out wrong, since Revit takes their height along a horizontal axis. A bound-host gate dropped 66 good doors, because curtain-wall doors keep no bound host (Snowdon: three doors and windows cut a different host wall than Revit's export #439). A floor, roof or ceiling reference, and a cut loop flat in XY, each changed nothing (RE-218 §2).
Witness: Core Interior's export is unchanged.
Not re-measured: Snowdon Towers (local only). Its windows that RE-93 sizes from their type's opening keep that rule, which stays ahead of the box.
Audit-honesty checklist
changelog.d/examples/probe_810_odd_doors.rsand dated report RE-218Legal and contribution hygiene
Breaking changes
None.
Screenshots or output samples
N/A.
Related issues
Refs #810
Closes #844