Skip to content

feat(ifc): a door or window no wall hosts takes its height along its own Y axis, as revit-ifc measures it (#810) - #972

Merged
DrunkOnJava merged 2 commits into
mainfrom
feat/810-hatch-sizes
Oct 25, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
feat/810-hatch-sizes

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

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.

  • Verified end to end on real Revit files. Measure 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.

  • 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).

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)
  • 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)
  • 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
  • Finding recorded as RE-218's addendum

Legal and contribution hygiene

  • Apache-2.0
  • 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.
  • No fixtures

Breaking changes

None.

Related issues

Refs #810

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 25, 2026 08:53
@DrunkOnJava
DrunkOnJava merged commit 36692d7 into main Oct 25, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/810-hatch-sizes branch October 25, 2026 08:58
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
…pes and families from their native records (#323) (#974)

## Summary

Revit 2025 stairs, flights and stringers are now named and typed as
Revit's export names them, from their native records. On puzzbobb's five
R2025 stair models every stair, flight and stringer has Revit's `Name`
and `ObjectType` and a type object with Revit's GlobalId, where none had
a name or a type. Part of #323 (RE-65 §6).

## Motivation

RE-65 names stairs `Family:Stair:ElementId` and their parts `<stair> Run
1` from type flags at byte offsets measured on Revit 2024
(`partition_stairs`), which are absent on 2025. The 2025 native records
hold the same facts by member name, which RE-217 already reads for the
runs' geometry.

## Changes

- `src/native_stairs.rs`: `native_stair_parts` reads
`StairsElement.m_typeId` → `StairsType` (`m_constructionMethod` 0
`Assembled Stair`, 1 `Cast-In-Place Stair`; left/right support type ids
and styles), `StairsRun.m_stairsId` with its own run type (RE-28, as
`native_runs`) and that type's `m_hasMonolithicSupport` (`Monolithic
Run` / `Non-Monolithic Run`), `StairsSupport.m_hostCompId` and
`m_typeId` (`Stringer` where every side of the stair type using that
type has support style 1), and each type's `SymbolInfo.m_name`.
`NATIVE_STAIR_NAME_REVIT_VERSIONS = [2025]`; anything else fails closed.
- `src/partition_schema_mvp.rs`: `attach_native_stair_names`, after
RE-65's 2024 pass: type id, type name, family and element name, a part
numbered in ElementId order among its stair's exported parts of its
kind. A run the body pass already gave its type keeps it and gains its
family and name.
- `examples/probe_323_stair_names_2025.rs`,
`tools/re/stair_names_list.py` (Revit's names beside the native
records).
- `reports/element-framing/RE-65-stair-names.md` §6, `docs/status.md`,
`docs/support-matrix.json`, `README.md` (names row),
`changelog.d/added/stair-names-2025.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.
- [x] Verified end to end on real Revit files. Measure
[40179287273](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40179287273),
this change against `main`, `-f r2025=true -f nordic=true`,
`names_vs_ifc` and `type_objects_vs_ifc`:

| R2025 model (Apache-2.0) | stair parts with Revit's Name and
ObjectType | elements typed as Revit types them | type objects with
Revit's GlobalId |
  |---|---|---|---|
| 13, 14, 15 (Assembled) | 0 → 4 of 4 each | 21 → 25 of 25 each | 17 of
21 → 21 of 25 each |
| 16, 17 (Cast-In-Place) | 0 → 2 of 2 each | 21 → 23 of 23 each | 17 of
21 → 19 of 23 each |

The flight type objects carry #962's `STRAIGHT` / `SPIRAL`, as Revit's
do. No other model's names or types change; that run's office door-size
difference is #972, which the branch predated (now rebased).
- [x] The rule also holds on the BIM4LCA office (Revit 2024, Measure
[40178166596](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40178166596)):
construction 1 on its 13 Cast-In-Place stairs and 0 on its Assembled
one, every type name Revit's. RE-65's byte path keeps naming 2024 files.
- Not measured: landings and precast stairs on 2025 (no oracle has
them); they stay unnamed.

## 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: 2025 landings, precast stairs and other
support styles (RE-65 §6)
- [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-65's addendum

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content. Clean-room declaration: the
members are read from the files' own schema (`Formats/Latest`) by
`native_document`; no Autodesk SDK source, disassembly or NDA material
was used.
- [x] No fixtures

## Breaking changes

None. `native_stair_parts`, `NativeStairPart` and
`NATIVE_STAIR_NAME_REVIT_VERSIONS` are new, in the research surface.

## Related issues

Refs #323
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
… as retitled (#979)

## Summary

The contribution map's rows for #323, #810, #824 and #878 take their
issues' current titles, and ROADMAP's 0.8.0 paragraph names what each
still owes.

## Motivation

Today's landings narrowed four issues: #968 and #974 left #323 only its
roof parts, #972 left #810 two doors, #975 and #978 left #824 the roof
hatch openings, and #970 left #878 the 2015 elements' GlobalIds. The map
says it lists each open issue "with each issue's own title".

## Changes

- `docs/contribution-map.md`: four rows retitled.
- `ROADMAP.md`: #323 (roof parts), #810 (two doors), #824 (roof hatch
openings).

## 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; every map row compared with `gh issue list --state
open`.

## 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] 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 #323, #810, #824, #878
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
…ipes, door sizes and slab outlines (#981)

## Summary

The supported profile and the 1.0 criteria caught up with what 0.8.0 has
landed so far: stairs (riserless and spiral flights, landings,
predefined types, the office's numbers), Revit 2024 pipes, door and
window sizes from the record box (RE-218), and the office's slab
outlines. The 1.0 criteria named the closed 0.6.x milestone as where the
geometry residuals live; they now name 0.8.0 and the W6 census. The
copies fragment's slab count is corrected to what `main` measures.

## Motivation

`docs/supported-profile.md` is the per-row statement 1.0 is judged by.
Its stairs row still said spiral and riserless flights are boxes (drawn
since #959 and #966), its pipes row said Revit 2025 only (Revit 2024
since #954), and its doors row did not have RE-218.

## Changes

- `docs/supported-profile.md`: the floors, pipes, stairs and doors rows.
- `docs/release-1.0-criteria.md`: the W6 row and the closing paragraph
name the 0.8.0 milestone and `tools/re/box_bodies_vs_ifc.py`.
- `changelog.d/fixed/current-sketch-copies.md`: 62 of 63 office slab
outlines on each file with #975 and #978 both on `main` (the fragment's
61 was measured before #975 joined it).

## 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] Every number is from a Measure run on `main` or the PR that landed
it: slab outlines from Measure
[40187355859](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40187355859)'s
base (`main` 3a3b50a, `plan_profiles_vs_ifc`: 62 of 63 on each office
file), pipes from #954, stairs from RE-214 and RE-217, door sizes from
RE-218 and #972. `python3 tools/release/changelog.py check` passes.

## 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/`: docs only, no new entry
- [x] Resolved limitation updated (support matrix, status)
- [x] Limitation documented: unchanged
- [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] 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`)
- [x] Any new test fixtures use synthetic values: none added

## Breaking changes

None.
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.

1 participant