Repository navigation
fix(ifc)!: a Revit 2026 or 2027 save is written without an ObjectType, as Revit's own export writes none (#1472) - #1601
Merged
Conversation
…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
marked this pull request as ready for review
November 9, 2026 11:56
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".
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
A Revit 2026 or 2027 save is now written without an
ObjectTypeon any element. Revit's own export of those releases writes none, where rvt-rs wroteFamily: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
ObjectTypeout 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 keepFamily:Type. The existing stair-parts leave-out from 2026 (RE-346) has the same shape.Closes #1472.
Motivation
#1472 found
ObjectTypediffering 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.pynow 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):ObjectTypediffersThat 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 writesFamily:Typeon every typed element (0 differ). Autodesk's own samples agree with this: compared across their 2024 to 2027 saves,rac_basic,rst_basic,rme_basicandrme_advanceddiffer inObjectTypeonly 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
src/ifc/step_writer.rs:ObjectTypeis$when the file's release isOBJECT_TYPE_LEFT_OUT_FROM(2026) or later, for every class; it was$only for a stair, a flight and a stringer. AUSERDEFINEDPredefinedTypewith noObjectTypeis left unset, as the existing rule does (Exports break EXPRESS rules: swept solids under SweptSolid, USERDEFINED types with no ElementType, a material on a disallowed entity #1430).src/research/native_stairs.rs:STAIR_OBJECT_TYPE_LEFT_OUT_FROMbecomesOBJECT_TYPE_LEFT_OUT_FROM, documented for every class.tools/re/names_vs_ifc.py: the pattern census;tools/ci/scrub-holdout-results.sh: keeps its count lines for held-out models (fixed words and IFC class names, never a value).tools/re/readers_across_saves.py: a comment.docs/status.md,docs/evidence.md,docs/contribution-map.md(the Revit 2026 and 2027: ObjectType differs from Revit's export on every typed class #1472 row goes),changelog.d/changed/1472-no-object-type-from-2026.md.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 passedon the final head3dfa9285againstmainatb969296e,-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 todocs/status.md):rac_advanced,rac_basic,rme_advanced,rme_basicandrst_basic, each 2026 and 2027). No export of a save of 2025 or earlier moves.ObjectTypes are 0: each of the five held-out files now readsObjectType equalon all its typed elements, and the scorer diff holds nothing else than those five counts files (21 to 26 lines each).diagnostics.jsondiffers on 0 of the 118 models. The 2026 and 2027 samples hold noUSERDEFINEDPredefinedType, so the rule that leaves it unset where there is noObjectTypechanges none of them.same-project gatespass on the head: 15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save.Audit-honesty checklist
docs/status.md,docs/evidence.md.changelog.d/changed/.docs/status.md: a save of an earlier release exported by Revit 2026 or later has noObjectTypein Revit's export either, and rvt-rs writes it there; nothing in a file says which exporter will read it.tools/re/names_vs_ifc.py; held-out models appear as counts only.Legal and contribution hygiene
Breaking changes
An element of a Revit 2026 or 2027 save has
ObjectType$where it hadFamily:Type.Related issues
Closes #1472.