Repository navigation
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
Conversation
…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)
…ion slab and the bracing member (#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.
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
|
3 of 4 tasks
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.
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 floor of the Structural Foundations category is written as
IfcSlabwithBASESLAB, and a framing instance whose stored structural usage is the horizontal bracing's (8) asIfcMember(RE-457).StructuralFoundationwas mapped toIfcFootingandStructuralFramingtoIfcBeamwhole. 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(BASESLABon their four types, none on the occurrences) and the one framing instance with structural usage 8 asIfcMember, where 914 of usage 3 and 6 areIfcBeam. 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_basicnone 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_MEMBERandlookup_for_record, whichlookupis 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_structUsageis read in the pass that already reads the beams' rotations (attach_beam_rotations), intoSTRUCT_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:
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 onmain, in exports and diagnostics; 5 differ, the foundation floors and nothing else: Snowdon Towers Structural 2024 (4 floors) andrac_basic2024 to 2027 (1 floor each).rst_basic's 13 saves do not move. NoIfcMemberis added and noIfcBeamlost anywhere, as no open model carries usage 8. The three commits afterd11e99cbchange documents only.rac_basicandrst_basicof 2024): the 4 floors of Snowdon Towers Structural (andrac_basic's 1) go fromIfcFootingtoIfcSlabwithBASESLABon the occurrence, with the same GlobalIds; 1,282 elements, 4 differ. They gain theFloorsystem family name, anIfcSlabTypecarryingBASESLABand 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 ofrac_basicthe floor holds every property compared equal to the 2025 save's (663 of 663).d11e99cb: success (check runsame-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
docs/status.md,docs/compatibility.md,docs/evidence.md)changelog.d/Legal and contribution hygiene
Breaking changes
None. An
IfcFootingthat is a floor of the category is anIfcSlabnow, and anIfcBeamof usage 8 anIfcMember.Related issues
Refs #1841, #1829.