Skip to content

docs(research): the type material maps of Revit 2015 to 2023 family types are in the older id shape, and the issue's windows name no type (#1603) (RE-473) - #2040

Merged
DrunkOnJava merged 10 commits into
mainfrom
research/1603-type-maps-pre2024
Nov 15, 2026
Merged

DrunkOnJava merged 10 commits into
mainfrom
research/1603-type-maps-pre2024

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

Two probes, a pairing script and the report RE-473 for #1603: whether a Revit 2015 to 2023 family type's own record holds its geometry-material map (FamilySymbol.m_geomTag2MaterialId, RE-203), in which id shape, and whether it reaches the 70 windows and 14 railings of the spent Revit 2018 project. No output changes; the rows were registered before the runs were read.

Measured (Measure 43678727089 at 650584d8244e, 66 models, and 43679458150 at 73b75d0d2a7b, with the instance counts):

  • Shape. The map is on every Revit 2015 to 2023 sample save, in the older ElementId shape: 6,696 entries in 34 files, none in the 2024 shape; 2024 to 2027 hold 6,192, all in the 2024 shape. The spent project (62) and the four held-out files (402, counts) are the same. The reader's m_id64 read sees none of them.
  • Reach. The field is in 1,370 of 1,476 types before 2024 (92.8%) against 1,496 of 1,718 from 2024 (87.1%); what lacks it is system-family types.
  • Held to the same project's 2024 save. 1,326 of 1,350 types name the same materials, none only in the earlier save. Window 27 of 27, Door 155 of 155, Furniture 90 of 90, Casework 18, FurnitureSystem 18, LightingFixture 70, all equal. The 24 others are 3 structural types of one project, where the earlier save names one material more.
  • Beyond the scan. On the pre-2024 samples the map names a material for types the scan does not: Mass 32, LightingFixture 18, FurnitureSystem 18, Door 10, GenericModel 9, SpecialtyEquipment 9, StructuralFraming 9, ElectricalEquipment 9, PlumbingFixture 1. The scan names types the map cannot (19 classes, mostly all-unset fittings), so the scan stays.
  • The issue's windows and railings. Not reached: the decode gives those instances no type id (70 of 70 windows and 14 of 14 railings name none; doors 66 of 68), so no map or scan applies. Measure 43681309215 repeats the 32-bit type join stage by stage: the project's file holds one window symbol record and 68 of its 70 windows name a named id with no record of their own, so the types are named but their records are not among those the scan finds (the held-out save of the same project: the same 68). Railings and stairs have no symbol record on any file (248 railings and 84 stairs of the samples, none joined). A held-out Revit 2020 project shows another cause: 4 of 29 windows and 9 of 27 doors name a symbol record with no name entry.

Changes

  • probes/examples/probe_1603_type_maps_pre2024.rs: the map read for the types the decode's instances name, both id shapes, with per-class counts and the instances naming a type.
  • probes/examples/probe_1603_instance_types_pre2024.rs: where the type join of a 2015 to 2023 family instance stops, per category, and what the lists of the instances with no candidate name.
  • tools/ci/scrub-holdout-results.sh: keeps the type maps pre2024: and type join pre2024: count lines of a held-out model by their fixed wording.
  • tools/re/type_maps_across_saves.py: pairs a save with the same project's later one by type ElementId.
  • reports/element-framing/RE-473-type-material-maps-before-2024.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 (-f samples=true, then focused reruns with -f holdout=true); the held-out lines are counts only.
  • Rows 1, 2 and 5 met, row 4 reported (non-zero), row 3 met for the samples and not met for the issue's windows and railings; see RE-473 section 4.

Not measured: whether Revit's export writes these materials (the reader's own run against element_materials_vs_ifc.py), and the default material of #1603's second item.

Audit-honesty checklist

  • The report states what is decided (the map and its shape), what is not (the export, the windows) and why.
  • No user-visible change, so no changelog fragment.
  • No emojis, private paths or personal email addresses.
  • Reverse-engineering finding: probe under probes/examples/, dated report with the runs.

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 (and #1190, #1158). Related: #1584 (the id shape), #1695.

@DrunkOnJava DrunkOnJava changed the title docs(research): a probe for the geometry-material maps of Revit 2015 to 2023 family types (#1603) docs(research): the type material maps of Revit 2015 to 2023 family types are in the older id shape, and the issue's windows name no type (#1603) (RE-473) Nov 15, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 15, 2026 05:48
@DrunkOnJava
DrunkOnJava merged commit 4b1d8f1 into main Nov 15, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1603-type-maps-pre2024 branch November 15, 2026 06:07
DrunkOnJava added a commit that referenced this pull request Nov 15, 2026
…t's own type in their native record, which the scan's reference-list join cannot see (#1603) (RE-475) (#2051)

## 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

- [x] No `src/` change; `rustfmt --check`, `tools/ci/api-doc-ids.py` and
`bash -n` on the scrub pass.
- [x] Measure runs above; the held-out lines are counts only.
- [x] 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

- [x] The report states what is decided (the pieces and where they are),
what is not (the output) and why.
- [x] No user-visible change, so no changelog fragment.
- [x] No emojis, private paths or personal email addresses.
- [x] Reverse-engineering finding: probes 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 #2040 (RE-473). Related: #2046 (RE-476).

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