Skip to content

fix(ifc): a wall sweep in a Revit 2024 file stays a proxy whatever its Export to IFC As says (#792) (RE-192) - #812

Merged
DrunkOnJava merged 2 commits into
mainfrom
fix/792-wall-sweep-export-as
Oct 19, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
fix/792-wall-sweep-export-as

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

A wall sweep in a Revit 2024 file now keeps its category's mapping, IfcBuildingElementProxy .NOTDEFINED., whatever its "Export to IFC As" says, because Revit's export of such a file does not act on the value either. The same exception RE-188 makes for 2024 curtain walls. Report: RE-192. Refs #792.

Motivation

On both BIM4LCA office files 9 wall sweeps each carry their own "Export to IFC As" of IfcCovering, with predefined type ROOFING. Revit's export writes all 9 as IfcBuildingElementProxy; rvt-rs followed the value and wrote coverings. These are the 9 elements #792 lists as IfcBuildingElementProxy -> IfcCovering.

Changes

  • src/ifc/category_map.rs: export_override_applies is false for a WallSweep in a 2024 file, as for a curtain wall; its documentation says this is measured on one project and not explained by the exporter's source.
  • reports/element-framing/RE-192-wall-sweep-export-as.md: the finding, with where the value sits, what revit-ifc's wall sweep path does, and the A/B.
  • CHANGELOG (Fixed), docs/status.md, docs/supported-profile.md, and the ifc-export-overrides notes in docs/support-matrix.json.

Testing

  • Where the value sits: run 39185300259 (probe_re45_ifc_export_parameters, export_parameters_vs_ifc). For each of the 9 sweeps, both owner rules name the sweep itself.
  • Measure A/B against main (ccc7e45):
    • Office files, reference and R2025 models, run 39187692379. Revit's 12 IfcBuildingElementProxy are written as proxies on 12 of 12 (was 3) on both files, and none as IfcCovering (was 9). Property values equal to, different from and missing from Revit's are unchanged on both files. Only the two office exports change.
    • Samples, run 39187694272: all 64 hashed exports identical.
  • Not changed: the 9 sweeps stay untyped, where Revit types them by an IfcBuildingElementProxyType.

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
  • New limitation documented: the mechanism is not established, only the measurement; other releases keep following the value (RE-192)
  • Reverse-engineering finding: dated report RE-192, measured with the existing RE-45 probe

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

Contributor declaration (CLEANROOM.md). The change rests on:

  • byte observations of the BIM4LCA office's Revit files, compared with Revit's own IFC export of them (accepted source 1);
  • reading Autodesk's open-source exporter revit-ifc (source 5): its wall sweep export path.

No revit-ifc code is copied or translated.

Breaking changes

None.

@DrunkOnJava
DrunkOnJava merged commit 3b49d17 into main Oct 19, 2026
27 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/792-wall-sweep-export-as branch October 19, 2026 02:27
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
…oured (#792) (#813)

## Summary

An element's own "Export to IFC As" of `IfcStair` or `IfcDoor` is now
honoured, as Revit's export honours it. Refs #792: it clears two more of
the groups the issue lists.

## Motivation

On both BIM4LCA office files two generic models carry their own
`IfcStair`, and a curtain panel its own `IfcDoor` with predefined type
`DOOR`. Revit's export writes them as `IfcStair .NOTDEFINED.` and
`IfcDoor .DOOR.`. rvt-rs read both values (RE-45) but did not act on
either, because neither entity was an override target, and wrote a proxy
and a plate.

## Changes

- `src/ifc/category_map.rs`: `IfcStair` (default `NOTDEFINED`) and
`IfcDoor` (default `DOOR`) join `EXPORT_OVERRIDE_TARGETS`. Their
predefined-type enumerators are left out of
`PREDEFINED_TYPE_ENUMERATORS` on purpose: listing them would also apply
every ordinary door's and stair's own predefined type, which is not
measured. An element exported as either through its value takes the
target's default, the one Revit writes on the elements measured.
- CHANGELOG (Fixed), `docs/status.md`, `docs/supported-profile.md`, and
the `ifc-export-overrides` notes in `docs/support-matrix.json`.

## Testing

- **Where the values sit:** run
[39185300259](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39185300259)
(`probe_re45_ifc_export_parameters`, `export_parameters_vs_ifc`). Every
element of Revit's export of either file that carries `IfcStair` (16) or
`IfcDoor` (268) as its own value is that entity there.
- **Measure A/B against `main` at ccc7e45:**
- Office files, reference and R2025 models, run
[39189083110](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39189083110),
on both office files:
    - Revit's `IfcDoor` written as doors: 268 → 269 of 269.
    - Revit's `IfcStair` written as stairs: 14 → 16 of 16.
- Property values: equal +1, missing −1, values Revit does not write −5,
different unchanged.
- The panel door has no `OverallWidth`/`OverallHeight` (`$`), since its
opening is not read (#810).
    - Only the two office exports change.
- Samples, run
[39189085165](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39189085165):
all 64 hashed exports identical.
- The branch was rebased onto #812 afterwards; the only overlap is
CHANGELOG and docs text.

`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
- [x] Limitation documented: an element exported as `IfcStair` or
`IfcDoor` through its value takes the target's default predefined type
- N/A: no new format finding; RE-45's reader, with two more targets

## 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
- [x] No fixtures

## Breaking changes

None.
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 -->
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