Repository navigation
feat(ifc): a box body that no saved-mesh pass was offered says why, so every box has a reason on every release (#1645) - #1682
Merged
Conversation
…o every box has a reason on every release (#1645) The pass runs on Revit 2023 to 2027 only, so the boxes of an older file, of a caller that turned the pass off, of a file whose release could not be read and of a pass that stopped on an error kept no SavedMeshRefusal. note_not_offered gives each of them not_offered: and the reason, so exported.saved_mesh_refusals counts every box on every release. The candidate test moves into is_replaceable_box, which the pass and the new function share.
DrunkOnJava
marked this pull request as ready for review
November 11, 2026 02:23
This was referenced Nov 11, 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
A box body that no saved-mesh pass was offered now says why. An element drawn as a record box, a beam's box or a turned box in a Revit 2008 to 2022 file (whose saved graphics are not read), in an export whose caller turned the pass off, in a file whose release could not be read, or after a pass that stopped on an error gets
not_offered:and the reason (release_outside_2023_to_2027,saved_meshes_off,release_not_read,pass_failed) as itsSavedMeshRefusal, so thatexported.saved_mesh_refusalscounts every box on every release. The pass itself selects what it selected before, and the files of Revit 2023 to 2027 do not change.Motivation
Closes #1645, whose last unmet clause this is: "the boxes that were never offered a mesh (a release outside 2023 to 2027)". #1647 gave a reason to each candidate the pass read and #1669 to each box it did not take as a candidate;
docs/export-diagnostics.mdsaid a box of an older release "has none". The reason is trivial there (the release), and it is what lets one table say why every box is one.Changes
src/ifc/saved_meshes.rs:is_replaceable_box, the candidate test the pass applied inline, now a function;note_not_offered, which marks each such box.src/ifc/export_pipeline.rs: where no pass was offered (and the export is not a placeholder) or the pass failed, the boxes are marked and the diagnostics recounted.src/ifc/export_content.rs:SAVED_MESH_NOT_OFFERED_PREFIXand the property's documentation.docs/export-diagnostics.md,docs/schemas/export-diagnostics.schema.json,changelog.d/changed/1645-saved-mesh-not-offered.md.Testing
No unit tests added. Measured end to end on Measure's models: the unfiltered run of this head (every flag, run 42944398428) against
mainat 134db97, judged against the rows registered on #1645 before it ran. The full result is on #1645 (comment 6785511772).Revit 2015 to 2022: 45 of 45 exports moved. The 31 that report diagnostics carry 68,579 box bodies and gain 68,579
not_offered: release_outside_2023_to_2027reasons, equal on every model. The other 14 are licence-less files whose results leave the runner as counts only, so their box counts are not measured.Revit 2023 to 2027: 0 of 81 exports moved, and none of the 70 with diagnostics gains a
not_offeredreason.One scorer line moves that the registered rows missed: the by-reason table of
tools/re/box_bodies_vs_ifc.pyon the Vitoria project ((none)becomesnot_offered: release_outside_2023_to_2027, same counts).tools/check-local.shpasses: not run locally (no local builds here); CI's full run is green on this head (rustfmt --checkon the three Rust files passes)Verified end to end on real Revit files: Measure run 42944398428, above
If this touches the IFC exporter: the witness verdicts replay or the changed observations are refreshed: Core Interior is Revit 2024 and did not move (0 of 81 exports of 2023 to 2027 moved)
If this is a performance change: N/A
Audit-honesty checklist
changelog.d/changed/Legal and contribution hygiene
Breaking changes
None. Exports of Revit 2008 to 2022 files gain one property in
RvtElementRecordGeometryon each box body, andexported.saved_mesh_refusalsgains a key.