Repository navigation
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
Conversation
…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)
…o IFC As value the housing carries (#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
marked this pull request as ready for review
November 11, 2026 01:59
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
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):IfcSpaceTypeon 42Turning Free Spacegeneric models (Revit:IfcSpace,INTERNAL),IfcFurnitureon 3 generic models (USERDEFINED),IfcSolarDeviceon 1 roof (SOLARPANEL) andIfcTransportElementon 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.
IfcSpaceabsent 42 to 0, rvt-rs's proxies that Revit lacks 42 to 0,IfcFurniture3,IfcSolarDevice1 andIfcTransportElement1 written as another class to 0, on all four files.PredefinedType: same for all 47 on every file.differentunchanged; values rvt-rs writes that Revit omits 167, 163, 168, 163 down to 31, 27, 32, 27; equal values +87 on each file.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 writesNOTDEFINEDon 89 or 90,CHAIRon 9,BEDon 6 or 4),GrossVolumeandNetVolumeRevit 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.Testing
No unit tests. Measured end to end on the Measure runner: unfiltered run 42936466431 (head
c74d3887, kept underrefs/archive/2026-11-10/cited/c74d3887bde3, againstmainat56821a14, every flag), and the proof run 42935556262 (probe_re45_ifc_export_parametersandexport_parameters_vs_ifcon 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 itAudit-honesty checklist
changelog.d/changed/Legal and contribution hygiene
ExporterUtilread for the entity group an override is restricted to, cited by file and class, no code copiedBreaking changes
None.