Skip to content

feat(elements): a Revit 2015 to 2023 door or window the reference list leaves untyped takes its type and family from its native record (#1603) (RE-477) - #2052

Merged
DrunkOnJava merged 6 commits into
mainfrom
feat/1603-pre2024-instance-types
Nov 15, 2026
Merged

DrunkOnJava merged 6 commits into
mainfrom
feat/1603-pre2024-instance-types

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

A door or window of a Revit 2015 to 2023 file that the reference-list join leaves untyped is typed from its own native record: the type id (InstanceInfo.m_symbolId, or the master symbol for a member of a model group whose symbol is a copy of that master), the type's name (the master symbol's SymbolInfo.m_name) and the family's name (Family.m_name). On the spent Revit 2018 project the 70 windows and 68 doors now have Revit's Name and ObjectType (windows 0 of 70 before, doors 66 of 68) and 72 more type objects whose Tag is Revit's on 72 of 72.

Motivation

#1603, RE-475: the list holds the type's master symbol, not Revit's type, which is an id with no record or name entry, so 68 of the project's 70 windows were left with no type.

Changes

  • src/research/native_instance_types.rs: instance_types, one native pass over the instances, every FamilySymbol and every Family, either id shape; any link of the chain missing and the instance is left as it was.
  • src/research/partition_schema_mvp/records_2023.rs: recover_2023_records calls it for the doors and windows with no list-join entry and adds the type, type name and family name fields, marked m_type_from_native_record.
  • src/research/partition_schema_mvp/materials.rs, fields.rs: an element so typed takes no scanned type material (the scanned map of the symbol that draws a window is apart from Revit's set for 53 of 55; the first run).
  • src/research.rs, src/lib.rs: the module lists.
  • reports/element-framing/RE-477-pre-2024-window-and-door-types-from-the-native-record.md, docs/status.md, docs/contribution-map.md, docs/one-project-rules.md, changelog.d/fixed/1603-pre2024-window-door-types.md.

Testing

Rows registered on #1603 before each run was read (first, amendment). Measure 43692758207 (bb829b7a, every scorer, holdout=true, samples=true, nordic, r2025, 120 exports) against main (5f442efc); rows 1 to 4, 7 and 8 were read from the filtered run 43690822430 (d6890e26, before the group rule narrowed) and hold on the third. This push changes docs only, so the run is carried (arm.sh --carry-proof).

  • Windows and doors of the spent project: Name and ObjectType equal 70 of 70 and 68 of 68 (0 of 70 and 66 of 68 on main). Held-out Revit 2018 save: the same counts. Held-out Revit 2020 project: 29 of 29 windows and 27 of 27 doors (25 and 18 on main). BIM Whale's held-out Revit 2021 project: 126 of 126 doors (11 of 126 on main). rac_basic 2015 to 2023: its 2 doors take the name its 2024 save gives them.
  • Type objects (type_objects_vs_ifc): typed 1,005 to 1,077 of 1,280, Tag agrees 938 to 1,010 of 1,077, no Tag disagrees (the 67 left are IfcPlates Revit tags and rvt-rs leaves out), untyped windows and doors 72 to 0.
  • Not met: nothing else moves. 13 of 120 exports differ (the spent project, the three held-out projects with such elements, and the nine rac_basic saves of 2015 to 2023, each gaining exactly 4 entities and 4 values for its 2 doors); the other 107 are byte-identical. psets_vs_ifc different is unchanged everywhere, element_materials_vs_ifc of the spent project is as on main, and rvt-rs values Revit does not write are unchanged on the spent project and the Revit 2018 and 2020 held-outs (57, 54, 18). On BIM Whale's Revit 2021 project they rise from 13 to 23, all Pset_DoorCommon.Reference (1 to 11 of 126 doors): of the 115 doors typed there, 105 take Revit's value and for 10 Revit's IFC2X3 export has none. That is the existing Reference rule's residual (main shows it on 1 door and 6 windows of the same project), not the reader's; the project is counts only, so the 10 cannot be listed. Filed as Door and window Reference is written where Revit's export has none: 11 doors and 6 windows on BIM Whale's Revit 2021 project #2053. The MCP answers sample counts 5 more values Revit does not write on the spent project (69 to 74) and 4 more on BIM Whale's (38 to 42), not attributed to a property. Both references are IFC2X3 exports, and an IFC2X3 view never removes a value (standing rule), so these are counted apart, not read as faults of the reader; no IFC4 export of a 2015 to 2023 project shows the same, and Door and window Reference is written where Revit's export has none: 11 doors and 6 windows on BIM Whale's Revit 2021 project #2053 stays open for when one does.
  • Not scored: the type objects' GlobalIds (global_id agrees stays 414 of 1,077; 591 of the 1,005 existing ones are not Revit's either), their Names (0 of 1,077 against the IFC2X3 export), and the type material map for these elements (RE-473's next reader).
  • The group rule rests on 2 doors of one project and is listed in docs/one-project-rules.md.
  • rustfmt --check on the changed files, tools/release/changelog.py check and tools/ci/api-doc-ids.py pass; clippy and the build run in CI.

Audit-honesty checklist

Legal and contribution hygiene

  • Apache-2.0; contributor declaration: clean-room, only byte observations of Autodesk's public sample projects, the held-out files as counts and Revit's own IFC export. No Autodesk source, decompiled internals or NDA content.
  • No new fixtures.

Breaking changes

None. A door or window the join leaves untyped now has a type; the exports of Revit 2015 to 2023 files with such elements gain type objects and type properties.

Part of #1603.

https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ

…t leaves untyped takes its type and family from its native record (#1603) (RE-475)

The scan's list join names a type only through a symbol record. 68 of the
spent Revit 2018 project's 70 windows name only their master symbol there,
and Revit's own type id is an id the scan knows nothing of. The instance's
native record names it (InstanceInfo.m_symbolId), its master symbol the
type's name (SymbolInfo.m_name) and the family (FamilySymbol.m_familyId ->
Family.m_name).

Claude-Session: https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ
… type, and a type read from the native record takes no scanned materials (#1603) (RE-475)

Measure 43689445542: the two grouped doors of the spent Revit 2018 project
carry Revit's type Tag in m_masterSymbolId (their symbol is a copy made for
the group's instance), and the scanned material map of the 55 windows' symbol
copies names a set apart from Revit's for 53 of them.

Claude-Session: https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ
…yped from their native record, with the status page, changelog fragment and the rules that rest on one project (#1603)

Claude-Session: https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 15, 2026 07:59
rvt-rs-review[bot]
rvt-rs-review Bot previously approved these changes Nov 15, 2026
…20 exports move, and the values Revit does not write rise by 10 doors on BIM Whale's Revit 2021 project (#1603) (RE-477)

The third run (43692758207, every scorer, bb829b7) held a held-out project
the second did not. Row 5 (nothing else moves) is unmet there: 10 of the 115
doors typed now take a Pset_DoorCommon.Reference that Revit's IFC2X3 export
does not write, the existing Reference rule's residual (1 door of 11 on main).
Filed as #2053.

Claude-Session: https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ
@DrunkOnJava
DrunkOnJava merged commit e594a2b into main Nov 15, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/1603-pre2024-instance-types branch November 15, 2026 08:55
DrunkOnJava added a commit that referenced this pull request Nov 15, 2026
…ow is the drawn symbol's, and it is Revit's materials on 558 of 992 before three rules (#1603) (RE-478) (#2055)

## Summary

A probe, a scorer and the report RE-478 for #1603: which symbol of a
Revit 2015 to 2023 door or window holds the geometry-material map that
names Revit's materials for it, and where the map does not. No output
changes; the five rows were registered on #1603
([comment](#1603 (comment)))
before the first run.

Measured on the spent Revit 2018 project and the 17 other held-out
projects, 992 doors and windows that Revit's export gives materials
(Measure 43700046741 at `8b5fd1dd`):

- **The symbol is the one the record draws** (`InstanceInfo.m_symbolId`,
Revit's type from RE-477), not its master. The master's map equals
Revit's set on exactly the elements the drawn one does (never better),
and lacks the nested components' materials where the drawn one has them.
- **The drawn map is Revit's set as written on 558 of 992**, 603 once
Revit 2018's spelling of the unset material (" <Unnamed>") is dropped,
and on every element of 13 of the 18 projects.
- **The other 389 need rules the 2015 to 2023 readers do not have:** 299
differ only in whether `<Unnamed>` is written (14 of the spent project's
windows, 263 of BIM Whale's, 22 of a Revit 2020 project's doors), 81
hold names Revit's set does not (a hidden-form material, RE-205), 9
spent windows have one more material that none of the drawn symbol's,
master's, family's or instance's records name. Those rules are read
today from the family forms, which take the 2024 id shape only.
- The registered row 2 ("one symbol equal everywhere it is read") is
**not met**, and the report says so.

## Changes

- `probes/examples/probe_1603_window_door_type_maps_pre2024.rs`: the two
symbols' maps in either id shape, and the materials each record names
outside the map (percent-encoded names).
- `tools/re/window_door_type_maps_vs_ifc.py`: the drawn map against
Revit's set, by kind; `--list` lists the spent project's differing
elements.
- `tools/ci/scrub-holdout-results.sh`: keeps the scorer's two count
lines for a held-out model by their fixed wording (checked locally on a
copy of the spent project's output).
-
`reports/element-framing/RE-478-pre-2024-door-window-type-material-maps.md`
and the `docs/contribution-map.md` row.

## Testing

- [x] Measure 43700046741 (the spent project and all held-out projects,
counts only); four earlier runs had scorer defects, named in the
report's section 6, and none of their counts is used.
- [x] No `src/` change; `rustfmt --check`, `tools/ci/api-doc-ids.py`,
`tools/release/changelog.py check` and `bash -n` on the scrub pass; the
build and clippy run in CI.
- [x] Not measured, stated in the report: that the family forms decide
the 299 and the 81, the 9 windows' source, and any other Revit 2015 to
2018 export's spelling of the unset material.

## Audit-honesty checklist

- [x] The report states what is decided (the symbol), what is not and
why, and that registered row 2 is not met.
- [x] No user-visible change, so no changelog fragment.
- [x] No emojis, private paths or personal email addresses.
- [x] Reverse-engineering finding: probe under `probes/examples/`, dated
report with the runs and archived commits.

## Legal and contribution hygiene

- [x] Apache-2.0; contributor declaration: clean-room, only byte
observations of Autodesk's public sample projects and the held-out files
as counts. No Autodesk source, decompiled internals or NDA content.
- [x] No new fixtures.

## Breaking changes

None.

## Related issues

Part of #1603. Follows #2052 (RE-477), #2040 (RE-473). Related: #1158.

https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ
DrunkOnJava added a commit that referenced this pull request Nov 15, 2026
…nd windows give decoded forms, as 330 of 382 do from 2024, and the forms hold their material in the older id shape (#1603) (RE-479) (#2057)

## Summary

A probe and the report RE-479 for #1603: does a Revit 2015 to 2023
project hold the own documents of the families its doors and windows
come from, do their forms decode, and in which id shape do they hold
their materials and their `Visible`? No output changes; the four rows
were registered on #1603
([comment](#1603 (comment)))
before the run.

Measured on 84 models (the spent Revit 2018 project, 18 held-out
projects as counts, 65 reference models and Autodesk samples of Revit
2015 to 2027; Measure 43701506486 at `fcf37a5f`):

- **The forms decode on all thirteen releases:** 1,070 forms before 2024
and 1,305 from it, each with its material in the 2015 to 2023 id shape
before 2024 and in the 2024 shape from it (no file holds both) or mapped
to no material, the stored `Visible` on every form, `m_cutting` read.
Each sample project with several saves gives the same forms on all of
them (two saves of the structural basic project differ, stated in the
report).
- **Registered row 1 is not met:** the share of families that give a
decoded record is under 90% on nine releases (seven before 2024, 2024 at
81.0% and 2027 at 89.1%); 367 of 429 before 2024, 330 of 382 from it.
The probe counts families that give a decoded record, so an absent
document and one with no solid form are not told apart. The shortfall is
the structural and Snowdon samples, the same number on every save of the
same project; the spent project and the 17 other held-out projects give
a decode for every family. The report states that the registered
consequence (find that release's documents first) is not followed, and
why.
- **Next:** `native_family_forms` reading either id shape on those
releases, failing closed where nothing decodes, scored by
`element_materials_vs_ifc` against RE-478's 389 of 992.

## Changes

- `probes/examples/probe_1603_family_forms_pre2024.rs`: the families of
the doors and windows, their documents' forms per class with the
material in each shape, unset, cutting, stored and bound `Visible`.
- `tools/ci/scrub-holdout-results.sh`: keeps the probe's count lines for
a held-out model by their fixed wording.
-
`reports/element-framing/RE-479-pre-2024-family-documents-and-forms.md`.

## Testing

- [x] Measure 43701506486 (samples and held-out, counts only); every
number in the report was summed from the run's kept artefacts, and the
spent project's class lines equal its held-out save's.
- [x] No `src/` change (`git diff --stat main...` is the probe and the
scrub); `rustfmt --check`, `bash -n` on the scrub,
`tools/ci/api-doc-ids.py` and `tools/release/changelog.py check` pass;
the build and clippy run in CI.
- [x] Not measured, stated in the report: which families give no decode
and whether their document is absent or empty, whether the rules decide
RE-478's 299 and 81, and the shape of the `Visible` ids (read in
either).

## Audit-honesty checklist

- [x] The report states what is decided, what is not, that registered
row 1 is not met, and the departure from its consequence.
- [x] No user-visible change, so no changelog fragment.
- [x] No emojis, private paths or personal email addresses.
- [x] Reverse-engineering finding: probe under `probes/examples/`, dated
report with the run and the archived commit.

## Legal and contribution hygiene

- [x] Apache-2.0; contributor declaration: clean-room, only byte
observations of Autodesk's public sample projects and the held-out files
as counts. No Autodesk source, decompiled internals or NDA content.
- [x] No new fixtures.

## Breaking changes

None.

## Related issues

Part of #1603. Follows RE-478 (#2055), RE-477 (#2052), RE-473 (#2040).

https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ
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.

1 participant