Skip to content

feat(ifc): the Export to IFC As values IfcSpaceType, IfcFurniture, IfcSolarDevice and IfcTransportElement redirect the elements the BIM4LCA housing carries them on, as Revit's export does (#1636) (RE-417) - #1676

Merged
DrunkOnJava merged 5 commits into
mainfrom
fix/1636-export-as-values
Nov 11, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

On each of the four large files of the BIM4LCA housing, 47 elements are written by Revit's export as another class than their category's, through their "Export to IFC As" value, and rvt-rs wrote them as proxies or a roof (RE-402 section 5). This change acts on the four values, each limited to the class it was seen on (revit-ifc restricts the value to IfcProduct, so the limit is what has been measured): IfcSpaceType on 42 Turning Free Space generic models (Revit: IfcSpace, INTERNAL), IfcFurniture on 3 generic models (USERDEFINED), IfcSolarDevice on 1 roof (SOLARPANEL) and IfcTransportElement on 1 piece of specialty equipment (ELEVATOR). The three entities that only a value reaches take their own predefined type; a value that names an entity's type object (IfcFurnitureType) is no longer counted as an unapplied value.

Measured as registered on #1636 (comment 6783894703, written before the run was read): 126 models on each side, 122 exports byte-identical and the 4 large housing files move.

  • Classes: Revit's IfcSpace absent 42 to 0, rvt-rs's proxies that Revit lacks 42 to 0, IfcFurniture 3, IfcSolarDevice 1 and IfcTransportElement 1 written as another class to 0, on all four files.
  • PredefinedType: same for all 47 on every file.
  • Census: different unchanged; values rvt-rs writes that Revit omits 167, 163, 168, 163 down to 31, 27, 32, 27; equal values +87 on each file.
  • The 42 spaces draw their bodies from their saved meshes: area within 0.1% and height within 0.01 ft on 43 of 43 family-instance spaces, outline within 0.01 ft on 42.

What the new elements expose (report section 5, not repaired here): furniture's PredefinedType (the scorer now reads it: rvt-rs writes none on the 103 or 104 furniture where Revit writes NOTDEFINED on 89 or 90, CHAIR on 9, BED on 6 or 4), GrossVolume and NetVolume Revit writes on the 42 spaces (84 more missing quantities), and Revit's export putting none of them in a storey.

Motivation

#1636 (the repairs RE-402 listed), #792.

Changes

  • src/ifc/category_map.rs: the four targets, the class limits (lookup_export_override_for, export_value_is_space), the enumerators of the three entities only a value reaches.
  • src/ifc/export_content.rs, src/research/partition_schema_mvp/types.rs, src/ifc/step_writer.rs: the class-aware lookup, the redirected predefined type, the bodiless-space check, the solar device's type object, the unapplied-value diagnostic.
  • tools/re/predefined_types_vs_ifc.py: furniture, solar devices, transport elements and family-instance spaces.
  • Report RE-417, a changed changelog fragment, the support matrix, evidence and rooms docs.

Testing

No unit tests. Measured end to end on the Measure runner: unfiltered run 42936466431 (head c74d3887, kept under refs/archive/2026-11-10/cited/c74d3887bde3, against main at 56821a14, every flag), and the proof run 42935556262 (probe_re45_ifc_export_parameters and export_parameters_vs_ifc on the six housing files). The head after it adds the report, the docs and the changelog only.

  • tools/check-local.sh: not run locally (no local builds here); CI builds 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 the limits

Audit-honesty checklist

  • Docs state only what ships
  • Changelog fragment under changelog.d/changed/
  • Limitations in the report: four values on the housing alone, the offices and samples do not exercise them, what stays open
  • No emojis, no private paths

Legal and contribution hygiene

  • Apache-2.0; revit-ifc's ExporterUtil read for the entity group an override is restricted to, cited by file and class, no code copied

Breaking changes

None.

…cSolarDevice and IfcTransportElement redirect the generic models, roof and specialty equipment the BIM4LCA housing carries them on, as Revit's export does (#1636) (RE-417)

On each large housing file 47 elements Revit's export writes as another class
than their category's were proxies or a roof: 42 Turning Free Space generic
models (IfcSpaceType, written as IfcSpace), 3 generic models (IfcFurniture), 1
roof (IfcSolarDevice) and 1 item of specialty equipment (IfcTransportElement).
Each value is limited to the class it was seen on, takes its own predefined
type, and a value that names an entity's type object no longer counts as an
unapplied export value when the element is written as that entity.
…sing file that Revit writes as another class through their Export to IFC As value (#1636) (RE-417)
…sing: 122 of 126 exports byte-identical, the 47 elements of each large file in Revit's class and PredefinedType, the values rvt-rs writes that Revit omits down from 163 to 168 to 27 to 32 (#1636) (RE-417)
@DrunkOnJava
DrunkOnJava merged commit 134db97 into main Nov 11, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1636-export-as-values branch November 11, 2026 02:09
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