Skip to content

feat(ifc): a room's Pset_SpaceCommon, with its Floor Finish (#35) - #589

Merged
DrunkOnJava merged 6 commits into
mainfrom
fix/b21-space-common
Oct 3, 2026
Merged

DrunkOnJava merged 6 commits into
mainfrom
fix/b21-space-common

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

B21, first slice of #35 (RE-153, #588).

Revit's export gives each room a Pset_SpaceCommon with two properties: Reference (IfcIdentifier, the room's name and number) and FloorCovering (IfcLabel, its Floor Finish). A room's Floor Finish is the text parameter -1006903. Its entry is joined to the room through the Adler-32-verified data object holding it.

Commits

  • Test: tests/space_common.rs. Red on main in draft test: red run for B21 Pset_SpaceCommon (do not merge) #587 (run 37131559218): 11 of Revit's 11 sets are missing. The red output is in the commit message.
  • Implementation:
    • scan_room_text_parameter and enclosing_data_object read a room's text parameter.
    • Rooms carry the new m_room_floor_finish field.
    • PropertyValue::Label and ::Identifier write IfcLabel and IfcIdentifier.
    • Each room gets Pset_SpaceCommon.
  • Pinned data, with the maintainer's approval, in its own commit:
    • Core Interior step.IFCPROPERTYSET goes from 970 to 1086 in both project-count manifests.
    • The witness observations are regenerated (surface unchanged).

Measure (run 37131863056, head against main)

  • RE1 Architecture: 11 new property sets, all equal to Revit's (tests/space_common.rs passes on the runners).
  • Core Interior: 116 new property sets, one per room, each with Reference only, since its rooms hold no Floor Finish.
  • Every other model's outputs are identical to main.

RE-153: Revit's export of RE1 Architecture gives each of its 11 rooms a
Pset_SpaceCommon with Reference (IfcIdentifier, the room's name and
number) and FloorCovering (IfcLabel, its Floor Finish). The new real-file
target checks that every space rvt-rs writes carries the same set,
property for property and value type for value type, and that no other
space carries one.

Red on main (draft #587, run 37131559218, Corpus health tier 2):

    test re1_architecture_space_common_is_revits ... FAILED
    thread 're1_architecture_space_common_is_revits' panicked at
    tests/space_common.rs:146:5:
    11 of Revit's 11 Pset_SpaceCommon sets differ in rvt-rs's export
    (space, Revit's, rvt-rs's): [("RE-1", {"FloorCovering":
    "IFCLABEL('Tatami')", "Reference": "IFCIDENTIFIER('4 Tatami RE-1')"},
    None), ...]
    test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured;
    0 filtered out; finished in 0.91s
RE-153: a room's Floor Finish is the text parameter -1006903
(ROOM_FINISH_FLOOR), an entry id · u32 n · UTF-16 joined to its room by
the Adler-32-verified data object holding it. On RE1 Architecture it is
Revit's Pset_SpaceCommon.FloorCovering on 11 of 11 exported rooms.

- partition_room_parameters: enclosing_data_object finds the verified
  object around a byte, and scan_room_text_parameter reads a room text
  parameter through it (Revit 2024 and later).
- partition_schema_mvp: rooms carry m_room_floor_finish.
- ifc: PropertyValue::Label and ::Identifier write IfcLabel and
  IfcIdentifier, the types standard property sets declare; each room gets
  Pset_SpaceCommon with Reference ("<name> <number>") and FloorCovering.
…ted witness observations, for Pset_SpaceCommon (#35)

With the maintainer's approval. Each of Core Interior's 116 rooms now
carries Pset_SpaceCommon (Reference), as Revit's export writes it, so
step.IFCPROPERTYSET moves 970 -> 1086 in both project-count manifests
(project_count_fixtures: 'property_sets decoder step.IFCPROPERTYSET:
actual 1086, expected 970 +/- 8'). The witness observations are copied
from Measure run 37131863056; the surface is unchanged and the hash moves
6ae889e0... -> ff9e5a75...
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 3, 2026 15:24
@DrunkOnJava
DrunkOnJava merged commit 5eaa182 into main Oct 3, 2026
23 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/b21-space-common branch October 3, 2026 15:30
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
…t-rs's (#35) (#593)

A Measure scorer for #35. Every single-value property in a Pset_ set
that Revit's export relates to an object is compared with rvt-rs's
value, by object (Tag, space or storey Name, or building), set and
property. Each counts as equal, different or missing.

Baseline on main (Measure run 37134925110):

| model | Revit values on objects rvt-rs writes | equal |
|---|---:|---:|
| RE1 Architecture | 253 | 22 |
| RE1 Mechanical | 255 | 0 |
| RE1 Plumbing | 444 | 0 |
| RE1 Electrical | 153 | 0 |

On Architecture, the 22 equal values are the 11 room Floor Finishes and
the 11 room References from #589. Core Interior's slim export writes no
property sets.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Research/CI-only Python scorer and workflow list change; no runtime
export or auth paths.
> 
> **Overview**
> Adds a **Measure / research scorer** that compares Revit-export
**`Pset_*` single-value properties** on shared IFC objects against
**rvt-rs** exports, keyed by element `Tag`, space/storey `Name`, or
`building`.
> 
> The new `tools/re/psets_vs_ifc.py` script reports totals and per-(set,
property) counts of **equal**, **different**, and **missing** values
(numbers normalized to six significant figures; rvt-rs-only and
non-`Pset_` sets are ignored). **`psets_vs_ifc`** is registered in
`tools/ci/measure-reference-models.sh` so reference-model CI runs it
alongside the other IFC scorers.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
dbce5e1. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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