Repository navigation
fix(elements): a room with no number is named, typed and referred to as Revit's exporter does it (RE-196) - #818
Merged
Merged
Conversation
…as Revit's exporter does it (RE-196) A room's number and name were read only as a pair of non-empty texts, so a room whose number is empty got neither, and its space was Room-<ElementId> with no LongName. An empty entry is now read as an empty text, which is also the latest copy's value (#800). Revit's exporter names a space by its number, and where that is empty by its display name and ElementId (revit-ifc NamingUtil.GetIFCBaseName); its type and Pset_SpaceCommon.Reference follow the same display name. A text parameter emptied in the latest copy likewise hides an older copy's value.
6 tasks done
DrunkOnJava
marked this pull request as ready for review
October 19, 2026 10:19
DrunkOnJava
added a commit
that referenced
this pull request
Oct 19, 2026
… where IFC4 puts a space's coverings (#35) (#820) ## 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](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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 - [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) 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`.
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 -->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A room with no number is now named, typed and referred to as Revit's exporter does it, and an emptied room number, room name or text parameter in a room's latest copy hides an older copy's value. Report: RE-196.
Motivation
On the BIM4LCA office 43 rooms have no number. rvt-rs read a room's number and name only as a pair of non-empty texts, so these rooms got neither. Their spaces were
Room-<ElementId>with noLongName, noIfcSpaceTypeand noPset_SpaceCommon.Reference. Revit's export names them<name>:<ElementId>(SHAFT:2367915,LongNameSHAFT), types them by anIfcSpaceTypeof the same name, and gives themReferenceSHAFT.Changes
src/partition_room_parameters.rs:scan_room_parameter_entriesreads an empty number or name, an entry ofn0, as an empty text. The latest partition's copy decides even where it is empty (Room and area names on the BIM4LCA permit file: the readers drop copies that disagree instead of taking the latest partition's (RE-145) #800).scan_text_parameter(Floor Finish, Serial Number) does the same for its values and returns none that are empty.src/ifc/step_writer.rs: a space with a name and no number is named<name>:<ElementId>, and typed by<name>:<ElementId>. revit-ifc'sNamingUtil.GetIFCBaseNamegives that when the room number is empty (CLEANROOM.md source 5).src/ifc/export_content.rs:Pset_SpaceCommon.Referenceis the room's name alone where it has no number.Testing
Measure A/B against
main(e20a079), runs 39232195456 (BIM4LCA office, one-runner timing) and 39232199081 (samples, R2025 models):room_names_vs_ifc)psets_vs_ifc)IsExternal(43),Reference(43) andHandicapAccessible(42) count as equal. They also get the two name sets rvt-rs gives every named room, which this export lacks.5322,TEKN.SÄHwhere Revit hasELECT). The latest copy's empty number now decides.FloorCoveringand the Serial Number, whichscan_text_parameterreads.cargo fmtis clean. No unit tests, by the repository's rule.Audit-honesty checklist
Room-<ElementId>(RE-196 §4)Legal and contribution hygiene
Contributor declaration (CLEANROOM.md). The change rests on:
IFCInstanceExporter.CreateSpace,NamingUtil.GetNameOverrideandGetIFCBaseName.No revit-ifc code is copied or translated.
Breaking changes
None.