Skip to content

feat(ifc): a railing with no predefined type of its own or its type's is NOTDEFINED on Revit 2024 to 2026, as Revit's export writes it (#1713) - #2000

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/1713-railing-notdefined
Nov 14, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/1713-railing-notdefined

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

A railing with no "IFC Predefined Type" of its own or its type's is written with the PredefinedType NOTDEFINED on Revit 2024 to 2026, as Revit's export writes it. #1765 made a railing take its own or its type's value; the railings with none stayed unset: 18 on the public models with a Revit export (the BIM4LCA office files and the R2025 models 13 to 17) and 6 on the held-out pairs of 2024 to 2026, each NOTDEFINED in Revit's export. The entry joins furniture, roofs, stairs, stair flights and proxies in NOTDEFINED_DEFAULTS. Part of #1713.

Motivation

#1713's table: IfcRailing 378 in both, 360 same after #1765, 18 unset where Revit writes NOTDEFINED. The scorer of the baseline run (Measure 43573832361, main at dc6b4721) shows every one of the 18 and no railing where Revit writes another value: the four BIM4LCA office files 1, 1, 3 and 3 (2024), the R2025 models 13 to 17 two each (2025), the held-out pairs of 2024, 2025 and 2026 two each; the 2022 pair's two are unset too, but a 2022 file's export parameters are not read, so the default cannot tell a railing with a value from one without, and the 2027 pair's two carry no value in Revit's export.

Changes

  • src/research/partition_schema_mvp/fields.rs: ("IFCRAILING", &[2024, 2025, 2026]) in NOTDEFINED_DEFAULTS, with its evidence in the table's doc comment.
  • A changelog fragment.

Testing

Registered before the run. Measure unfiltered against main, with nordic, r2025, samples, holdout and racadv:

  1. On the four BIM4LCA office files and the R2025 models 13 to 17, IfcRailing "unset in rvt-rs" goes from 1, 1, 3, 3 and 2 each to 0 and "same" rises by the same; "differs" and "NOTDEFINED where Revit writes none" stay 0 on every model.
  2. On the held-out pairs (counts only), the 2024, 2025 and 2026 railings go from 2 unset to 0; the 2022 and 2027 pairs do not move.
  3. The exports that move are those of 2024 to 2026 with a railing that has no value: the models above, the held-out pairs and Autodesk's samples of 2024 to 2026 with railings (no Revit export: listed). Every other export is byte-identical to main's; diagnostics move only in counts the new values feed.
  4. same-project gates pass.
  • tools/check-local.sh: no local builds; rustfmt --check passes; CI runs the rest.

Result

Measure 43574375317: ca150450 against main at dc6b4721, unfiltered with nordic, r2025, samples, holdout and racadv.

  1. Holds. IfcRailing "unset in rvt-rs" goes to 0 and "same" rises by the same on every model that had one: the office as built and at permit 1 each (41 of 41), the timber office as built and at permit 3 each (41 of 41), and the R2025 models 13 to 17 two each (2 of 2). "Differs" and "NOTDEFINED where Revit writes none" are 0 on every model, as before.
  2. Holds. On the held-out pairs (counts only), the 2024, 2025 and 2026 railings go from 2 unset to 0 each (2 of 2 same); the 2022 and 2027 pairs do not move.
  3. Holds, with the moves listed. 26 of 126 exports move and 102 of 102 diagnostics.json files are identical: the three held-out pairs, the four office files, the R2025 models 13 to 17, RE1 Architecture (Revit 2025; its Revit export is IFC2X3, which has no PredefinedType on a railing, so it is not scored), and 13 Autodesk samples with no Revit export (rac_basic, rac_advanced, rme_basic and rme_advanced of 2024, 2025 and 2026, and Snowdon Towers architectural). The other 100 are byte-identical. The 42 scorer lines that move are the railing rows above.
  4. Holds. same-project gates pass on ca150450, and so does the semantic check (1 finding in 42 models).

Audit-honesty checklist

  • No claim beyond what the run will show.
  • A changelog fragment.
  • No private paths or emojis.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk source (the rule is Revit's measured export, and revit-ifc's IFCExportInfoPair is cited, not quoted); no fixtures.

Breaking changes

None.

Related issues

Part of #1713.

… is NOTDEFINED on Revit 2024 to 2026, as Revit's export writes it (#1713)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 14, 2026 08:33
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