Skip to content

fix(ifc)!: a Revit 2026 or 2027 save is written without an ObjectType, as Revit's own export writes none (#1472) - #1601

Merged
DrunkOnJava merged 3 commits into
mainfrom
research/1472-object-type-patterns
Nov 9, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
research/1472-object-type-patterns

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

A Revit 2026 or 2027 save is now written without an ObjectType on any element. Revit's own export of those releases writes none, where rvt-rs wrote Family:Type; it is the one difference #1472 recorded on every typed class, and it is Revit's exporter's change, not a misread name.

Scope, decided by Griffin on 2026-11-09 through the question tool: from 2026 saves only. The standing rule for values Revit's exports disagree on would leave ObjectType out on every release, since Revit 2024 and 2025 exports write it; that would turn about 27,000 elements that agree with those exports on 33 models into missing values. A 2026 or 2027 save can only be exported by Revit 2026 or later, so omitting it there is certain; for earlier saves nothing in the file says which exporter will read it, and they keep Family:Type. The existing stair-parts leave-out from 2026 (RE-346) has the same shape.

Closes #1472.

Motivation

#1472 found ObjectType differing from Revit's own export on every typed class of the held-out 2026 and 2027 pairs, with no explanation. tools/re/names_vs_ifc.py now says how each differing pair relates (one is empty, Revit's is the type part of rvt-rs's, a case or spacing difference, the same family with another type, ...) in fixed words and counts, which the scrub keeps for held-out models. Measure run 42609161500 (held-out pairs only, counts):

