Skip to content

feat(ifc): Revit 2025 stairs, runs and stringers take their names, types and families from their native records (#323) - #974

Merged
DrunkOnJava merged 5 commits into
mainfrom
feat/323-stair-names-2025
Oct 25, 2026
Merged

DrunkOnJava merged 5 commits into
mainfrom
feat/323-stair-names-2025

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

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.

  • Verified end to end on real Revit files. Measure 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 feat(ifc): a stair flight takes the predefined type its treads give, STRAIGHT or SPIRAL (#323) #962's STRAIGHT / SPIRAL, as Revit's do. No other model's names or types change; that run's office door-size difference is feat(ifc): a door or window no wall hosts takes its height along its own Y axis, as revit-ifc measures it (#810) #972, which the branch predated (now rebased).

  • The rule also holds on the BIM4LCA office (Revit 2024, Measure 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

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

Legal and contribution hygiene

  • Apache-2.0
  • 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.
  • 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
DrunkOnJava enabled auto-merge (squash) October 25, 2026 09:21
@DrunkOnJava
DrunkOnJava merged commit ba38971 into main Oct 25, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/323-stair-names-2025 branch October 25, 2026 09:29
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
…e loop, arc and all, one run tread thick (#824) (#975)

## Summary

A stair landing that is not monolithic and takes its tread from its runs
is now drawn as that tread: its native outline loop, lines and arc, from
its top down its runs' tread thickness, as one `IfcIndexedPolyCurve`
extrusion. The BIM4LCA office's landing 3058084, beside its spiral run,
goes from its storey-tall record box to Revit's body (1.462462 ft³ in
both, every vertex within 0.0000022 ft). Part of #824 (RE-214 §7).

## Motivation

#824's remainder named two office slabs whose top surfaces differ from
Revit's: this landing (an arc where it meets the spiral) and roof
2991742. RE-214 left the landing as its box because its type is not
monolithic and its outline has an arc.

## Changes

- `src/native_stairs.rs`: `native_tread_landings` reads the landing's
`CurveLoop` at its top (`GLine`: `m_origin`, `m_dirVec`, `m_endParams`;
`GArc`: `m_center`, `m_xVec`, `m_yVec`, `m_radius`, `m_endParams`;
closed, every curve starting where the last ended), its type's
`m_hasMonolithicSupport` / `m_hasTread` / `m_useSameTriserAsRun`, and
the `m_treadThickness` its stair's runs' types share; `LandingCurve`,
`NativeTreadLanding`.
- `src/partition_schema_mvp.rs`: `attach_landing_slabs` records it
(`LANDING_TREAD_OUTLINE_FIELD`, `LANDING_TREAD_BOTTOM_FIELD`,
`LANDING_TREAD_TOP_FIELD`) where it lies in the record box;
`landing_tread_body_from_fields`.
- `src/ifc/export_content.rs`: `landing_tread_solid` writes the loop as
an `IfcIndexedPolyCurve` (lines and three-point arcs,
counter-clockwise), `BodySource` `native_landing_tread`.
- `examples/probe_824_landing_loops.rs` (the loop and the type members).
- `reports/element-framing/RE-214-landing-slabs.md` §7,
`docs/status.md`, `docs/support-matrix.json`
(`element-record-landing-slabs`), `README.md` (stairs row),
`changelog.d/added/tread-landing.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
[40181002275](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40181002275),
this change against `main` (ba38971), `-f nordic=true -f r2025=true`:

  | | before | after |
  |---|---|---|
| 3058084's body (`stair_bodies_vs_ifc`), both files | record box,
196.06 ft³ | 1.462462 ft³ = Revit's; every Revit vertex within 0.0000022
ft |
| office slabs with Revit's outline within 0.01 ft
(`plan_profiles_vs_ifc`), as built | 61 of 63 | 62 of 63 |
  | the same, at building permit | 59 of 63 | 60 of 63 |

Only the two office files' IFC changes for this (the run's R2025
differences are #974, which the branch predated; now rebased).
- Not covered: a landing whose stair's runs name different tread
thicknesses, or whose type takes its own tread; they keep their box (not
measured).

## 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 (RE-214 §7)
- [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-214'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_tread_landings`, `LandingCurve`, `NativeTreadLanding`,
`LandingTreadBody` and the field constants are new, in the research
surface.

## Related issues

Refs #824
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
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