Skip to content

feat(ifc): a building element proxy takes its own or its type's predefined type where that is an IFC4 enumerator, so the USERDEFINED proxy of each BIM4LCA file is written as in Revit's export (#1713) - #2009

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/1713-proxy-userdefined
Nov 14, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

A building element proxy takes its own or its type's "IFC Predefined Type" where that is one of IFC4's IfcBuildingElementProxyTypeEnum enumerators, as a railing, a wall, a ramp, a light fixture, a pipe segment and a door already do (#1765, #1787, #2001). In each of the twelve BIM4LCA files (six housing, six office) one proxy carries USERDEFINED as its own "IFC Predefined Type" under an "Export to IFC As" of IfcBuildingElementProxy (probe, Measure 43588996635: element 1337778 of the housing files, 1337610 of the office), Revit's export writes USERDEFINED on it, and rvt-rs left it unset. A proxy with no value keeps the NOTDEFINED of NOTDEFINED_DEFAULTS. Part of #1713. Measure 43589444447 (5e15df52 against main, unfiltered) moves those 12 exports and no other:

  • IfcBuildingElementProxy: 116 in both, same 104 to 116, unset 12 to 0; differs and NOTDEFINED where Revit writes none stay 0. Per file the proxy reads USERDEFINED: same 2 to 3 of 3 on the four large housing files, 0 to 1 of 1 on the two housing terrain files, 11 to 12 of 12 on the office as built and at permit, 10 to 11 of 11 on its two timber files, 0 to 1 of 1 on its two terrain files.
  • IfcBuildingElementProxyType: each type object follows its proxy, so rvt-rs's USERDEFINED goes from 0 to 12 (Revit's 12) and its NOTDEFINED from 54 to 42 (Revit's 36; the 6 type objects more than Revit's are not this change).
  • diagnostics.json: 102 of 102 identical. The held-out pairs and every other export are identical.

Motivation

#1713's census after #2002: IfcBuildingElementProxy 116 in both, 104 same, 12 unset where Revit writes USERDEFINED, 0 differs, 0 NOTDEFINED where Revit writes none. The class was left out of PREDEFINED_TYPE_ENUMERATORS because listing a class applies the own value of every element a category maps to it, which was not measured for proxies.

Changes

  • src/ifc/category_map.rs: IFCBUILDINGELEMENTPROXY and its seven enumerators in PREDEFINED_TYPE_ENUMERATORS, with the evidence in the table's doc comment.
  • A changelog fragment.

Testing

Measure 43589444447: 5e15df52 against main at 32ed4e6a, unfiltered with nordic, r2025, samples, holdout and racadv.

  1. Holds. The 12 unset proxies read USERDEFINED, equal to Revit's; no proxy of the 42 models, nor of the held-out pairs (counts only: 48 of 48 same, before and after), changes value otherwise.
  2. Holds. 114 of 126 exports are identical to main's, and so are all 102 diagnostics.json files; the 60 scorer lines that move are the proxy and proxy-type rows of the 12 files (5 each).
  3. Not shown. A proxy whose "IFC Predefined Type" is text that is no enumerator is left unset, as before: no measured file holds one.
  • tools/check-local.sh: no local builds; rustfmt --check passes; CI runs the rest.

Audit-honesty checklist

  • The Summary states each change the run showed, with its count.
  • 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); no fixtures.

Breaking changes

None.

Related issues

Part of #1713.

…fined type where that is an IFC4 enumerator, so the USERDEFINED proxy of each BIM4LCA file is written as in Revit's export (#1713)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 14, 2026 11:43
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