Repository navigation
feat(ifc)!: name each IfcSpace by its room number, as Revit's export does, with the ElementId as a property (#90) (RE-117) - #503
Merged
Conversation
…does, with the ElementId as a property (#90) (RE-117)
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 17:25
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_e1c824ee-34aa-42e8-af88-414cdd1f6e51) |
DrunkOnJava
added a commit
that referenced
this pull request
Sep 28, 2026
## Summary Prepare v0.4.0. Merging this is not the release: the release is the signed `v0.4.0` tag, which runs `publish.yml` (crates.io, PyPI, the release binaries and the container image). **Why 0.4.0.** The CHANGELOG follows semver, and before 1.0 a breaking change bumps the minor version. Changes since 0.3.0 that consumers will notice: - `IfcSpace.Name` is now the room number (#503). - Only building-story Levels become storeys (RE-118). - System families are named in the file's saved locale (RE-123). - `ElemRecord::owner_id` values change (#499). - Public structs gained fields. ## Changes - **Versions 0.3.0 → 0.4.0:** `rvt`, `rvt-py` and its pin, the `stream_evidence` pin, both lockfiles (only the version lines change), `.release-please-manifest.json` and `viewer/package.json`. - **`CHANGELOG.md`:** `[Unreleased]` becomes `[0.4.0] — 2026-09-28`. - A new **Upgrading from 0.3** section covers the room naming, storey filtering, locale names, `owner_id`, struct fields and changed bodies and counts. - The 55 entries are regrouped by what they mean for a 0.3 user: Added (Revit 2023 projects; every supported release), Changed and Fixed. They were under two "Added" headings, with most additions under "Changed". Entry text is unchanged. - **Witnesses:** the IFC header carries the version (#417), so both Core Interior `rvt-rs.json` observations are regenerated. `witness-verdict.py` gives PASS with three replay matches for each. ## Checks - fmt, clippy, rustdoc, MSRV 1.85, the fuzz check (locked), integration tests, and `verify-real-files.sh --profile ci`. - `cargo install --path . --locked`: `rvt-inspect --version` prints 0.4.0, and `rvt-info`, `rvt-inspect --json` and `rvt-ifc --diagnostics` run on the 2024 sample family. - `maturin build`: the 0.4.0 wheel installs in a clean venv and imports, reporting `rvt.__version__ == "0.4.0"`. The docs keep describing 0.3.0 as the latest release until each 0.4.0 channel has been verified from its published artifacts. That follows in a separate PR. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Diff is version metadata, changelog curation, and witness JSON version strings only; behavioral breaking changes ship in prior feature merges, not in this PR. > > **Overview** > This PR **cuts the 0.4.0 release line** without changing decoder or exporter code: it bumps **`0.3.0` → `0.4.0`** on `rvt`, `rvt-py`, the viewer, `.release-please-manifest.json`, path/version pins in `stream_evidence`, and the lockfiles. > > **`CHANGELOG.md`** promotes the accumulated work from `[Unreleased]` to **`[0.4.0] — 2026-09-28`**, adds an **Upgrading from 0.3** section (room `IfcSpace.Name`, building-story storeys, locale system-family names, `ElemRecord::owner_id`, new public struct fields, geometry/IFC count shifts), and **reorganizes** the ~55 entries into Added / Changed / Fixed (Revit 2023 vs all releases) without rewriting entry text. > > Both Core Interior witness **`rvt-rs.json`** observations update **`witness_version`** to `0.4.0` so replay metadata matches the IFC header version. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 518f90c. 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
Revit's IFC exporter names an
IfcSpaceby its room number (Name) and describes it by its room name (LongName). rvt-rs wroteName = Room-<ElementId>. Now it follows Revit's convention and writes the ElementId, which anIfcSpacehas noTagfor, as an explicitElementIdproperty.When a value is missing:
Room-<ElementId>Name.LongName($). Before, it repeated the Name.Measured
tools/re/room_names_vs_ifc.py(now keyed by theElementIdproperty) compares each space's (Name,LongName) with Revit's:Before this change, 0 had Revit's
Name.Unchanged by it:
room_areas_vs_vim.py, rekeyed) are still 45 of 54.Witnesses
The added property changes Core Interior's entity counts, so both Core artifacts'
rvt-rs.jsonobservations are refreshed.witness-verdict.pygives PASS on both, with three replay matches each, andifc_schema_arity.py --witness-agreementpasses.Upgrade note
This is a breaking change for anything that read a room's ElementId from
IfcSpace.Name: read theElementIdproperty instead. It is in the CHANGELOG under Changed.Checks
verify-real-files.sh.Note
Medium Risk
Breaking change to exported IFC semantics for rooms; integrators keyed on
IfcSpace.Namefor ElementId need to migrate, though fallbacks and scoped behavior limit blast radius.Overview
Breaking IFC room identity (RE-117): exported
IfcSpaceentities now match Revit’s exporter—Nameis the room number,LongNameis the room name, and the Revit ElementId is written as anElementIdproperty (sinceIfcSpacehas noTag). Rooms without a number still useRoom-<ElementId>forName; rooms without a name no longer duplicateNameintoLongName(it is unset).Export plumbing adds
ROOM_ELEMENT_ID_PROPERTYonRoomelements inexport_content.rsand updatesstep_writer.rsto mapRoomNumber/RoomNameproperties into the STEP attributes. Research scriptsroom_names_vs_ifc.pyandroom_areas_vs_vim.pykey off the new property instead of parsingName. Docs (CHANGELOG, README, support matrix) and Core Interior witness observations are refreshed (IFCPROPERTYSINGLEVALUE+116, new observation hashes).Upgrade: consumers that took ElementId from
IfcSpace.Namemust read theElementIdproperty; glTF, viewer, and room schedule behavior is unchanged per the PR description.Reviewed by Cursor Bugbot for commit a9570f5. Configure here.