Skip to content

ci(measure): count apart the properties of an export Revit made with no property sets (RE-239) - #1115

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/census-setup-without-psets
Oct 30, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/census-setup-without-psets

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

tools/re/psets_vs_ifc.py, the W7 property census, now counts apart what rvt-rs writes on a model whose Revit export writes no standard property set at all, instead of counting it as values Revit does not write. Revit's reference export of Core Interior writes no property sets (RE-239 §5), so its 4,130 values were the census's largest extra and said nothing about rvt-rs.

Motivation

Under the strict rule for properties (no value Revit's export omits, 2026-10-29), the census's "rvt-rs values Revit does not write" column is the worklist. An export setup that writes nothing is not an omission it can score: qtos_vs_ifc.py already counts quantities apart where the export has none (RE-242).

Changes

  • tools/re/psets_vs_ifc.py: where Revit's export holds no Pset_ property, the extras are printed on a line of their own, "Revit's export writes no standard property set (its setup, RE-239 §5); rvt-rs values not scored: N", and the per-set extras listing is skipped. Every other export is scored as before.

Testing

Measure 40978234397 (--ref fix/census-setup-without-psets -f ref=main -f nordic=true -f r2025=true -f scorers=psets_vs_ifc):

Model Values Revit does not write, before after Counted apart
Core Interior 4,130 0 4,130
RE1 Architecture, Electrical, Mechanical, Plumbing 59, 35, 1, 2 59, 35, 1, 2 0
BIM4LCA office as built, at permit 504, 504 504, 504 0
puzzbobb's R2025 models 0 0 0

Equal, different and missing are unchanged on every model. No code or export changes; unit tests: none (banned).

Audit-honesty checklist

  • No changelog fragment: a measurement tool, no user-visible change
  • No private paths, emojis or jargon

Legal and contribution hygiene

  • Apache-2.0; no Autodesk proprietary material

Breaking changes

None.

Related issues

Refs #1016 (W7).

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 30, 2026 00:21
@DrunkOnJava
DrunkOnJava merged commit 1fc6e04 into main Oct 30, 2026
30 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/census-setup-without-psets branch October 30, 2026 00:26
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