Skip to content

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
DrunkOnJava merged 3 commits into
mainfrom
fix/1838-undeclared-record-wording
Nov 13, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
fix/1838-undeclared-record-wording

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Summary

rvt-ifc, the diagnostics, rvt-inspect and 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 of Partitions/0 is 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 (its kind, 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

Related issues

Closes #1838. Refs #1829.

…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.
…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.
@DrunkOnJava
DrunkOnJava merged commit 3b745d5 into main Nov 13, 2026
37 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1838-undeclared-record-wording branch November 13, 2026 06:33
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`.
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.

Revit 2027: 84 framing records of one save are read with no ElementId, and the save a day before reads all 84 (#1829)

1 participant