Skip to content

fix(ifc): a room's Floor Finish is in Pset_SpaceCoveringRequirements, where IFC4 puts a space's coverings (#35) - #820

Merged
DrunkOnJava merged 2 commits into
mainfrom
fix/space-covering-ifc4
Oct 19, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/space-covering-ifc4

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

A room's Floor Finish is now written in Pset_SpaceCoveringRequirements.FloorCovering, where IFC4 puts a space's coverings, instead of Pset_SpaceCommon.FloorCovering.

Motivation

rvt-rs writes IFC4. IFC4's Pset_SpaceCommon has no covering properties: neither buildingSMART's IFC4 definitions (ifc-gherkin-rules pset_definitions.csv) nor revit-ifc's IFC4 definitions list any. The coverings are in Pset_SpaceCoveringRequirements, which IFC4 Reference View certifies, and revit-ifc feeds its FloorCovering from the Floor Finish (ROOM_FINISH_FLOOR, its general parameter mapping). RE-153 followed Revit's export of RE1 Architecture, which is IFC2X3: IFC2X3's Pset_SpaceCommon does hold the coverings. RE-153 recorded it as IFC4.

Changes

  • src/ifc/export_content.rs: space_covering_property_set writes the Floor Finish in Pset_SpaceCoveringRequirements (IfcLabel); Pset_SpaceCommon keeps Reference and IsExternal.
  • tests/space_common.rs: compares RE1's IFC2X3 Pset_SpaceCommon with rvt-rs's IFC4 sets, each property keyed by its set, with IFC2X3's coverings expected in Pset_SpaceCoveringRequirements, so a FloorCovering left in Pset_SpaceCommon fails it. It says the export is IFC2X3.
  • tools/re/psets_vs_ifc.py: an IFC2X3 reference's space coverings are keyed under their IFC4 set, as the scorer already normalises length units. The six properties IFC4 moved (FloorCovering, WallCovering, CeilingCovering, SkirtingBoard, ConcealedFlooring, ConcealedCeiling) are the ones buildingSMART's IFC2X3 Pset_SpaceCommon has and its IFC4 Pset_SpaceCoveringRequirements has instead; no reference export has the two concealed flags, so no score depends on them.
  • RE-153 records the export's schema. CHANGELOG. README's summary of 0.5.0 keeps the placement that release has; main's is in [Unreleased].

Testing

Measure A/B against #818's head (f13eec9), before #818 and #819 landed (the branch is now rebased onto main with both; #819 touches only elements written in pieces, and no space is), run 39233083464. Both sides were scored with this PR's psets_vs_ifc.

RE1 Architecture before this PR
Pset_SpaceCoveringRequirements.FloorCovering, of Revit's 11 missing 11, plus 11 rvt-rs-only values in Pset_SpaceCommon equal 11
All property values equal, of Revit's 253 195 206
  • main's count was 206 with the old scorer, which compared Pset_SpaceCommon with Pset_SpaceCommon; nothing is lost.
  • Only RE1 Architecture's and Snowdon Towers' architectural exports change: they are the models whose rooms have a Floor Finish. The other 60 hashed exports are identical.
  • No schema output changes, and no export has a finding.
  • tests/space_common.rs runs in the corpus job.

cargo fmt is clean. No unit tests, by the repository's rule.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content

Based on buildingSMART's IFC4 property set definitions (CLEANROOM.md source 4) and revit-ifc's IFC4 definitions and parameter mapping (source 5, read and cited).

Breaking changes

The property moves set: a consumer reading Pset_SpaceCommon.FloorCovering from rvt-rs's export now finds it in Pset_SpaceCoveringRequirements.

Base automatically changed from fix/rooms-without-number to main October 19, 2026 10:25
@DrunkOnJava
DrunkOnJava force-pushed the fix/space-covering-ifc4 branch from 42e45ce to e961806 Compare October 19, 2026 10:26
… where IFC4 puts a space's coverings (#35)

RE-153 wrote it as Pset_SpaceCommon.FloorCovering after Revit's export of RE1 Architecture, which is IFC2X3, whose Pset_SpaceCommon holds the coverings. IFC4's Pset_SpaceCommon has none, and revit-ifc's IFC4 definitions feed Pset_SpaceCoveringRequirements.FloorCovering from the same Floor Finish. The RE1 test and psets_vs_ifc read the IFC2X3 reference's coverings under their IFC4 set; RE-153 records the schema.
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review October 19, 2026 10:35
@DrunkOnJava
DrunkOnJava force-pushed the fix/space-covering-ifc4 branch from e961806 to 5d1f258 Compare October 19, 2026 10:35

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5d1f2580d5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread tests/space_common.rs Resolved
Comment thread tools/re/psets_vs_ifc.py Resolved
Comment thread README.md Resolved
…nd the scorer maps every covering IFC4 moved (#35)

tests/space_common.rs keys each property by its set, so a FloorCovering left in Pset_SpaceCommon fails it; IFC2X3's Pset_SpaceCommon coverings, ConcealedFlooring and ConcealedCeiling among them (buildingSMART's IFC2X3 and IFC4 definitions), are compared in Pset_SpaceCoveringRequirements, in the test and in psets_vs_ifc. README's summary of 0.5.0 keeps the placement that release has.
@DrunkOnJava
DrunkOnJava merged commit def48a0 into main Oct 19, 2026
26 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/space-covering-ifc4 branch October 19, 2026 10:57
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
…written, from buildingSMART's definitions (#817) (#821)

## Summary

A project or shared parameter named `<set>.<property>` is now written
for a property of any of IFC4's 278 property sets that apply to an
entity, where RE-194 (#815) listed 21 sets by hand. The table is
generated from buildingSMART's own IFC4 property set definitions and
IFC4's entity hierarchy, and CI checks that the committed table is the
generator's output. Closes #817.

## Motivation

RE-194 left this open: a parameter named for an IFC4 set the hand list
did not have, such as `Pset_SpaceFireSafetyRequirements` or
`Pset_ConcreteElementGeneral`, was dropped. Revit's exporter writes a
common set wherever its IFC4 definition applies the set to the element's
entity (revit-ifc, read and cited). A generated table also removes
hand-copying errors from the property kinds.

## Changes

- `tools/ci/gen_standard_property_sets.py` reads
`features/resources/IFC4/pset_definitions.csv` of
buildingSMART/ifc-gherkin-rules (MIT), the list buildingSMART's
validation service checks rule PSE001 against, pinned by commit and
refused at any other sha256, and IFC4's supertypes from IfcOpenShell's
schema. It writes `src/ifc/standard_property_sets/table.rs`.
- Performance-history sets (`PSET_PERFORMANCEDRIVEN`) and sets that
apply to no entity are left out.
- A property the CSV gives no type takes the type every other set gives
a property of that name.
- `src/ifc/standard_property_sets.rs`: the generated table replaces the
hand list. `applies_to` walks the written entity's supertypes, and a set
scoped to a predefined type (`Pset_CoveringCeiling` on
`IfcCovering/CEILING`) applies only with that predefined type.
- `IfcInteger` properties (`NumberOfSections`, `NumberOfCircuits`, ...)
are read the way counts are. A count or integer above 2,147,483,647 is
not written: how Revit stores a negative one is not measured.
- CI: the IfcOpenShell job regenerates the table and diffs it against
the committed one.
- RE-194's report, CHANGELOG, README, supported profile, support matrix.

The first version's 21 sets come out of the generator with the same
entities and properties.

## Testing

Measure A/B against `main` (4dab45d), run
[39239068465](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39239068465),
on 2f1682e (this PR's change before its rebase onto #820 and the fetch
retry, which touches only the generator): reference models, BIM4LCA
office, Autodesk's samples and the R2025 models.

- All 89 hashed exports are byte-identical, and so are the office's and
Core Interior's schema checks. No measured model has a parameter named
for a property of one of the new sets, so nothing they would write
appears.
- The table step in CI regenerates the table from the pinned CSV and
finds it identical. The fetch retry was checked against a simulated
outage: two failures then a success read the file, and three failures
fail the step.

`cargo fmt` is clean, and the committed table is the generator's output
(regenerated with IfcOpenShell 0.9.0.post1, the version
`tools/ci/requirements-ifc.txt` pins). No unit tests, by the
repository's rule.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content

Based on buildingSMART's IFC4 property set definitions (CLEANROOM.md
source 4, MIT) and revit-ifc's property set handling (source 5, read and
cited).

