Skip to content

fix(ifc): a roof, stair, stair flight or proxy with no IFC Predefined Type is NOTDEFINED, as Revit writes it (#1713) - #1970

Merged
DrunkOnJava merged 2 commits into
mainfrom
fix/1713-notdefined-defaults
Nov 14, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/1713-notdefined-defaults

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

A roof, stair, stair flight or building element proxy with no "IFC Predefined Type" of its own or its type's is now written with PredefinedType NOTDEFINED, as Revit's export writes it, where rvt-rs wrote none. This applies on the releases measured: 2024 to 2026 for roofs, stairs and flights, and 2024 to 2027 for proxies. It is the furniture default of RE-419 extended to the rows of #1713's table that Revit writes NOTDEFINED on: 25 roofs, 82 proxies, 6 stairs and 4 flights.

Changes

  • fields.rs: NOTDEFINED_DEFAULTS, each entity with its releases. Furniture keeps FURNITURE_DEFAULT_REVIT_VERSIONS.
  • types.rs: the release field is carried by every element whose class maps to one of those entities, as by furniture and casework.
  • export_content.rs: the furniture default reads the table.
  • A changelog fragment.

On Revit 2027, a roof's, stair's and flight's occurrence carries no PredefinedType (predefined_type_left_out, RE-427), so their default stops at 2026. A proxy is not one of those classes, and Revit 2027 writes NOTDEFINED on every proxy (RE-427).

Testing

Measure 43545020975, unfiltered against main with nordic, r2025, samples and holdout. Registered before it runs, from predefined_types_vs_ifc:

  1. The IfcRoof, IfcBuildingElementProxy, IfcStair and IfcStairFlight rows: "same" rises by up to the unset counts of PredefinedType: Revit's export writes one that rvt-rs leaves none or NOTDEFINED on, on walls, railings, ramps, roofs, proxies, light fixtures, pipe segments and stairs (42 models with a Revit export) #1713's table, and "differs" does not rise on any model.
  2. Held-out pairs (counts only): no row's "differs" rises.
  3. No other row moves.

Any "differs" that rises, on any class or release, narrows the table before this leaves draft.

  • tools/check-local.sh: no local builds; rustfmt --check passes; CI runs the rest.

Audit-honesty checklist

  • Each default is gated to the releases its rows were measured on.
  • A changelog fragment.

Legal and contribution hygiene

  • Apache-2.0; revit-ifc cited, not copied.

Part of #1713.

… Type is NOTDEFINED, as Revit writes it, on the releases measured (#1713)
@DrunkOnJava

DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner Author

Measure 43545020975 (head b226d44 against main 0ce6c5d; nordic, r2025, samples and held-out models): diagnostics 102 of 102 equal, and the only scorer output that moved is predefined_types_vs_ifc (and the held-out counts.txt line for it). Summed over the models that moved:

Class Same Differs Unset in rvt-rs NOTDEFINED where Revit writes none
IfcBuildingElementProxy 34 → 456 0 → 0 430 → 8 0 → 0
IfcRoof 8 → 39 0 → 0 31 → 0 0 → 0
IfcStair 70 → 76 0 → 0 6 → 0 0 → 0
IfcStairFlight 58 → 62 0 → 0 4 → 0 0 → 0

No model gains a "differs" or a NOTDEFINED that Revit leaves off, held-out ones included. The proxies still unset are, on every model, the one per BIM4LCA model that Revit writes as USERDEFINED (checked line by line), which this PR does not guess. Marking ready.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 14, 2026 02:55
…4 only, the one release whose export exercises it (#1713) (RE-353)
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