Repository navigation
fix(ifc): element records in records of ElementIds the element table does not declare are reported as what they are, not as an incomplete IFC (#1838) - #1874
Merged
Conversation
…does not declare are reported as what they are, not as an incomplete IFC (#1838) A Revit 2027 structural model (#1829) read with 0.18.0 reported 84 element records as a layout this release cannot locate, with the IFC incomplete. The same-save comparison its owner made shows they were roof framing deleted between two saves: the record chain of Partitions/0 is the same in both, the element table declares 143 fewer of its records, Revit's export of the latest save holds none of the 84, and every element it does hold is in rvt-rs's export (2,355 of 2,355 by GlobalId). Since RE-35 a frame is counted as unattributed only when it sits in a record of the chain whose ElementId the table does not declare. A file saved in place keeps the records of elements deleted since its last Save As. An element table read short would look the same and leave real elements out, as it did on Snowdon Towers before RE-41, so the count, the score and the skipped item stay and the texts give both readings: the command line's and the diagnostics' warnings, rvt-inspect's failure mode, readiness and next step, and the viewer's card, with the docs and the schema description. Only wording changes.
DrunkOnJava
marked this pull request as ready for review
November 13, 2026 06:08
…as measured on one model, not a rule (#1838) Review of #1874 by rvtDevelop: every user-facing string stated the cause as a rule ("a file saved in place keeps the records of elements deleted since its last Save As; if nothing was deleted, the IFC is incomplete"), from one model, while the field's own doc names a second cause (an element table read short, Snowdon Towers before RE-41). Someone with a different cause, such as a design option or something not yet seen, would conclude "I deleted things, so the export is complete". The command line's warning, the diagnostics' warning, rvt-inspect's failure mode and next step, the viewer's card, the schema description, the docs and the changelog entry now say that on the one model compared with Revit's export of the same save such records were elements deleted since the file's last Save As (#1838), that other causes are known or not ruled out, and that if nothing was deleted the model is likely incomplete. rvt-inspect's next step advises comparing the export's element counts with Revit's whatever the cause. The count, the score and the item are unchanged.
This was referenced Nov 13, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Nov 13, 2026
## Summary Release metadata for v0.21.0 (RELEASE.md, steps 4 to 7), cut from `main` at `9b7dee8c` and merged with `main` up to `b76ee16e`: - every version file moves to 0.21.0 (`tools/release/bump_version.py`), and `CITATION.cff` is dated 2026-11-13; - the five fragments under `changelog.d/` (#1843, #1838, #1840, #1854, #1871) are assembled into a `[0.21.0]` section, with its introduction, what is not measured, the comparison with 0.20.0 and "Upgrading from 0.20"; - the README's release lines name v0.21.0; - Core Interior's two witness observations and verdicts, and the two synthetic IFC fixtures, are taken from CI's artifacts for `10b0a299` (run 43382001273): only `witness_version`, the verdict hashes and the version strings of the IFC header and `IFCAPPLICATION` differ. **Why now.** The GlobalId pair (#1850 and #1859) is in `main`: the GlobalIds an export writes hold from one save of a project to the next, which 0.20.0 was cut without so that they ship together. `rvt-diff --elements` (#1843) and the `--redact` fix for Linux home folders (#1871) are in the same release, and #1874 corrects a warning that called deleted elements an incomplete IFC. Measured and rehearsed: - the comparison with 0.20.0 is in the section, from Measure runs [43381774360](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43381774360) (unfiltered, `main` at `9b7dee8c` against `v0.20.0`'s `9bb58fe1`: 146 of 146 exports move and `diagnostics.json` is equal on all 121 models that publish one; the MEP samples' `bodies_across_saves` goes from FAIL to PASS on 6 saves, and no other scorer output differs; that the exports move only in their GlobalIds is what #1850's and #1859's own line-by-line comparisons found, the run compares hashes) and [43381779893](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43381779893) (timing: 75 files at 0.94 to 1.06 times the time, median 1.00, and 0.99 to 1.01 times the peak memory). The release adds only notes, witness files, version strings and fixtures to `9b7dee8c`, apart from the probes and the one docs line (#1876, #1877, #1878, #1880) that landed after it and move no export; - `publish.yml` rehearsal on this branch: [43383528785](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43383528785), on `bfa6859c`; only the changelog has changed since. ## Testing - `python3 tools/release/changelog.py check` passes: no fragment is left. - `bump_version.py` checks the version files with the preflight's own `check_versions`. - The PII guard runs `release_preflight.py` on this PR. ## Related issues Release 0.21.0. Milestone `0.21.0`.
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
rvt-ifc, the diagnostics,rvt-inspectand the viewer said that the element records a file's element table does not declare use a layout this release cannot locate, and that the IFC is incomplete. The one case with a Revit export of the same save, a Revit 2027 structural model reported on #1829, shows all 84 of its records were roof framing deleted between two saves: the record chain ofPartitions/0is the same in both saves, the table declares 143 fewer of its records, Revit's export of the latest save holds none of the 84, and every element it holds is in rvt-rs's export (2,355 of 2,355 by GlobalId). A file saved in place keeps the records of elements deleted since its last Save As, which is what they were on that one model.An element table read short would look the same and leave real elements out, as it did on Autodesk's Snowdon Towers 2024 architectural sample before RE-41, and other causes are not ruled out. So the count, the readiness score and the skipped item stay, and each text says what was measured on the one model (such records were elements deleted since the file's last Save As, #1838) and that the model is likely incomplete if nothing was deleted, not a rule (rvtDevelop's review). Wording only.
Motivation
#1838, found by the reporter of #1829, who then compared the saves with Revit's export of the same save.
Changes
src/bin/rvt_ifc.rs: the warning.src/ifc/mod.rs: the diagnostics' first warning, and the field's doc.src/bin/rvt_inspect.rs: the failure mode's title and summary (itskind,incomplete_model, is unchanged), the readiness summary and the next step.viewer/src/main.ts: the card's title and summary, and the field's comment.docs/export-diagnostics.md,docs/inspect.md,docs/schemas/export-diagnostics.schema.json: what the records are, with the counts.changelog.d/fixed/1838-undeclared-element-records.md.Testing
kindare as they were, and no test or gate pins the old texts (searched acrosssrc,tests,viewer,docs,tools).rustfmt --edition 2024 --check,tools/release/changelog.py checkandtools/ci/api-doc-ids.pypass locally.mainat9f43fe37):ifc.sha256identical on 146 of 146,diagnostics.jsonon 121 of 121, no scorer differs beyond what only the head writes, andsame-project gatespass one90f943a. That head was cut before fix(ifc): an element's further pieces take their GlobalIds from the element's Revit GlobalId, so they hold from save to save (#1840) #1850 and the wording is hedged since, somainis merged in and a lighter run (the samples, no base side; rows on Revit 2027: 84 framing records of one save are read with no ElementId, and the save a day before reads all 84 (#1829) #1838) gives the gates verdict for the current head: the gate onmainis now fix(ifc): an element's further pieces take their GlobalIds from the element's Revit GlobalId, so they hold from save to save (#1840) #1850's stricterbodies_across_saves.py, which a head without fix(ifc): an element's further pieces take their GlobalIds from the element's Revit GlobalId, so they hold from save to save (#1840) #1850 fails.diagnostics.jsonof the release's run holds it, and everyunexported_element_recordsis 0), so none of the new texts appears in a measured output, and the one comparison with Revit's export is the reporter's, as counts.Related issues
Closes #1838. Refs #1829.