Skip to content

docs(research): the windows of the spent Revit 2018 project name Revit's own type in their native record, which the scan's reference-list join cannot see (#1603) (RE-475) - #2051

Merged
DrunkOnJava merged 23 commits into
mainfrom
research/1603-unjoined-lists-pre2024
Nov 15, 2026
Merged

DrunkOnJava merged 23 commits into
mainfrom
research/1603-unjoined-lists-pre2024

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Two probes, two scorers and the report RE-475 for #1603: where the 68 windows of the spent Revit 2018 project name Revit's own type. RE-473 left it as "the next row": whether the one window-only named id each of those windows holds is its type or its family. No output changes; the questions were set in RE-473 section 5 before the runs were read.

Measured on the spent project and its held-out save (counts; Measure 43682867776, 43684406836, 43685039364, 43686411026, 43687114757, 43687761375):

  • The list rule is wrong. Each of the 68 windows holds exactly one id that only window records hold and that has a name entry and no record (43 distinct, at most 4 windows to one id). Its name equals Revit's type name for 68 of 68; it is Revit's type id for 0 of 68. Revit's own type id is in the list for 68 of 68, as an id the scan knows nothing of.
  • The native record has all of it. InstanceInfo.m_symbolId is Revit's type id for 70 of 70 windows; the symbol at that id has an empty name (70 of 70). FamilyInstance.m_masterSymbolId names a master symbol whose SymbolInfo.m_name is Revit's type name on 70 of 70 (the scorer counted 68: two names hold a real underscore). All 104 symbols name a Family record, which holds Family.m_name (OB_1H for Revit's OB 1H) and the family's type names.
  • Railings (14) and stairs (6) do not name their type's id in their native record: 0 of 20.
  • For one other category (id -2000171, 206 instances) the one id only its records hold is Revit's type Tag, 206 of 206: a system type, a separate rule.

Changes

  • probes/examples/probe_1603_unjoined_lists_pre2024.rs, probes/examples/probe_1603_native_instance_types_pre2024.rs (both id shapes, the releases widened to 2015 to 2027).
  • tools/re/unjoined_types_vs_ifc.py: holds an unjoined instance's ids against Revit's type of the same Tag.
  • tools/ci/scrub-holdout-results.sh: keeps the unjoined lists pre2024: count lines of a held-out model by their fixed wording; the per-instance lines name ElementIds and are dropped.
  • reports/element-framing/RE-475-pre-2024-window-types-are-in-the-native-record.md and the docs/contribution-map.md row.

Testing

  • No src/ change; rustfmt --check, tools/ci/api-doc-ids.py and bash -n on the scrub pass.
  • Measure runs above; the held-out lines are counts only.
  • The report states one project is the evidence for the native-record table: the rule is not general until other projects hold it.

Not measured: the output of a reader that takes these pieces (Name, ObjectType, type object, material set), the family name on every window, and other pre-2024 projects.

Audit-honesty checklist

  • The report states what is decided (the pieces and where they are), what is not (the output) and why.
  • No user-visible change, so no changelog fragment.
  • No emojis, private paths or personal email addresses.
  • Reverse-engineering finding: probes under probes/examples/, dated report with the runs and archived commits.

Legal and contribution hygiene

  • 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.
  • No new fixtures.

Breaking changes

None.

Related issues

Part of #1603. Follows #2040 (RE-473). Related: #2046 (RE-476).

https://claude.ai/code/session_01TFTgj3B39AgPT5E6mwwWTQ

…to 2023 family types, and the held-out scrub keeps its counts (#1603)
… map in the older id shape, and the 70 windows of #1603 name no type for it (#1603) (RE-473)
…3 family instance stops, per category, and the held-out scrub keeps its counts (#1603)
…d-lists-pre2024

# Conflicts:
#	tools/ci/scrub-holdout-results.sh
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 15, 2026 07:20
@DrunkOnJava
DrunkOnJava merged commit 5f442ef into main Nov 15, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1603-unjoined-lists-pre2024 branch November 15, 2026 07:34
DrunkOnJava added a commit that referenced this pull request Nov 15, 2026
…t leaves untyped takes its type and family from its native record (#1603) (RE-477) (#2052)

## 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](#1603 (comment)),
[amendment](#1603 (comment))).
Measure
[43692758207](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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`).

- [x] 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.
- [x] 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 `IfcPlate`s 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 #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 #2053 stays open for when one does.
- [x] 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).
- [x] The group rule rests on 2 doors of one project and is listed in
`docs/one-project-rules.md`.
- [x] `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

- [x] The report states what is decided, what is not and why; one
project is the evidence for the group rule.
- [x] A changelog fragment is added; `docs/status.md` and the
contribution map are updated.
- [x] No emojis, private paths or personal email addresses.
- [x] Reverse-engineering finding: the probes are on `main` (#2051), the
scorers are Measure's own; commits archived under
`refs/archive/2026-11-15/cited/`.

## Legal and contribution hygiene

- [x] 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.
- [x] 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
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