Skip to content

ci(measure): count apart IFC4 properties an IFC2X3 reference export cannot write (#1016) - #1118

Merged
DrunkOnJava merged 2 commits into
mainfrom
fix/census-ifc2x3-undefined
Oct 30, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/census-ifc2x3-undefined

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

The W7 property census (tools/re/psets_vs_ifc.py) now counts apart, where Revit's reference export is IFC2X3, each IFC4 property rvt-rs writes that IFC2X3's definition of its set does not have: that export cannot write it, so it says nothing about whether rvt-rs writes a value Revit's export omits. The definitions are buildingSMART's IFC2X3 property set templates as IfcOpenShell 0.9.0 ships them (ifcopenshell.util.pset.get_template("IFC2X3")). Properties the census already reads from another IFC2X3 set (space coverings, Reference, invert elevation) still count as held.

Motivation

Under the strict rule for properties (2026-10-29), "rvt-rs values Revit does not write" is the worklist. On RE1, whose exports are IFC2X3 by Revit 26.2, most of that column was IFC4-only properties.

Changes

  • tools/re/psets_vs_ifc.py: ifc2x3_holds(set, property); the count apart and its per-property lines.

Testing

Measure 40981313275 (-f ref=main -f nordic=true -f r2025=true -f bimcollab=true -f scorers=psets_vs_ifc):

Model Values Revit does not write, before after IFC4-only, counted apart
RE1 Architecture 59 10 49: proxies', coverings' and spaces' IsExternal (9, 6, 11), furniture types' Reference (23)
RE1 Electrical 35 5 30: proxies' IsExternal
RE1 Mechanical 1 0 1: a proxy's IsExternal
RE1 Plumbing 2 2 0
BIM4LCA office, as built and at permit 504, 504 504, 504 0 (IFC4 exports)
Core Interior, R2025 unchanged

Equal, different and missing are unchanged everywhere. What stays is measured, not explained away: RE1 Architecture's 10 mullions' Pset_MemberCommon.Span and RE1 Electrical's 5 alarm types' Reference, which IFC2X3 defines and Revit's export does not write. RE1 Plumbing's 2 are on the tank Revit's export leaves out (RE-262).

No code or export changes; unit tests: none (banned).

Audit-honesty checklist

  • No changelog fragment: a measurement tool
  • No private paths, emojis or jargon

Legal and contribution hygiene

  • Apache-2.0; IfcOpenShell (LGPL) is used as a tool in CI, not copied

Breaking changes

None.

Related issues

Refs #1016 (W7).

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 30, 2026 00:48
@DrunkOnJava
DrunkOnJava merged commit b31c3f4 into main Oct 30, 2026
27 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/census-ifc2x3-undefined branch October 30, 2026 01:16
DrunkOnJava added a commit that referenced this pull request Oct 30, 2026
…1016) (RE-239) (#1120)

## Summary

rvt-rs writes an element's type name as `Reference` only in the 34 IFC4
standard sets where a measured Revit export writes it with the same
value (`CONFIRMED_REFERENCE_SETS`), and in no other set until one does.
The maintainer's decisions, 2026-10-29 (RE-239 §7): keep the census
set-asides of #1115 and #1118, which Revit's IFC4 exports back, and make
`Reference` fail closed everywhere rather than skip the one unconfirmed
set found.

## Motivation

#1016 (W7). The census set aside 4,210 rvt-rs values its reference
exports could not hold. Checked against the office's and R2025's IFC4
exports, 24 of their 25 properties are written equal there and never
different; `Pset_ShadingDeviceCommon.Reference` is in no export. rvt-rs
could also write `Reference` in 9 further sets no export confirms.

## Changes

- `src/ifc/export_content.rs`: `CONFIRMED_REFERENCE_SETS`, the 34 sets
(31 equal on the office and R2025 IFC4 exports, and the duct fitting,
duct segment and pipe fitting types on RE1's IFC2X3 exports);
`reference_set_kinds` keeps only those.
- `tests/fixtures/project-counts/2024-core-interior{,-slim}.json`:
`IFCPROPERTYSET` 6,528 to 6,508, with a dated note.
- `research/witness/...core-interior*/observations/rvt-rs.json`:
`IFCPROPERTYSET` 6,528 to 6,508, `IFCPROPERTYSINGLEVALUE` 29,102 to
29,082, `IFCRELDEFINESBYPROPERTIES` 7,062 to 7,042, copied from this
PR's CI artifact; both verdicts replay PASS, verdict files unchanged.
- RE-239 §7 (the coverage table and every set left out, with why),
`changelog.d/changed/shading-device-reference.md`.

## Testing

Measure
[40986458174](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40986458174),
against main at b31c3f4, every model and scorer:

- Exports that move: Core Interior (its 20 shading devices lose
`Pset_ShadingDeviceCommon`), RE1 Electrical (its 5 alarms lose
`Pset_AlarmTypeCommon`) and BIMcollab's 2015 structural model (its
footings' sets). Every other export is byte-identical.
- Census: equal, different and missing unchanged on every model; RE1
Electrical's values Revit does not write 5 to 0; Core Interior's
set-aside 4,130 to 4,110.
- 1,227 of 1,229 scorer outputs byte-identical; the two that differ are
those census lines.

Unit tests: none (banned).

## Audit-honesty checklist

- [x] RE-239 §7 lists the 34 sets and every set left out, with why
- [x] Changelog fragment
- [x] No private paths, emojis or jargon

## Legal and contribution hygiene

- [x] Apache-2.0

## Breaking changes

None in the API. Exports of models with shading devices, alarms,
footings, reinforcing bars, transport elements or ramp flights lose
those elements' `Reference` sets.

## Related issues

Refs #1016.
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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