held-out pair, saved by typed elements whose ObjectType differs pattern
2022 (hemanth1986's house) 6 rvt-rs writes none (stairs, railings, members)
2024, 2025 (hemanth1986's house and office, each) 0
2026 (house 82, office 73) and 2027 (house 82, office 73) 310 Revit writes none
2026 (flowbim's house) 108 Revit writes none

That is 418 typed elements of nine classes on the five pairs of 2026 and 2027, and on every one Revit's export writes no ObjectType. Its export of hemanth1986's projects saved by 2025 writes Family:Type on every typed element (0 differ). Autodesk's own samples agree with this: compared across their 2024 to 2027 saves, rac_basic, rst_basic, rme_basic and rme_advanced differ in ObjectType only on stairs, flights and stringers, which #1454 had already narrowed. So the difference is the exporter's, from 2026, and the standing rule applies: a value Revit's exports disagree on is left out.

Changes

Testing

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

  • full / CI passed on the final head
  • Verified end to end on real Revit files: unfiltered Measure 42610209239 (head 3dfa9285 against main at b969296e, -f samples=true -f nordic=true -f r2025=true -f racadv=true -f bimcollab=true -f holdout=true, every scorer, 118 models a side; the later commit only adds a sentence to docs/status.md):
    • 15 of 118 exports move, and they are the 2026 and 2027 ones: the five held-out files of those releases (flowbim's house, and hemanth1986's house and office of 2026 and of 2027) and the ten of Autodesk's samples (rac_advanced, rac_basic, rme_advanced, rme_basic and rst_basic, each 2026 and 2027). No export of a save of 2025 or earlier moves.
    • The 418 differing ObjectTypes are 0: each of the five held-out files now reads ObjectType equal on all its typed elements, and the scorer diff holds nothing else than those five counts files (21 to 26 lines each).
    • diagnostics.json differs on 0 of the 118 models. The 2026 and 2027 samples hold no USERDEFINED PredefinedType, so the rule that leaves it unset where there is no ObjectType changes none of them.
    • same-project gates pass on the head: 15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save.
  • If this touches the IFC exporter: the witness verdicts replay or the changed observations are refreshed in this PR. The Core Interior witness is a Revit 2024 file and does not move (the scorer diff holds no witness file).

Audit-honesty checklist

  • README / docs reflect the current state after this PR: docs/status.md, docs/evidence.md.
  • A user-visible change has its entry as a fragment under changelog.d/changed/.
  • If a limitation was resolved, the docs are updated: the ObjectType difference on 2026 and 2027 is gone, and Revit 2026 and 2027: ObjectType differs from Revit's export on every typed class #1472's row leaves the contribution map.
  • If a new limitation was introduced, it is documented in the PR body and in docs/status.md: a save of an earlier release exported by Revit 2026 or later has no ObjectType in Revit's export either, and rvt-rs writes it there; nothing in a file says which exporter will read it.
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • Reverse-engineering finding: the census is the evidence, from tools/re/names_vs_ifc.py; held-out models appear as counts only.

Legal and contribution hygiene

  • Apache-2.0. No Autodesk proprietary source, internals or NDA material.
  • No new test fixtures.

Breaking changes

An element of a Revit 2026 or 2027 save has ObjectType $ where it had Family:Type.

Related issues

Closes #1472.

…tes to Revit's, in fixed words (#1472)

On Revit 2026 and 2027 the held-out models' ObjectType differs from Revit's
export on every typed class, and only counts leave the runner. The census now
says how each differing pair relates (one is empty, Revit's is the type part of
rvt-rs's, a case or spacing difference, the same family with another type, ...)
as counts beside an IFC class, which the scrub keeps, so the shape of the
difference can be read without a value.
…, as Revit's own export writes none (#1472)

The ObjectType census of the held-out pairs (Measure run 42609161500) says how
each differing value relates to Revit's: on the five pairs saved by 2026 and
2027 it is 418 typed elements of nine classes, and on every one Revit's export
writes no ObjectType, where its export of hemanth1986's projects saved by 2025
writes Family:Type on every typed element. The leave-out that held for a stair,
a flight and a stringer now holds for every class from 2026.
…rts keeps its ObjectType, and Griffin chose it so (#1472)

Griffin chose, through the question tool on 2026-11-09, to leave ObjectType out
from 2026 saves only, over the full standing rule (every release, which would
drop about 27,000 values that agree with Revit 2024 and 2025 exports) and over
writing it everywhere. The limitation of that choice is now in status.md.
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 9, 2026 11:56
@DrunkOnJava
DrunkOnJava merged commit 959af9b into main Nov 9, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1472-object-type-patterns branch November 9, 2026 12:08
@DrunkOnJava DrunkOnJava mentioned this pull request Nov 9, 2026
3 tasks done
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
## Summary

Release 0.17.0. Everything merged since 0.16.1 (29 pull requests, `main`
at 52282ea): Revit 2015 to 2023 curtain walls, curtain parts and steel
beam I sections, duct and port reads of Revit 2015 to 2027, walls'
`Height` on 2015 to 2023, room outlines from a stored solid's edges, two
wall rules on Revit 2024 (a stub cut whole; a profile-edited wall's top
and `Height`), no `ObjectType` on Revit 2026 and 2027 saves, and two
export claims made conditional (#1598). The saved-mesh default for every
class (#1610) and the wall profile pockets (#1608) are not in it; they
go in the next release.

## Changes

- Version 0.16.1 -> 0.17.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`: 17 fragments go into
`[0.17.0]`, with an introduction, what is not measured, and "Upgrading
from 0.16".
- README: the latest release and the "Upgrading from 0.16" and "after
0.17.0" fragments sentence.
- The Core Interior witness observations and verdicts, and the synthetic
fixtures, from this pull request's CI run (to be pushed).

## Testing

- `python3 tools/ci/release_preflight.py check --event workflow_dispatch
--ref-type branch --ref-name release/v0.17.0 --sha HEAD`: ok, version
0.17.0.
- `python3 tools/release/changelog.py check`: ok.
- The release's baseline Measure, `main` at 52282ea against v0.16.1
with every flag and the held-out models: run
[42632958286](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42632958286)
(its result goes into the changelog before this is merged).
- The dry run RELEASE.md step 7 asks for, `publish.yml` dispatched on
this branch (to be run, and linked here).

Unit tests: N/A.

## Audit-honesty checklist

- [x] Each entry keeps its caveats; the introduction lists what is not
measured.
- [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 API changes of #1524 and #1598 and the `ObjectType` change of #1601,
listed under "Upgrading from 0.16".
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 2026 and 2027: ObjectType differs from Revit's export on every typed class

1 participant