Skip to content

fix(ifc): a furniture element's PredefinedType is its own IFC Predefined Type where that is an enumerator, and NOTDEFINED where it has none, as Revit's export writes (#1681) (RE-419) - #1686

Merged
DrunkOnJava merged 9 commits into
mainfrom
fix/1681-furniture-predefined-type
Nov 11, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

rvt-rs wrote no PredefinedType on 103 to 104 furniture of each large BIM4LCA housing file and on all 98 of the office's, where Revit's export writes NOTDEFINED on most, CHAIR or BED on those whose type holds an "IFC Predefined Type" of it, and USERDEFINED on the office's 62. A furniture or casework element now takes its own or its type's "IFC Predefined Type" where that is an IfcFurnitureTypeEnum enumerator, and NOTDEFINED where it has none, on Revit 2024, 2025 and 2026 files. A value that is no enumerator stays unset, since revit-ifc's release/2024.1 turns it into NOTDEFINED and master into USERDEFINED with the text, and no file measured here holds one.

Two releases are left out on evidence: the two Revit 2027 held-out pairs write no PredefinedType on any furniture (nor on stairs, flights, slabs or members, where rvt-rs still writes one: #1692), and a Revit 2022 file's export parameters are not read at all (the 32-bit releases never reach attach_ifc_export_overrides), so a default there would write NOTDEFINED where Revit writes CHAIR; the first version of this change listed 2022 and the run showed the 2022 pair unchanged, which is how that was found.

Motivation

Closes #1681 (furniture). Part of #1636 (the second project's measurement); the follow-ups are #1692 (Revit 2027 writes none on other classes) and #1695 (Revit 2022's export parameters are not read). Follows RE-417 (the "Export to IFC As" values) and RE-45 (the export parameters). The rows were registered on #1636 before the first version's run was read: #1636 (comment), and the two further reads before they were taken: #1636 (comment).

Changes

  • src/ifc/category_map.rs: IFCFURNITURE's enumerators join PREDEFINED_TYPE_ENUMERATORS, so a furniture or casework element takes its own or its type's value where it is one, as every other entity there does.
  • src/ifc/export_content.rs, src/research/partition_schema_mvp/fields.rs, types.rs: the NOTDEFINED default, gated on the Revit release of the file (FURNITURE_DEFAULT_REVIT_VERSIONS, 2024 to 2026), each furniture or casework element carrying its release (m_furniture_release).
  • tools/re/predefined_types_vs_ifc.py: counts a NOTDEFINED rvt-rs writes where Revit writes none, tallies the IfcFurnitureType and IfcStairFlightType objects of both files, and says when Revit's export is IFC2X3 (RE1's: no PredefinedType on its furniture class), which scores nothing; tools/ci/scrub-holdout-results.sh keeps those tallies as counts for the held-out models.
  • tools/re/furniture_predefined_types_diff.py: for models no Revit export scores, which furniture and types change PredefinedType from what to what.
  • Report RE-419 and a changelog fragment.

Testing

Measured end to end on the Measure runner (no local builds here; CI builds the change), and read against the registered rows at #1636 (comment):

  • unfiltered run 42951039566 (head a066df72 against 0649e224, its merge base with main, every flag, 126 models each side): 101 exports byte-identical and 25 move. 872 of the 884 furniture of the 19 scored models read equal (the housing's 107, 107, 106 and 106 and the office's 98 four times, from 3, 3, 3, 3 and 0; the held-out 2024, 2025 and 2026 pairs and the CIADD house, from none), differs 0 and NOTDEFINED where Revit writes none 0 on every class; the 12 that do not are the 2022 pair's. No other census line of any model with a Revit export changes. same-project gates passed;
  • run 42959714727 tallies the IfcFurnitureType objects: rvt-rs's equal Revit's on the eight large BIM4LCA files and the held-out pairs of 2022 to 2026 and the CIADD house (the four offices' 2 more type objects each are the NOTDEFINED and USERDEFINED types Revit writes), and the exports of all 17 are byte-identical to the measured head's: taking 2022 out of the release list changes none;
  • run 42956695754 kept both sides' exports of the Autodesk samples: 7 move (rac_advanced and rac_basic of 2024 to 2026, and Snowdon Towers Architectural), and the only change on each is PredefinedType of the furniture from none to NOTDEFINED, 753 in all; RE1 Architecture's 23 likewise (its Revit export is IFC2X3, which scores nothing).

The 2027 pairs' differs on stairs, flights, slabs and members (1, 1, 3, 2) is the same before and after this change.

  • tools/check-local.sh: not run locally (no local builds here); CI builds and tests it
  • Verified end to end on real Revit files: the runs above
  • If this touches the IFC exporter: the runs above, and the report states what it does not touch (Revit 2022, which keeps none; Revit 2027, which keeps none; a value that is no enumerator)

Audit-honesty checklist

Legal and contribution hygiene

  • Apache-2.0; revit-ifc's IFCExportInfoPair cited by file and class (CLEANROOM.md source 5), none of its code copied
  • No Autodesk proprietary source, decompiled internals or NDA'd SDK content

Breaking changes

None: no public type or signature changes; the export of a file with furniture gains a PredefinedType it did not write.

…ned Type where that is an enumerator, and NOTDEFINED where it has none, as Revit's export writes (#1681) (RE-419)
…e Revit writes none, and the held-out pairs' counts keep its summary lines (#1681) (RE-419)
… whose export writes it, 2022, 2024, 2025 and 2026, and not on a Revit 2027 file (#1681) (RE-419)
…022, whose export parameters are not read, and the report and fragment say so (#1681) (RE-419)
… type objects of both files and says when Revit's export is IFC2X3, whose classes have no PredefinedType (#1681) (RE-419)
… furniture equal to Revit's and the 2022 and 2027 pairs unchanged (#1681) (RE-419)
…ture from none to NOTDEFINED, with tools/re/furniture_predefined_types_diff.py (#1681) (RE-419)
…al to Revit's on all 17 models, and the narrowed head's exports byte-identical to the measured one's (#1681) (RE-419)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 11, 2026 05:35
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) November 11, 2026 06:17
@DrunkOnJava
DrunkOnJava disabled auto-merge November 11, 2026 06:27
@DrunkOnJava
DrunkOnJava merged commit 47aa70b into main Nov 11, 2026
49 of 54 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1681-furniture-predefined-type branch November 11, 2026 06:28
DrunkOnJava added a commit that referenced this pull request Nov 15, 2026
…export parameter, so where those releases keep them is not decided (#1695) (RE-472) (#2039)

## Summary

None of the 45 files of Revit 2015 to 2023 in Measure's corpus sets any
of the four IFC export parameters (`Export to IFC As`, `IFC Predefined
Type` and the two a type sets), in the 2024 form or a narrower one, and
neither do 38 of the 40 files of 2024 to 2027. The held-out Revit 2022
pair holds none, as counts. So where a 32-bit release keeps them is not
observed, and the corpus cannot decide it. RE-472 records it, with the
rule that was considered and not written. No output changes.

## Motivation

#1695: the 32-bit branch of the partition decode never calls
`attach_ifc_export_overrides`, and a Revit 2022 furniture element cannot
say `CHAIR` or `BED` where Revit's export does (RE-419: `PredefinedType`
equal on 0 of 4 and 0 of 8 on the held-out Revit 2022 pair, Revit
writing `NOTDEFINED`). The issue's "Done when" is a probe that finds
where the 32-bit releases keep the two parameters, or names why they
cannot be read, or a report that names the elements it cannot tell and
why with the 2022 and earlier exports unchanged.

## Changes

- `reports/element-framing/RE-472-export-parameters-before-2024.md`: the
result, the rows as registered and what each came to, what is decided
and what is not, and what would decide it.
- `probes/examples/probe_1695_export_parameters_pre2024.rs`: the probe
(each key in the 2024 `i64` form and a narrower `i32` form, the owner
through the release's element data header, and a keyless search for the
words of `IfcFurnitureTypeEnum` with the 8 bytes before each).
- `tools/ci/scrub-holdout-results.sh`: keeps the probe's `export
parameters pre2024:` count lines for a held-out model.
- `docs/contribution-map.md`: the #1695 row.

## Testing

- [x] No `src/` change; `rustfmt --check` and `tools/ci/api-doc-ids.py`
pass; `bash -n` passes on the scrub.
- [x] Real files: Measure run
[43678279528](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43678279528),
`-f ref=b8715e75b644085c91e79da0b33e74b38b65b10c -f base=none -f
samples=true -f holdout=true -f bimcollab=true -f scorers=none -f
probe=probe_1695_export_parameters_pre2024`, the probe on 85 models.
Counts, entries in either width then furniture words by release: 2015 to
2023 (45 files) 0 and 0 on every release; 2024 (13) 58 and 0; 2025 (12)
2 and 0; 2026 (8) 0 and 18; 2027 (7) 0 and 0.

The rows as registered, and how they came out:

1. **The 2024 form on a pre-2024 save:** not met, and not refuted. 0
entries on all 45, but the 2024 saves of the same projects hold none
either, so a different pre-2024 form would show the same zero.
2. **The narrow form:** not met. 0 entries.
3. **The owner:** not measurable, with no entry to resolve.
4. **The keyless search:** not triggered (it was for a 2024 save with
entries a pre-2024 save lacked). Run on every file, it finds no
furniture word before 2024; the one file with words is a Revit 2026
held-out house (18, after prefixes that are not the keys), whose
furniture Revit writes as `NOTDEFINED`.
5. **The held-out Revit 2022 pair:** 0 entries and 0 words in each file.

The one positive control is `2024_Core_Interior.rvt` (58 entries, all in
the 2024 form) and one held-out Revit 2025 project (2). Not measured: a
Revit 2015 to 2023 file that sets one of the parameters, which is what
would decide the form; the BIM4LCA files (Revit 2024, the `CHAIR` and
`BED` of RE-419) are not in this run.

A rule was considered and not written: `NOTDEFINED` for furniture and
casework on a release before 2024 whose file holds no string equal to a
furniture word. It would read 4 of 4 and 8 of 8 on the held-out Revit
2022 pair, but its premise has no positive control, the measured set is
12 elements of one release, and a set `CHAIR` stored in a form the
search cannot find would be written `NOTDEFINED` wrongly.

## Audit-honesty checklist

- [x] The report says what was and was not measured; the unmet rows are
reported plainly.
- [x] No user-visible change, so no changelog fragment.
- [x] Reproduce commands name a commit (archived under
`refs/archive/2026-11-15/cited/b8715e75b644`).
- [x] No emojis, private paths or personal email addresses; held-out
results as counts only.
- [x] Reverse-engineering finding: probe under `probes/examples/` and a
dated report.

## 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 #1695 (it stays open: the elements it names cannot be told apart
until a file that sets the parameters is in the corpus). Related: #1158,
#1681, #1686 (RE-419).
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.

Furniture: rvt-rs writes no PredefinedType on 103 to 104 furniture of each large BIM4LCA housing file, where Revit writes NOTDEFINED, CHAIR or BED

1 participant