Skip to content

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
DrunkOnJava merged 2 commits into
mainfrom
feat/saved-mesh-not-offered
Nov 11, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
feat/saved-mesh-not-offered

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

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 its SavedMeshRefusal, so that exported.saved_mesh_refusals counts 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.md said 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_PREFIX and 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 main at 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_2027 reasons, 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_offered reason.

  • One scorer line moves that the registered rows missed: the by-reason table of tools/re/box_bodies_vs_ifc.py on the Vitoria project ((none) becomes not_offered: release_outside_2023_to_2027, same counts).

  • tools/check-local.sh passes: not run locally (no local builds here); CI's full run is green on this head (rustfmt --check on 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

  • README / docs reflect the current state after this PR: the diagnostics reference and its schema name the new reasons
  • A user-visible change has its changelog fragment under changelog.d/changed/
  • No emojis, private paths or personal addresses in committed files

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • No Autodesk proprietary source, decompiled internals or NDA'd SDK content
  • No new test fixtures

Breaking changes

None. Exports of Revit 2008 to 2022 files gain one property in RvtElementRecordGeometry on each box body, and exported.saved_mesh_refusals gains a key.

…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 DrunkOnJava added area:ifc Work in the ifc area. type:feature New product or library capability. labels Nov 11, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 11, 2026 02:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:ifc Work in the ifc area. type:feature New product or library capability.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Box bodies: the diagnostics and Measure say why each element stayed a box, by class and reason

1 participant