Repository navigation
feat(elements): a placed Revit 2024 Area is an IfcSpace with its number, name and storey (#763) (RE-191) - #811
Merged
Merged
Conversation
DrunkOnJava
force-pushed
the
feat/763-area-spaces
branch
from
October 19, 2026 01:17
d6ef28b to
9ab0a90
Compare
…d storey (#763) An Area's partition chain record carries OST_Areas at +0x12 and no bbox marker, so the element-record scan never read one, and Revit's export of the BIM4LCA office has 30 area spaces rvt-rs did not write. A placed Area (RE-21's instance words: no container at +0x32, the instance kind at +0x42) is now an IfcSpace .SPACE. under Revit's GlobalId, named by its RE-117 number and name, in the storey of the one Level its record names. On the office the probe measured number, name and storey 30 of 30 against Revit's export, and the placement word keeps out the permit file's two Areas Revit does not export. No body: the Area's boundary is not decoded. Revit 2024 only.
…e room scorer compares storeys (#763) Revit's export gives each of the office's 30 area spaces a Pset_SpaceCommon.Reference of its name and number, as it does a room's, which space_common_property_set now writes for an Area too. A space has no Tag, so no scorer compared a space's storey; room_names_vs_ifc now compares the storey each space pairing by GlobalId is aggregated in.
… an element record is (#763) (RE-40)
…ts storey (#763) The storey of a record element is bound from the LevelElementId property its record set carries (apply_record_level_reference_storeys); an Area's set had none, so the 30 office area spaces were in no storey where Revit's are in their Levels' (room_names_vs_ifc's new storey count: 30 different).
…eas (#763) Measure run 39182294745 against main: on the BIM4LCA office, as built and at building permit, rvt-rs writes 264 of Revit's 308 IfcSpace (was 234), all with Revit's GlobalId and storey, 221 with Revit's number and name; the 44 left are family instances. The six reference models are byte-identical; of 64 hashed exports in the samples run 39182297020 only two 2024 samples change, by their Areas.
…e report (#763) The report's measurements came from probe_area_records and area_spaces_vs_ifc on a research branch. They now land as examples/probe_re191_area_records.rs, with a FACT header and named structs for its record and data-object copies, and tools/re/area_spaces_vs_ifc.py, so the report's Reproduce section runs from main.
DrunkOnJava
force-pushed
the
feat/763-area-spaces
branch
from
October 19, 2026 01:27
9ab0a90 to
f17ad7c
Compare
…e extra-value count as unchanged (#763)
This was referenced Oct 19, 2026
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
Revit 2024 Areas now export as
IfcSpace .SPACE.under Revit's GlobalId. Each is named by its number and name, sits in its Level's storey and has its ownIfcSpaceTypeandPset_SpaceCommon.Reference, as Revit's export writes it. The space has no body, because the Area's boundary is not decoded. Report: RE-191. Refs #763; this is its 30 Areas. Its 44 family instances remain.Motivation
Revit's export of the BIM4LCA office has 308
IfcSpace: 234 rooms, 30 Areas and 44 family instances. rvt-rs wrote only the rooms. An Area's partition chain record carriesOST_Areasat+0x12but no bounding-box marker, so the element-record scan, which finds records by that marker, never read one.Changes
src/partition_area_records.rs(new) reads each declared Area's chain record, in its latest partition's copy (RE-145). It keeps an Area with:+0x32);+0x42);The Level is the one recovered Level id the record names. The number and name are RE-117's entries. The latest copy goes through 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's accumulator,
LatestCopy. Revit 2024 only.src/partition_schema_mvp.rs:PartitionSchemaMvp::areas, filled after the rooms.src/ifc/export_content.rs: for an Area, a record property set with:IfcSpaceTypeof its own;LevelElementId, soapply_record_level_reference_storeysaggregates it in its storey;Pset_SpaceCommon.Reference.src/ifc/category_map.rs:Areamaps toIfcSpace .SPACE., as Revit writes all 30.tools/re/room_names_vs_ifc.pyalso compares each paired space's storey. A space has noTag, so no scorer reached it before.examples/probe_re191_area_records.rsandtools/re/area_spaces_vs_ifc.py: the probe and its scorer, measured asprobe_area_recordson the research branchre/763-area-records, and under the probe's own name in run 39184524243 with the same counts.reports/element-framing/RE-191-areas.md, CHANGELOG, README,docs/status.md,docs/supported-profile.md, and a newelement-record-areasentry indocs/support-matrix.json(experimental).Testing
Research, on the office files (the probe and scorer this PR adds, run from
re/763-area-records):probe_area_records: as built, 30 Areas, all 30 in Revit's export, number, name and storey equal on 30 of 30. At building permit, the 30 placed Areas are Revit's 30, and the 2 that are not placed (0xffff8020) are not in its export.area_spaces_vs_ifc: what Revit writes on those 30 spaces.Measure A/B against
main, run 39182294745. Both office files give the same counts:IfcSpaceof Revit's 308Pset_SpaceCommon.ReferenceequalThe six reference models are byte-identical. The Areas add no property value Revit does not write: the values rvt-rs writes and Revit's export lacks stay at 12,640 as built and 12,638 at permit, as on
main.After rebasing onto
mainat 0267a24 (with fix(elements): a family's or type's name comes from its latest copy, so its elements keep their type (#807) (RE-145) #809), runs 39184656764 (office and reference models) and 39184658338 (samples) give the same counts.Samples: run 39182297020 hashes each export. Of 64, two change: 2024
rac_advanced(IfcSpace91 → 116) and 2024rst_basic(0 → 1). Neither has a Revit export to compare with. Revit's exporter collects Areas with the other spatial elements, through the same design-option filter, and skips one with no location (revit-ifcIFC_v24.3.40, CLEANROOM.md source 5), so writing every placed Area follows its default.cargo fmtis clean. No unit tests, by the repository's rule.Audit-honesty checklist
IsExternal,Pset_SpaceHeaterTypeCommon.ReferenceandHeightnot written (RE-191 §6)examples/probe_re191_area_records.rsLegal and contribution hygiene
Contributor declaration (CLEANROOM.md). The change rests on:
revit-ifc(source 5): which spatial elements it collects, and its skip of an element with no location.No revit-ifc code is copied or translated.
Breaking changes
None.
PartitionSchemaMvpgains a publicareasfield, and the struct is built withDefault.