Skip to content

fix(ifc): a family type table's entries in a Family element's block are no type's value, and no longer raise RE-354's warning (RE-395) - #1633

Merged
DrunkOnJava merged 2 commits into
DrunkOnJava:mainfrom
puzzbobb:fix-core-interior-type-text
Nov 10, 2026
Merged

DrunkOnJava merged 2 commits into
DrunkOnJava:mainfrom
puzzbobb:fix-core-interior-type-text

Conversation

@puzzbobb

Copy link
Copy Markdown
Contributor

Summary

RE-354's warning "1 type text parameter(s) (Fire Rating or Manufacturer) are left out because the copies of a family type table's entry, or an entry and the id-first form, give different values" fires on Core Interior, Snowdon Towers Architectural and Golden Nugget Architektur. It is false: every value it names is in a Family element's block, the family's own type table, not a type's value. type_text_parameters now leaves a Family's table entries out. No IFC changes on 32 projects; the warning goes from 1 to 0 on three files and from 3 to 0 on the fourth. Report: RE-395.

Motivation

#1185 (W7). Core Interior's export warned that a type's Fire Rating is left out, while Revit's own export of the file holds no fire rating. The owner is 17235, the Family I_Single-Flush: its block holds its type table, with Fire Rating rows 2HR, 2HR and 1HR. Each of its five FamilySymbol types (17331 3 x 8 2 Hour, 19270, 19271, 19272, 132875) holds its own 2HR in its own block. probe_re395_family_type_table_owners lists every owner of a table entry with its record's class:

file owners of table entries of which Family disagreeing of which Family
Core Interior 2024 10 3 1 1
Snowdon Towers Architectural 2024 48 1 1 1
Snowdon Towers Architectural 2025 48 1 1 1
Golden Nugget Architektur 2025 443 49 3 3
BIM4LCA office, as built 45 19 0 0
BIM4LCA office, at permit 45 19 0 0
BIM4LCA housing terrain 25 10 0 0

Changes

  • src/research/partition_type_parameters.rs: type_text_parameters reads the record classes of the owners of table entries (family_owners: native_document with no graph class decoded) and leaves out the Family elements before the copies are checked. Where the classes cannot be read, every owner is kept, as before.
  • probes/examples/probe_re395_family_type_table_owners.rs, reports/element-framing/RE-395-family-type-table-owners.md, an addendum to docs/format-reconnaissance.md, changelog.d/fixed/family-type-table-owners.md.

Testing

Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.

  • tools/check-local.sh passes (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)
    • cargo fmt --all --check, cargo clippy --profile ci --workspace --all-targets -- -D warnings and cargo +1.87 check --profile ci --all-targets pass at the branch head. The full tools/check-local.sh --corpus has not been run.
  • Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it
    • probe_re395_family_type_table_owners on Core Interior (MIT, magnetar-io/revit-test-datasets), Snowdon Towers Architectural 2024 (pinned in research/autodesk-sample-projects.tsv) and 2025, the BIM4LCA office as built and at permit and its housing terrain file (CC BY-SA 4.0, research/bim4lca-measure.tsv) and, local only, Golden Nugget Architektur: the table above.
    • rvt-ifc at main (bf54d5f4) against this branch, default, on 32 projects: Autodesk's sample projects of 2023 to 2027 and its five Snowdon Towers 2024 models (pinned), Core Interior, Einhoven, the three BIM4LCA files and, local only, the seven Snowdon Towers 2025 models and the two Golden Nugget models. Every IFC is the same (less FILE_NAME and IfcOwnerHistory), RE-354's office door FireRating and family type Manufacturer values among them. The RE-354 warning goes from 1 to 0 on Core Interior and Snowdon Towers Architectural 2024 and 2025, and from 3 to 0 on Golden Nugget Architektur; no other file had it.
    • Revit's own export of Core Interior holds no fire rating and no object for 17235.
  • If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR
    • Core Interior's IFC is unchanged, so neither observation changes.
  • If this is a performance change: reran tools/bench.sh and attached the before / after
    • N/A. Two runs each of base and branch on Core Interior, Golden Nugget Architektur, Snowdon Towers Architectural 2025 and the office differ by no more than the runs' own spread (RE-395 §5).
cargo run --profile ci -p rvt-probes --example probe_re395_family_type_table_owners -- 2024_Core_Interior.rvt

