Skip to content

fix(ifc): write framing of stored usage 5 as IfcMember PURLIN on Revit 2026 saves, and let the same-project gate take exactly rst_basic's 102 (#2283) (RE-507) - #2298

Merged
DrunkOnJava merged 4 commits into
mainfrom
fix/2026-purlins-main
Dec 6, 2026

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

On a Revit 2026 save, a framing element of stored structural usage 5 is written as an IfcMember PURLIN, on the occurrence and on its type, as Revit 2026's own export writes it. This moves the 102 purlins of rst_basic's 2026 save, equal to that export by Tag in class and PredefinedType. Their bodies are unchanged. Their beam sets become member sets, and the beam-only Pset_ReinforcementBarPitchOfBeam is left off, as Revit leaves it off a member. Every other release keeps BEAM.

The same-project gate holds a 2026 save to its 2024 and 2025 saves, where these 102 are IfcBeam, so it needs one exception. I've allowed exactly these: a new list, CLASS_BY_RELEASE, names rst_basic's 2026 save, the change from IfcBeam to IfcMember PURLIN and the count 102, and every other field of each is still compared. The projects check fails on any entry, change or count beyond it.

Motivation

#2295 took usage 4 on Revit 2026 saves, since a file Revit 2026 saved can be exported only by Revit 2026 or later. Usage 5 is the same case, with a class change.

Changes

  • src/ifc/category_map.rs: PURLIN_USAGE (5) and PURLIN_MEMBER (IfcMember, PURLIN).
  • src/ifc/export_content.rs: a 2026 save's StructuralFraming record of usage 5 that would be an IfcBeam maps to PURLIN_MEMBER.
  • src/research/partition_schema_mvp/fields.rs: the release mark's doc covers both usages.
  • tools/re/readers_across_saves.py: CLASS_BY_RELEASE. A declared element's member sets are compared under the beam sets' names, and the count must be exact.
  • tools/re/bodies_across_saves.py: a declared purlin is held to the beam its earlier save drew from the same saved mesh, and its class change is counted against the list.
  • tools/ci/check_same_project_projects.py: ORIGINAL_CLASS_BY_RELEASE pins the list; it can only shrink.
  • reports/element-framing/RE-507-framing-usage-classes.md §7 (and §6's Revit 2027 sentence corrected: two held-out models are Revit 2027 exports, unread for framing), docs/maintaining.md, docs/status.md, docs/compatibility.md, docs/evidence.md, changelog.d/fixed/2026-purlins.md; changelog.d/fixed/2026-joists.md says the same about Revit 2027.

Testing

  • Exactly the registered export moves. Measure 47624693673 on ceabf602 against main, unfiltered, with the samples, the BIM4LCA models and the Revit 2025 set, and this branch's gate lists (--ref fix/2026-purlins-main). Registered before the run: only rst_basic's 2026 save moves (the usage census finds usage 5 only in rst_basic, and in Snowdon Towers' structural sample, a 2024 save), and the gate passes on it with the declared 102. Result: 100 of 101 exports and diagnostics identical. On rst_basic 2026, diagnostics.json moves only in IFCBEAM 370 to 268, IFCMEMBER 2 to 104, total_entities and parameter_value_count (down 101: the 102 Pset_ReinforcementBarPitchOfBeam.Reference values go, and the shared section's new IfcMemberType takes LoadBearing). The schema census reads 101 fewer property sets and one more type object. The gate passes on that save: "declared class changes: 102 IfcMember PURLIN here and IfcBeam in an earlier save, as declared"; it compares 370 beams and members and 562 property values, against 460 with the purlins as beams. The same-project gates check passes on ceabf602. main's own export of that save fails these lists, as it should.
  • Held-out and BIMcollab models, Measure 47624695572, same head: 25 of 25 exports and 7 of 7 diagnostics identical.
  • By Tag, on the kept export of 10cbe363 (the same source change, then stacked on fix(ifc): write framing of stored usage 4 as IfcBeam JOIST on Revit 2026 saves (RE-507) #2295's branch; Measure 47613473855), whose ifc.sha256 for rst_basic 2026 equals ceabf602's in the run above (a0eac1b2…), so it is the landing commit's export, against fix(ifc): write framing of stored usage 4 as IfcBeam JOIST on Revit 2026 saves (RE-507) #2295's (Measure 47613416439): of 454 tagged products, exactly 102 differ, each IfcBeam BEAM to IfcMember PURLIN, with identical bodies, and the only set difference is the rebar set. Against Revit 2026's export of the save (a cloud export, kept locally): class and PredefinedType equal on all 372 framing elements, type GlobalIds equal on 96 of the 102 (the other 6 share the 88.9x5.0CHS type Revit also writes as a member type with its own GlobalId), and Pset_MemberCommon's IsExternal, LoadBearing, Reference, Slope and Span equal on all 102.
  • The projects check fails on a list declaring 103, and the gate fails with 101 declared and with the purlins still beams (replayed locally on the kept exports).
  • Commits after ceabf602 change docs only. No unit tests.

Breaking changes

None. Output on Revit 2026 saves changes as above.

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