Skip to content

fix(ifc): a floor of the Structural Foundations category is written as IfcSlab with BASESLAB and a horizontal bracing as IfcMember, where family and wall footings and every other usage are as before (#1841) (RE-457) - #1918

Merged
DrunkOnJava merged 7 commits into
mainfrom
fix/1841-foundation-slab
Nov 13, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

A floor of the Structural Foundations category is written as IfcSlab with BASESLAB, and a framing instance whose stored structural usage is the horizontal bracing's (8) as IfcMember (RE-457). StructuralFoundation was mapped to IfcFooting and StructuralFraming to IfcBeam whole. Family-instance and wall footings, and every other usage, are as before.

Motivation

#1841, found by a reporter's Revit 2027 structural model compared with Revit's own IFC4 export (#1829): of 1,925 elements in common, Revit writes the 59 foundation slabs as IfcSlab (BASESLAB on their four types, none on the occurrences) and the one framing instance with structural usage 8 as IfcMember, where 914 of usage 3 and 6 are IfcBeam. The reporter's counts are the only oracle: no model Measure holds with a Revit export has a foundation or a bracing. The floor is told from a footing by the class its record names (Snowdon Towers Structural has 4 floors among 90 footings, rst_basic none among 36). Rows were registered on #1841 before the Measure was dispatched.

Changes

  • src/ifc/category_map.rs: FOUNDATION_SLAB, HORIZONTAL_BRACING_USAGE, HORIZONTAL_BRACING_MEMBER and lookup_for_record, which lookup is called through for a decoded element.
  • src/ifc/export_content.rs: the mapping of an element takes its record's class (RE-76) and a framing instance's usage.
  • src/research/partition_schema_mvp/framing.rs, fields.rs: m_structUsage is read in the pass that already reads the beams' rotations (attach_beam_rotations), into STRUCT_USAGE_FIELD; the pass no longer leaves out a beam a column cuts, which still gets no rotation.
  • reports/element-framing/RE-457-foundation-slab-and-bracing-member.md, docs/status.md, docs/compatibility.md, docs/evidence.md, changelog.d/fixed/1841-foundation-slab-bracing-member.md.

Testing

Unit tests are banned in this repository; the change is measured end to end:

  • Unfiltered Measure of d11e99cb (43465218624; rows on IFC class: foundation slabs are written as IfcFooting where Revit writes IfcSlab, and one framing member as IfcBeam where Revit writes IfcMember (#1829) #1841): 146 models, every flag. 141 export byte for byte as on main, in exports and diagnostics; 5 differ, the foundation floors and nothing else: Snowdon Towers Structural 2024 (4 floors) and rac_basic 2024 to 2027 (1 floor each). rst_basic's 13 saves do not move. No IfcMember is added and no IfcBeam lost anywhere, as no open model carries usage 8. The three commits after d11e99cb change documents only.
  • The kept exports of both sides (43465228601, Snowdon Towers Structural, rac_basic and rst_basic of 2024): the 4 floors of Snowdon Towers Structural (and rac_basic's 1) go from IfcFooting to IfcSlab with BASESLAB on the occurrence, with the same GlobalIds; 1,282 elements, 4 differ. They gain the Floor system family name, an IfcSlabType carrying BASESLAB and a floor's property sets (3 more sets each); the first kept run (43463267911) showed no type object for them, which is why the system family name is derived for them. On the 2026 and 2027 saves of rac_basic the floor holds every property compared equal to the 2025 save's (663 of 663).
  • Same-project gates on d11e99cb: success (check run same-project gates).

Not measured: the reporter's model (confidential; their counts after the release are the check) and the member's PredefinedType, which is not read yet.

Audit-honesty checklist

  • README / docs reflect the current state after this PR (docs/status.md, docs/compatibility.md, docs/evidence.md)
  • A user-visible change has its entry as a fragment under changelog.d/
  • 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

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (the exporter's source is cited, not quoted)
  • No new test fixtures

Breaking changes

None. An IfcFooting that is a floor of the category is an IfcSlab now, and an IfcBeam of usage 8 an IfcMember.

Related issues

Refs #1841, #1829.

…s IfcSlab with BASESLAB, where isolated and wall footings stay IfcFooting (#1841) (RE-457)
…izontal bracing's is written as IfcMember, where every other stays IfcBeam (#1841) (RE-457)
…e field in text, since rustdoc cannot link a private item from a public one (#1841)
… system family, so it has a type object that carries BASESLAB (#1841) (RE-457)
…loors become IfcSlab with a BASESLAB type in two samples, nothing else moves (#1841) (RE-457)
… Towers Structural and four rac_basic saves move, the other 141 exports do not (#1841) (RE-457)

The unfiltered run (146 models, every flag) at d11e99c exports 141 models
byte for byte as main does. The five that differ are the foundation floors
already read on the kept exports: Snowdon Towers Structural 2024 (4 floors)
and rac_basic 2024 to 2027 (1 floor each, 3 more property sets, one more
IfcSlab and one fewer IfcFooting). rst_basic's thirteen saves do not move, and
the same-project gates pass on the measured commit. No usage-8 framing
instance exists in an open model, so the member rule moves no export.
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Self-approval by rvtReview, under Griffin's 2026-11-10 and 2026-11-12 answers that either maintainer session may approve its own work; rvtDevelop's second read is welcome after it lands. I re-read the whole source diff at 0a926a69 (the three commits after the measured d11e99cb change documents only) once full / CI passed was green:

  • lookup_for_record is the only new decision: a StructuralFoundation whose own record class is Floor is FOUNDATION_SLAB; a StructuralFraming whose stored usage is 8 is HORIZONTAL_BRACING_MEMBER; everything else goes through lookup as before. The record class and the usage are read off the decoded element's fields in append_typed_production_elements, the only place the mapping is chosen.
  • attach_beam_rotations now selects every framing element, reads m_structUsage once per record in the pass that already ran, and still gives a column-cut beam no rotation. A usage whose copies disagree (native_json::agree) is not given, so such a beam stays an IfcBeam: fail closed.
  • attach_system_family_names gives a foundation floor the Floor system family, which is what makes its type object (IfcSlabType with BASESLAB) and its Floor:<type>:<id> name; the first kept run showed these were missing without it.
  • Measured by the unfiltered run 43465218624 at d11e99cb (146 models, every flag): 141 byte for byte as on main, 5 differ and only in the foundation floors (Snowdon Towers Structural 2024: 4, rac_basic 2024 to 2027: 1 each); the same-project gates check run passed on d11e99cb. RE-457 section 5 has the rows.
  • What stays unmeasured is said in the PR and the report: the reporter's model (their counts after a release are the check) and the member's PredefinedType.

@DrunkOnJava
DrunkOnJava merged commit a7ba97e into main Nov 13, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1841-foundation-slab branch November 13, 2026 17:38
DrunkOnJava added a commit that referenced this pull request Nov 14, 2026
…BRACE, its occurrence none (#1841) (#1968)

## Summary

On Revit 2027, a horizontal bracing's `IfcMemberType` now carries
`PredefinedType` `BRACE`, where it carried `NOTDEFINED`. Its occurrence
keeps none, as before. This is the part of #1841 still open after #1918
(HWT-25's Revit 2027 structural model: Revit's `IfcMemberType` for the
bracing has `BRACE`).

## Motivation

#1918 writes the bracing as `IfcMember` (structural usage 8, read from
`m_structUsage`), and the reporter confirmed it on 0.22.0. The type's
value was left out because nothing measured it on the occurrence. On
Revit 2027 the occurrence of a member writes no `PredefinedType`
(`predefined_type_left_out`, RE-427), so giving the mapping `BRACE`
there changes the type object alone. That is the narrower fix rvtReview
chose on #1841, and it stays on the one release the reporter measured.

## Changes

- `partition_schema_mvp/framing.rs` and `fields.rs`: a framing element
whose stored usage is `HORIZONTAL_BRACING_USAGE` on
`BRACE_TYPE_REVIT_VERSIONS` (2027) carries `BRACE_TYPE_FIELD`;
`attach_beam_rotations` takes the release.
- `category_map.rs`: `HORIZONTAL_BRACING_BRACE`, `IFCMEMBER` with
`BRACE`.
- `export_content.rs`: an element mapped to `HORIZONTAL_BRACING_MEMBER`
that carries the field takes `HORIZONTAL_BRACING_BRACE`.
- A changelog fragment.

## Testing

No model Measure fetches holds a horizontal bracing (the reporter's is
confidential, counts only), so no export can move. Measure
[43544392778](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43544392778),
with samples (2015 to 2027) and r2025 against `main`: registered before
it runs, every `ifc.sha256` equal and the same-project gates passing.
The value itself is the reporter's to confirm on CHL, as for #1918.

- [ ] `tools/check-local.sh`: no local builds; `rustfmt --check` passes;
CI runs the rest.

## Audit-honesty checklist

- [x] Gated to the release measured; nothing claimed beyond the
reporter's count.
- [x] A changelog fragment.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk source.

Part of #1841.
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