Audit-honesty checklist

  • README / docs reflect the current state after this PR — no claims of features that are not actually shipped in this PR
  • A user-visible change has its entry as a fragment under changelog.d/<section>/ (see changelog.d/README.md), not in CHANGELOG.md
  • If a limitation was resolved, the "Known limitations" / "What works today" section in the relevant docs is updated
    • N/A: no limitation in the docs names this warning.
  • If a new limitation was introduced, it is documented in the PR body and in-code
    • None introduced. Not traced: why I_Single-Flush's table has a 1HR row none of its types holds (RE-395 §6).
  • Commit messages describe WHAT changed and WHY, not "fix things" or "updates"
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • If this is a reverse-engineering finding: a reproducible probe under probes/examples/ and a dated addendum to docs/format-reconnaissance.md are included
    • probes/examples/probe_re395_family_type_table_owners.rs.

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)
    • The classes and fields read (Family, FamilySymbol, m_familyId, m_pFamilyTypes) are named in the file's own Formats/Latest.
  • Any new test fixtures use synthetic values (testuser, 111111, FY-20XX, etc.) and contain no real-world PII
    • No fixtures.

Breaking changes

None. The IFC is unchanged; one diagnostics warning is no longer raised where it was false.

Screenshots or output samples

probe_re395_family_type_table_owners on Core Interior (the agree lines left out):

owner 17235 Family Fire Rating disagree
classes Family=3 FamilySymbol=7 disagreeing Family=1

Related issues

Refs #1185

… a Family element's block, the family's own type table

Core Interior's export warned that one type text parameter is left out
because a family type table's entries disagree (RE-354), while Revit's
own export of the file holds no fire rating. The owner is the Family
I_Single-Flush (17235), not a type: its block holds the family's type
table, with Fire Rating rows 2HR, 2HR and 1HR, while each of its five
FamilySymbol types holds its own 2HR in its own block.

probe_re395_family_type_table_owners lists every owner of a table entry
with its record's class and whether its copies agree. On seven files
(Core Interior, Snowdon Towers Architectural 2024 and 2025, Golden
Nugget Architektur, and the three BIM4LCA files) all 6 owners whose
entries disagree are Family elements, none a type.
…re no type's value, and no longer raise RE-354's warning (RE-395)

type_text_parameters reads the record classes of the owners of table
entries, with no graph decoded, and leaves out those that are Family
elements before their copies are checked. Where the classes cannot be
read, every owner is kept, as before.

On 32 projects of Revit 2023 to 2027 every IFC is unchanged, RE-354's
office door ratings and manufacturers included. The warning goes from
1 to 0 on Core Interior and Snowdon Towers Architectural 2024 and 2025,
and from 3 to 0 on Golden Nugget Architektur. The export takes no
measurably longer.
@DrunkOnJava
DrunkOnJava merged commit add2c90 into DrunkOnJava:main Nov 10, 2026
37 checks passed
@puzzbobb
puzzbobb deleted the fix-core-interior-type-text branch November 10, 2026 18:30
@DrunkOnJava DrunkOnJava mentioned this pull request Nov 11, 2026
4 tasks done
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
## Summary

