Repository navigation
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
Conversation
…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)
DrunkOnJava
marked this pull request as ready for review
November 11, 2026 05:35
DrunkOnJava
enabled auto-merge (squash)
November 11, 2026 06:17
DrunkOnJava
disabled auto-merge
November 11, 2026 06:27
9 tasks done
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).
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
rvt-rs wrote no
PredefinedTypeon 103 to 104 furniture of each large BIM4LCA housing file and on all 98 of the office's, where Revit's export writesNOTDEFINEDon most,CHAIRorBEDon those whose type holds an "IFC Predefined Type" of it, andUSERDEFINEDon the office's 62. A furniture or casework element now takes its own or its type's "IFC Predefined Type" where that is anIfcFurnitureTypeEnumenumerator, andNOTDEFINEDwhere it has none, on Revit 2024, 2025 and 2026 files. A value that is no enumerator stays unset, since revit-ifc'srelease/2024.1turns it intoNOTDEFINEDandmasterintoUSERDEFINEDwith 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
PredefinedTypeon 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 reachattach_ifc_export_overrides), so a default there would writeNOTDEFINEDwhere Revit writesCHAIR; 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 joinPREDEFINED_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: theNOTDEFINEDdefault, 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 aNOTDEFINEDrvt-rs writes where Revit writes none, tallies theIfcFurnitureTypeandIfcStairFlightTypeobjects of both files, and says when Revit's export is IFC2X3 (RE1's: noPredefinedTypeon its furniture class), which scores nothing;tools/ci/scrub-holdout-results.shkeeps 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 changePredefinedTypefrom what to what.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):
a066df72against0649e224, its merge base withmain, 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),differs0 andNOTDEFINEDwhere 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 gatespassed;IfcFurnitureTypeobjects: 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 theNOTDEFINEDandUSERDEFINEDtypes 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;rac_advancedandrac_basicof 2024 to 2026, and Snowdon Towers Architectural), and the only change on each isPredefinedTypeof the furniture from none toNOTDEFINED, 753 in all; RE1 Architecture's 23 likewise (its Revit export is IFC2X3, which scores nothing).The 2027 pairs'
differson 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 itAudit-honesty checklist
changelog.d/fixed/Legal and contribution hygiene
IFCExportInfoPaircited by file and class (CLEANROOM.md source 5), none of its code copiedBreaking changes
None: no public type or signature changes; the export of a file with furniture gains a
PredefinedTypeit did not write.