Repository navigation
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
Conversation
…t 2026 saves, and let the same-project gate take exactly rst_basic's 102 (#2283) (RE-507)
…runs and the purlins' scored values
This was referenced Dec 6, 2026
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
On a Revit 2026 save, a framing element of stored structural usage 5 is written as an
IfcMemberPURLIN, on the occurrence and on its type, as Revit 2026's own export writes it. This moves the 102 purlins ofrst_basic's 2026 save, equal to that export by Tag in class andPredefinedType. Their bodies are unchanged. Their beam sets become member sets, and the beam-onlyPset_ReinforcementBarPitchOfBeamis left off, as Revit leaves it off a member. Every other release keepsBEAM.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, namesrst_basic's 2026 save, the change fromIfcBeamtoIfcMemberPURLINand 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) andPURLIN_MEMBER(IfcMember,PURLIN).src/ifc/export_content.rs: a 2026 save'sStructuralFramingrecord of usage 5 that would be anIfcBeammaps toPURLIN_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_RELEASEpins 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.mdsays the same about Revit 2027.Testing
ceabf602againstmain, 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: onlyrst_basic's 2026 save moves (the usage census finds usage 5 only inrst_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. Onrst_basic2026,diagnostics.jsonmoves only inIFCBEAM370 to 268,IFCMEMBER2 to 104,total_entitiesandparameter_value_count(down 101: the 102Pset_ReinforcementBarPitchOfBeam.Referencevalues go, and the shared section's newIfcMemberTypetakesLoadBearing). 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 onceabf602.main's own export of that save fails these lists, as it should.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), whoseifc.sha256forrst_basic2026 equalsceabf602'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, eachIfcBeamBEAMtoIfcMemberPURLIN, 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 andPredefinedTypeequal on all 372 framing elements, type GlobalIds equal on 96 of the 102 (the other 6 share the88.9x5.0CHStype Revit also writes as a member type with its own GlobalId), andPset_MemberCommon'sIsExternal,LoadBearing,Reference,SlopeandSpanequal on all 102.ceabf602change docs only. No unit tests.Breaking changes
None. Output on Revit 2026 saves changes as above.