Release 0.18.0. Everything merged since 0.17.0 (61 pull requests, `main`
at 979ec42): every element that would be a bounding box drawn from the
mesh Revit saved for it by default on Revit 2023 to 2027, roofs,
railings, instances and curved surfaces read for it, railings aggregated
under their stairs, the quantities and properties of the bodies drawn
from meshes (walls, mullions, panels, roofs, floors, openings, round
columns), four more "Export to IFC As" values, unique type GlobalIds,
standalone family revolutions, a reason on every box that stays one
(#1645), and a cut in the saved-mesh pass's peak memory on large files
(#1690), with a part that remains (#1694). puzzbobb's #1620 and #1633
and BIM4GIB's #1628 and #1632 are credited in the introduction.

The release's own Measure found a cost #1191 had not disclosed: the
default export of a Revit 2023 to 2027 file took 1.4 to 4.4 times the
peak memory of 0.17.0 (Core Interior 305 to 647 MiB, Snowdon Towers
Architectural 1,072 to 3,964 MiB). #1691 cut the large files' share
without changing a body (Core Interior 437 MiB, Snowdon Towers
Architectural 2,086), and what is left is 1.1 to 1.9 times the time and
1.4 to 4.4 times the peak memory on Autodesk's samples of Revit 2023 to
2027, the most on the small `rac_basic` samples (200 to 875 MiB), which
#1691 did not move. The notes, README, docs and help text state the
measured figures, and #1694 tracks the rest. The project owner was shown
these figures before the release was armed and chose to tag with them
stated (2026-11-11).

## Changes

- Version 0.17.0 -> 0.18.0 in:
  - Cargo.toml;
  - rvt-py/Cargo.toml and its `=` pin;
  - rvt-mcp/Cargo.toml and its `=` pin;
  - rvt-wasm/Cargo.toml;
  - tools/stream_evidence/Cargo.toml's pin;
  - viewer/package.json;
  - CITATION.cff (version and date);
  - Cargo.lock and fuzz/Cargo.lock.
- `python3 tools/release/changelog.py assemble`: 42 fragments go into
`[0.18.0]`, with an introduction, what is not measured, the measured
bullets and "Upgrading from 0.17"; #1690's entry arrived after the
assembly and is written into `[0.18.0]` Fixed by hand.
- README: the latest release, the "Upgrading from 0.17" and "after
0.18.0" fragments sentence, and two sentences that still described roofs
on Revit 2023 to 2027 and the saved-mesh default as limited to family
instances (`docs/evidence.md` row likewise).
- The Core Interior witness observations and verdicts, and the synthetic
fixtures, from this pull request's CI run 42949885323: only
`witness_version`, the verdict hashes and the fixtures' version strings
differ.
- The measured cost of the saved-mesh default replaces #1191's first
figures (24.4 s and 1,423 MiB against 21.2 s and 913, "1% to 17% more
time and up to 59% more peak memory"): the changelog, README,
`docs/python.md`, `docs/release-1.0-criteria.md`,
`docs/support-matrix.json`, the `--no-saved-meshes` help text of
`rvt-ifc` and `rvt-gltf` and the module doc of `src/ifc/saved_meshes.rs`
quote Measure run 42956917709; the viewer's wasm memory in the changelog
and `docs/viewer-api.md` is Deploy viewer run 42957158734 on `main` at
979ec42 (Core Interior 308 to 383 MiB, not 324). The source changes are
help text and doc comments only.

## Testing

- `python3 tools/ci/release_preflight.py check --event workflow_dispatch
--ref-type branch --ref-name chore/release-0.18.0 --sha HEAD`: ok,
version 0.18.0.
- `python3 tools/release/changelog.py check`: ok. `rustfmt --edition
2024 --check` on the three Rust files: ok.
- The release's baseline Measure, `main` at 8334726 against v0.17.0
with every flag, the held-out models and timing: run
[42949360321](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42949360321),
read into the changelog's "Measured against 0.17.0" bullets; #1691 moves
no export, run
[42954375538](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42954375538).
- The timing of the final code: run
[42956917709](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42956917709),
v0.17.0 against #1691's head (the same source as `main` from 979ec42:
`git diff --stat` over src, Cargo.toml and Cargo.lock is empty), one
runner per file, the median of three exports, 58 files.
- The dry run RELEASE.md step 7 asks for: `publish.yml` dispatched on
this branch at b001cb3, [run
42949890449](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42949890449),
every job green (the wheels installed and opening a model, `cargo
install` with the CLI sample, the docs.rs preview, the viewer load
smoke), and again at bd6875d after #1691 and the notes: [run
42959626601](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42959626601);
the head since moved two commits that change CHANGELOG.md only: 4762e14
(the table's own minimum peak ratio, 1.42, an introduction sentence on
the cost, a bullet's lead) and 13373e7 (every cost reads from 0.17.0's
figure to 0.18.0's). Nothing was published.
- The same-project gates, which `arm.sh` needs on a commit holding the
PR's edits under `src/` (help text and doc comments only): Measure run
[42961127420](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42961127420)
on 4762e14, `samples=true`, default scorers: pass, 15 samples held to
their earlier saves and the Areas on 4 saves and on the 2021 save.

Unit tests: N/A.

## Audit-honesty checklist

- [x] Each entry keeps its caveats; the introduction lists what is not
measured.
- [x] The saved-mesh cost is the measured one, with what is still above
0.17.0's named (#1694).
- [x] No emojis, private paths or PII.

## Legal and contribution hygiene

- [x] Apache-2.0. No Autodesk source, internals or NDA material.

## Breaking changes

The saved-mesh default and its library names
(`SavedMeshChoice::Default`, `saved_meshes::default_scope`, new
`SavedMeshChoice::DoorsAndWindows`), listed under "Upgrading from 0.17".
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.

2 participants