Skip to content

feat(ifc): a door or window whose symbol cuts no outline takes its own extents as its overall size (#810) (RE-218) - #960

Merged
DrunkOnJava merged 12 commits into
mainfrom
feat/810-box-sizes
Oct 25, 2026
Merged

DrunkOnJava merged 12 commits into
mainfrom
feat/810-box-sizes

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

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 OverallWidth and OverallHeight. 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_pCutLoops is 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_sizes records, 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: BoxWidth and BoxHeight properties.
  • src/ifc/step_writer.rs: the OverallWidth and OverallHeight chain 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:

    model class equal differ $
    BIM4LCA office as built (CC BY-SA 4.0) IfcWindow 0 → 269 of 269 0 → 0 269 → 0
    IfcDoor 187 → 258 of 269 11 → 6 71 → 5
    BIM4LCA office at building permit IfcWindow 0 → 265 of 265 0 → 0 265 → 0
    IfcDoor 187 → 258 of 269 9 → 6 73 → 5
    RE1 Architecture (MIT) IfcDoor 4 → 5 of 5 0 → 0 1 → 0

    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

  • README / docs reflect the current state after this PR
  • A user-visible change has its entry as a fragment under changelog.d/
  • Resolved limitation updated (support matrix, status, README)
  • Limitations documented (RE-218 §4–§5, support matrix): 8 office doors whose records name no wall keep what they had, 2 are 0.1137 ft over Revit's width, a turned instance gets no box size, and windows' openings are unchanged (Revit's runs 18 mm lower and 100 mm past the wall, the families' void geometry)
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • Reverse-engineering finding: probe examples/probe_810_odd_doors.rs and dated report RE-218

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk proprietary content
  • No fixtures

Breaking changes

None.

Screenshots or output samples

N/A.

Related issues

Refs #810
Closes #844

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 25, 2026 06:15

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Comment thread src/partition_schema_mvp.rs Resolved
@DrunkOnJava
DrunkOnJava merged commit fa7e56b into main Oct 25, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/810-box-sizes branch October 25, 2026 08:20
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
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
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

RE1's curtain-wall door 445975 writes no OverallWidth/OverallHeight: its symbol cuts no outline and its type stores no size

1 participant