## Breaking changes

None released. `ifc::standard_property_sets` changes shape
(`StandardPropertySet::applies` carries predefined types, `applies_to`
takes the element's predefined type), but the module was added after
v0.5.1 (#815) and has not been released.
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
…'s definitions (#822) (#826)

## Summary

Part 4 of #822, report-only. Measure now checks every export's standard
property sets against IFC4's definitions, so a set or property IFC4 does
not have, or a set on an entity IFC4 does not apply it to, shows in each
export's `schema.txt` and in the base/head comparison.

## Motivation

#820 and #822 found, one at a time, sets and properties rvt-rs writes in
its IFC4 output that are IFC2X3's, taken from Revit's IFC2X3 exports of
the RE1 models. IFC reserves the `Pset_` prefix for the sets it defines,
and buildingSMART's validation service checks property sets against its
own list of IFC4's definitions (rule PSE001). Checking every export
against that list finds the whole class at once, and keeps it from
coming back.

## Changes

- `tools/ci/ifc4_property_sets.py`: for every `Pset_` set an IFC file
relates to an object (`IfcRelDefinesByProperties`) or gives a type
object (`HasPropertySets`), counts sets IFC4 does not define, properties
their IFC4 set does not have, sets on entities IFC4 does not apply them
to (with supertypes; a set scoped to a predefined type, such as
`IfcCovering/CEILING`, applies to an object with that predefined type,
its own or, where it gives none, its type's, or a user-defined one of
that name; on an entity with no `PredefinedType`, such as
`IfcAnnotation`, the scope is its `ObjectType`), properties of another
kind than declared, single, list and bounded values of another type, and
enumeration values the enumeration does not have. An
`IfcPropertySetDefinitionSet` is checked set by set. The definitions are
`features/resources/IFC4/pset_definitions.csv` of
buildingSMART/ifc-gherkin-rules, read through
`gen_standard_property_sets.py`'s pinned commit and sha256 (#817).
Quantity sets are not checked.
- `tools/ci/measure-reference-models.sh`: `schema()` appends the report
to every model's and sample's `schema.txt`, fetching the definitions
once per run.
- CHANGELOG.

## Testing

Measure on `main`'s code before #825 (19f26b9) with this tool, run
[39245178917](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39245178917):
reference models, BIM4LCA office, Autodesk's samples and the R2025
models, 89 exports, every one with a report. #825 has since landed and
removed the first four rows.

| Finding | Exports | Count | Fixed by |
|---|---:|---:|---|
| not an IFC4 set: `Pset_QuantityTakeOff` | 88 | 123,206 | #825 |
| not an IFC4 set: `Pset_DistributionFlowElementCommon` | 48 | 36,597 |
#825 |
| not an IFC4 set: `Pset_ProductRequirements` | 87 | 3,385 | #825 |
| `Pset_AirSideSystemInformation` on `IfcBuildingStorey` | 87 | 447 |
#825 |
| not an IFC4 set: `Pset_FlowSegmentPipeSegment`,
`Pset_FlowSegmentDuctSegment` | 4 | 2,421 each | part 2 of #822 |
| not a property of its IFC4 set: `Pset_DuctSegmentTypeCommon.Length` |
3 | 1,441 | part 2 of #822 |
| not a property of its IFC4 set:
`Pset_PipeFittingTypeCommon.NominalDiameter` | 11 | 5,469 | to follow
(#822) |
| not a property of its IFC4 set:
`Pset_PrecastConcreteElementGeneral.SerialNumber` | 1 | 19 | part 2 of
#822 |

No export has a value of another type than IFC4 declares, or an
enumeration value IFC4 does not list.

On `main` with #825 and #830 (this PR's Measure run
[39255349556](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39255349556),
the six reference models), Core Interior, Einhoven and RE1 Architecture
have no finding; RE1 Mechanical and Plumbing keep the flow-segment sets
(94 each), `Pset_DuctSegmentTypeCommon.Length` (25) and the fittings'
`NominalDiameter` (49), and RE1 Electrical the precast `SerialNumber`
(19). On `tests/fixtures/synthetic-project.ifc` the tool also reports 7
properties `from_decoded`'s builders put in `Pset_WallCommon` and
`Pset_WindowCommon`, a path no production export takes (none of the 89
has them).

The check reports and does not fail. It can gate CI's production exports
once the list is empty.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content

Based on buildingSMART's IFC4 property set definitions (CLEANROOM.md
source 4, MIT).

## Breaking changes

None.
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 19, 2026
6 tasks done
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
## Summary

Prepare v0.6.0. Merging this is not the release: the release is the signed `v0.6.0` tag on the merged commit, after the maintainer's go-ahead. This stays a draft until then.

## Motivation

Since 0.5.1, `main` has:

- **IFC4's own property sets (#822):** the IFC2X3 sets 0.5 took from Revit's exports of the RE1 models are gone or moved to where IFC4 and Revit's own IFC4 export put them (#825, #829, #833), and Measure checks every export's standard property sets against buildingSMART's published IFC4 property set definitions (#826). That is rvt-rs's own check: buildingSMART's Validation Service has not been run on the exports, and quantity sets are not checked.
- **More of what Revit's exporter writes:** parameters named for an IFC4 property set's property (RE-194, #815, #817/#821), each element's `IsExternal` (RE-193, #814), a type's Fire Rating (#830), a door's overall size (#788), Revit 2024 Areas as spaces (#811), port types and electrical flow directions (#832), rooms with no number (#818), pieces' property sets (#819), a room's floor finish in IFC4's set (#820).
- **Older and newer releases, experimentally:** Revit 2015 to 2022 (#742) and 2027 (#740) element records.
- **Fixes:** Export to IFC As on fixtures, stairs, doors, curtain walls and wall sweeps (#796, #804, #812, #813), the latest copy of an element's or type's data (#803, #809), declared ElementIds (#797), diagnostics naming the file, not its folders (#785), the browser viewer's wasm32 string-length panic (#835), and `rvt-inspect`, `rvt-corpus doctor` and the viewer's File Status taking Revit 2015 and 2027 as releases rvt-rs reads (#838).
- **CI and release:** IfcOpenShell 0.9.0.post1 (#795), Rust installed with rustup (#793), a tag publishes nothing until the maintainer approves it (#786, #787), and Measure's office, R2025, paired-probe and per-sample hashing (#790, #799, #805, #806).

## Changes

- **Versions 0.5.1 → 0.6.0** in the nine files that carry them: `rvt`, `rvt-py` and its pin, `rvt-wasm`, the `stream_evidence` pin, `CITATION.cff` (with `date-released`), `.release-please-manifest.json`, `viewer/package.json` and both lockfiles' workspace entries.
- **CHANGELOG:** `[0.6.0] — 2026-10-19`, with an introduction, **Upgrading from 0.5** (the property sets that moved, the public API changes, the releases that now export elements) and the outside contributors credited: puzzbobb (#740, #742, #798), Erry91 (#788) and MadsHolten (#835). The section's headings were already single; its 41 entries are all kept, with #835's and #838's added. Its introduction says the property sets match buildingSMART's published IFC4 definitions by rvt-rs's own check, as does the README's release summary.
- **README:** "Release 0.6.0 and main" names v0.6.0 and summarises what it added. The lines that said `main` reads Revit 2015 to 2022 and 2027 now say experimental (since 0.6.0). The opening and "Not yet" lines name those releases, and so does the capability table. The bullet list of what 0.5.0 added is gone; #832 had put 0.6.0's port types in it. As Codex found, the IFC4 export row, the viewer paragraph and the decoder-work paragraph also said 2022 and earlier export only the scaffold, and the by-input table skipped 2014; they name 2015 to 2022, 2026 and 2027 now.
- **Witnesses:** the IFC header carries the version, so both Core Interior `rvt-rs.json` observations and their verdicts are refreshed from this pull request's CI run.

## Testing

- CI on this pull request, the witness replays included.
- Measure on `main` at 23a9d76, which is everything in this release but #835's wasm32-only fix and #838's CLI and viewer version range, neither of which changes an export: run [39273188597](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39273188597). All 89 exports (the reference models, both BIM4LCA office files, Autodesk's 58 sample projects and the 23 R2025 models) have no finding in Measure's IFC4 property set check (#826, against buildingSMART's published definitions), and IfcOpenShell's schema validation finds nothing on any of the 89; none was too large to validate.
- Witnesses: both Core Interior observations and verdicts are taken from this pull request's CI run 39275014518; only `witness_version` and the verdict hashes differ, and CI's replay on b82c0c3 passes.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in committed files

## Legal and contribution hygiene

- [x] I agree this work is licensable under Apache-2.0
- [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content

## Breaking changes

See **Upgrading from 0.5** in the CHANGELOG: standard property sets moved to IFC4's, and five public API changes.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Version and documentation-only release prep with no runtime code changes in this PR.
> 
> **Overview**
> **Bumps the workspace from 0.5.1 to 0.6.0** across `Cargo.toml`, `rvt-py` / `rvt-wasm` / `stream_evidence` pins, lockfiles, `viewer/package.json`, `.release-please-manifest.json`, and `CITATION.cff` (release date 2026-10-19).
> 
> **Documents the release:** adds the `[0.6.0]` section to `CHANGELOG.md` (IFC4 property sets, broader Revit export parity, experimental 2015–2022/2027 element export, wasm viewer fix, and **Upgrading from 0.5** breaking notes). **README** now treats v0.6.0 as the current release—updates the support matrix and “Release 0.6.0 and main” to describe shipped capabilities instead of the old 0.5.1 bullet list.
> 
> No application or library source changes in this diff; it packages and narrates work already on `main`.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c8826b82982270fd4f47b8da656f2e3e6021c76b. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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