Repository navigation
fix(ifc): Revit 2025's tapered walls are drawn tapered, from the face angles its wall types frame with twelve zero bytes (#358) (RE-213) - #935
Conversation
… angles its wall types frame with twelve zero bytes (DrunkOnJava#358) (RE-213) RE-86 reads a wall type's three face angles after `u32 2`, eight zero bytes, an `f64` 0.7 and a count of 3, and only on Revit 2024: no 2025 file measured then stored that frame. Snowdon Towers saved by Revit 2025 stores it with twelve zero bytes after the `u32 2`, in the same 58 elements' data, with the same angles. So on a 2025 file every tapered wall kept its record box, up to 9.3 ft wider than the wall. `wall_face_angles_frame` gives the frame for the release and `wall_type_face_angles_after` reads the angles after it; `WALL_FACE_ANGLES_SUPPORTED_REVIT_VERSIONS` is now 2024 and 2025. RE-86's rule and body, and RE-89's window cut, apply unchanged. On Snowdon 2025, 19 of the 20 walls Revit tapers are within 0.001 ft of its body across the wall (none within 0.1 ft before); every other 2025 file measured exports the same bytes.
…gles, and its 21 walls with word 2 are drawn tapered Runs only where RVT_PROJECT_CORPUS_DIR holds the 2025 Snowdon Towers architectural sample, which cannot be redistributed; it skips without it and on a copy saved by another release. Without the fix it fails: 0 elements store the face angles, against 58.
…elve zero bytes, with its probe; the wall scorers mesh a wall's Body by name `probe_re213_wall_face_angles_2025` looks for both frames in every element's data. On Snowdon Towers saved by Revit 2025 the 2024 frame occurs in none and the 2025 frame in 58, with RE-86's angles. `tapered_walls_vs_ifc.py` and `wall_bodies_vs_ifc.py` mesh the wall's `Body` representation: Revit 2025's IFC4X3 export lists the `Axis` first, and IfcOpenShell meshes the first representation it is given, so neither scorer could read that export. RE-86's report notes that 2025 is now read.
…denda and the support matrix
|
Thank you. The reader change is a narrow, guarded extension of RE-86's: the release picks the frame, and the uniqueness and angle-range checks still apply. Meshing the Since the Snowdon 2025 copy is local only, I dispatched Measure on this head against main with the R2025 models (run 40114214721). It checks that nothing changes on the 2025 files CI can fetch: the R2025 set and the four RE1 models. I'll arm this once that run shows no export it should not have touched has changed. On numbering: RE-213 is yours. I had used the same number on an unpublished research branch (#810), which I have renumbered. |
|
Measure run 40114214721 on this head against main: every export and every scorer output is identical on the 23 R2025 models, Core Interior, Einhoven and the four RE1 models. So the 2025 frame changes nothing CI can fetch, and the change lands only where your Snowdon 2025 measurement shows it. I've armed it; it lands in the queue's order. |
…e outline the symbol that draws it cuts in its host (#844) (RE-215) (#936) ## Summary On Revit 2024 and 2025 files, each door's and window's `OverallWidth` and `OverallHeight` now come from the outline that the symbol drawing it cuts in its host (RE-215). That symbol's cut loop gives Revit's own export values on every door and window measured with one: Core Interior's 132 doors and 6 windows, RE1 Architecture's 4 doors, and each R2025 model's door and 3 windows. Core Interior's six windows had `$`; they now have Revit's 1500 by 2700 mm. ## Motivation #844: Core Interior's windows are of a type whose stored size is 1010 mm square, while Revit writes 1500 by 2700 mm, so RE-187's type size could not give them a size. revit-ifc sizes a door or window from `ExporterIFCUtils.GetOriginalSymbol(familyInstance)` (CLEANROOM.md source 5), which is not always the instance's type. This PR finds that symbol and its cut in the file: - A `FamilySymbol` record's `m_pCutLoops` points at one `CurveLoop` of `GLine`s in the symbol's XZ plane. - A `FamilyInstance` names its type in `m_masterSymbolId` and the symbol that draws it in its `InstanceInfo.m_symbolId`. - For the windows, that symbol is 19275, the family's per-instance symbol, and its loop is 4.9213 by 8.8583 ft. Refs #844: its other case, RE1's curtain-wall door 445975, has no cut loop and keeps `$`. Refs #810 (the BIM4LCA office is not measured: its host times out) and #227 (the opening's body, next). ## Changes - `src/native_symbol_cuts.rs` (new research module): `instance_cut_loops(rf, instances)` reads, in one native pass, the given instances and every `FamilySymbol`, and returns each instance's `CutLoop`. A loop counts only if it is: - one closed loop of `GLine`s, - with each line's start within 1e-6 ft of the previous line's end, - flat in `y`, - with some width and height. - `src/partition_schema_mvp.rs`: `attach_cut_loop_sizes` gives doors and windows on 2024 and 2025 (`CUT_LOOP_REVIT_VERSIONS`) the loop's X and Z extents (`CUT_LOOP_SIZE_FIELDS`). It skips doors that are an opening alone (RE-84). - `src/ifc/export_content.rs`: `CutWidth` / `CutHeight` (`CUT_LOOP_SIZE_PROPERTIES`) in the element's rvt-rs set. - `src/ifc/step_writer.rs`: `OverallWidth` / `OverallHeight` take the cut loop's size first, then RE-93's opening, then RE-187's type size. - `tests/door_overall_sizes.rs`: Core Interior's six windows are now asserted at Revit's 2700 by 1500 mm, where the test used to assert `$`. - `examples/probe_re215_symbol_cuts.rs` and `tools/re/symbol_cuts_vs_ifc.py`: the probe and scorer. The research branch `re/810-symbol-cuts` calls them RE-213; #935 took that number first. - `reports/element-framing/RE-215-symbol-cut-loops.md`, a dated addendum to `docs/rvt-moat-break-reconnaissance.md`, `docs/status.md`, `docs/supported-profile.md`, `docs/support-matrix.json` (`native-symbol-cut-sizes`, partial, and the RE-93/RE-187 entry's note), `README.md`, `CHANGELOG.md`. - `research/witness/magnetar-2024-core-interior*/observations/rvt-rs.json`, regenerated by Measure: 276 more `IFCPROPERTYSINGLEVALUE` and the new observation hash. Nothing in the verdicts' semantic surface changes. ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [ ] `tools/check-local.sh` passes: CI runs it (no builds on the maintainer's machine). Measure built the head with `--profile ci`. rustfmt and the let-chain scan pass. - [x] Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it - Files: Core Interior (Revit 2024, MIT), RE1 Architecture (Revit 2025, MIT) and puzzbobb's R2025 models (Apache-2.0), each with Revit's own IFC export. Hashes are in the report. - **Probe** (run [40014065012](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40014065012), `-f r2025=true -f probe=probe_re213_symbol_cuts -f probe_scorer=symbol_cuts_vs_ifc` on `re/810-symbol-cuts`): the `InstanceInfo.m_symbolId` loop equals Revit's `OverallWidth` and `OverallHeight` within 0.001 ft on 132 of 132 doors and 6 of 6 windows on Core Interior, 4 of 4 RE1 doors with a loop, and 1 door and 3 windows on each of the R2025 models 12 to 17. - **End to end** (run [40114863653](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40114863653), this branch against main, with the R2025 models): - the IFC changes on Core Interior, RE1 Architecture and R2025 12 to 17 only; - `door_window_sizes_vs_ifc` on Core Interior's `IfcWindow` goes from `equal 0, differ 0, $ 6` to `equal 6, differ 0, $ 0`; - every other scorer output is identical on all 29 models. - [x] If this touches the IFC exporter: the witness verdicts replay or the changed observations are refreshed in this PR. The two rvt-rs observations are refreshed from that run's head output; main's output equals the committed files byte for byte. - [x] Not a performance change. The native pass costs about 1.9 s on Core Interior (the probe's two passes; this is one). ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] If a limitation was resolved, the relevant docs are updated: the support matrix's RE-93/RE-187 note no longer says windows are unsized - [x] If a new limitation was introduced, it is documented in the PR body and in-code. These cases are left out: - 2023, 2026 and 2027; - loops with arcs; - doors that are an opening alone. These are **NOT MEASURED**: - Snowdon Towers (local only), where the loop now comes before RE-93's and RE-94's type sizes; - the BIM4LCA office. - [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] If this is a reverse-engineering finding: a reproducible probe under `examples/` and a dated addendum to `docs/rvt-moat-break-reconnaissance.md` are included ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 (see `CONTRIBUTING.md`) - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`) - Contributor declaration: the finding comes from public byte observations of the corpus files, decoded through the file's own `Formats/Latest` schema. The exporter's rule comes from revit-ifc (LGPL, CLEANROOM.md source 5): `ExporterIFCUtils.GetOriginalSymbol` and `GetDoorWindowDimensionFromSymbol`, read for behaviour and cited, with no code copied. No Autodesk SDK source, disassembly, leaked documents or NDA material was used. - [x] Any new test fixtures use synthetic values: there are none ## Breaking changes None. The new public items (`research::native_symbol_cuts`, `partition_schema_mvp::CUT_LOOP_SIZE_FIELDS`, `CUT_LOOP_REVIT_VERSIONS`, `cut_loop_size_from_fields`, `ifc::export_content::CUT_LOOP_SIZE_PROPERTIES`) are additions. ## Screenshots or output samples No IFC text is quoted, since Measure does not keep the exports. What changes on each of Core Interior's six windows is the `IFCWINDOW`'s `OverallHeight` and `OverallWidth`: `$` before, 2.7 and 1.5 m after. `door_window_sizes_vs_ifc` reads exactly those attributes (run 40114863653, quoted in Testing).
… changelog.d fragment (DrunkOnJava#938)
|
I merged main into this branch again and moved its CHANGELOG.md entry, unchanged, into a fragment under |
…e assembles (#938) (#940) ## Summary Changelog entries become fragments, one file per pull request at `changelog.d/<section>/<name>.md`, and a release assembles them into `CHANGELOG.md` (`tools/release/changelog.py assemble`). CI checks every fragment (`tools/release/changelog.py check`). Closes #938. ## Motivation Every pull request added its entry at the top of the same `[Unreleased]` section, so each landing left every other open pull request in conflict with main on `CHANGELOG.md`. The queue then skipped them as `DIRTY` until someone merged main into each one by hand. On 2026-10-24 that happened after every landing: - #926 landing put #927 and #930 back in conflict; - #936 landing did the same to #886, #887, #927, #930 and #935, all with green CI. The `merge=union` driver that resolves such conflicts is in a maintainer's own git configuration, not this repository, and GitHub's merge never applied it. Nor does union merging keep the blank line between two entries. A fragment is a file of its own, so two pull requests never touch the same lines, and GitHub's update-branch, which the queue uses, merges them cleanly. ## Changes - `tools/release/changelog.py` (stdlib only): - `check` fails on a fragment outside a known section (`added`, `changed`, `fixed`, `removed`, `security`, `research`), an empty one, or one whose first line does not start an item (`- **`); - `assemble` puts each fragment at the top of its section under `[Unreleased]`, making the heading in Keep a Changelog order where it is missing, one blank line apart, in name order, and deletes the fragments. - `changelog.d/README.md`: the format. `changelog.d/changed/changelog-fragments.md`: this PR's own entry. - `.github/workflows/ci.yml`: the `check` step, beside the conflict-marker guard. - `RELEASE.md` step 5 runs `assemble` first. - `CONTRIBUTING.md`, `docs/maintaining.md` and the PR template point at `changelog.d/`. - `CHANGELOG.md`'s preamble says unreleased changes are also in `changelog.d/`. This PR leaves the existing `[Unreleased]` entries where they are. The open pull requests' entries move into fragments in those pull requests, each with one last merge of main. ## Testing I ran the tool on a scratch copy of main's `CHANGELOG.md`: - `check` with three fragments: `changelog.d: 3 fragment(s), each in a section and starting an item`; - `assemble` put two `added` fragments at the top of `### Added`, in name order with a blank line between, and made `### Security` between `### Removed` and `### Research`; it deleted the three fragments and left `README.md`; - `check` on a fragment that does not start an item, and on one in an unknown directory: both reported, exit 1; - on this branch, `check` passes on its one fragment, and `tools/ci/api-doc-ids.py` and the YAML parse pass. ## 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 (see `CONTRIBUTING.md`) - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see `CLEANROOM.md`) ## Breaking changes None for users. Contributors write their entry under `changelog.d/` from now on.
## Summary Prepares v0.7.0 (RELEASE.md steps 4 to 8): the version files, the `[0.7.0]` changelog section assembled from `changelog.d/`, the README's release section, and corrections to the status docs where they still described the state before RE-212 or before the BIM4LCA office was measured. Merging this is not the release; the signed tag on its squash commit is. ## Motivation Griffin's go-ahead (2026-10-24, about 3:00 PM): tag v0.7.0 once #887, #930, #935, #940, #942 and #943 are on main with CI green. All six have landed, the last at b04c0cb (#930). #934 (`--revit-property-sets`, breaking) and #923 (the `ElementId` newtype, breaking) go in the next release. ## Changes - **Version files** (0.6.1 to 0.7.0): `Cargo.toml`, `rvt-py/Cargo.toml` (and its `=0.7.0` pin on `rvt`), `rvt-wasm/Cargo.toml`, the `rvt` pin in `tools/stream_evidence/Cargo.toml`, `viewer/package.json`, `CITATION.cff` (`date-released: 2026-10-24`), `.release-please-manifest.json`, and the workspace crates' entries in `Cargo.lock` and `fuzz/Cargo.lock`. - **`CHANGELOG.md`**: `python3 tools/release/changelog.py assemble` moved the nine fragments in, then `[Unreleased]` became `[0.7.0] — 2026-10-24`, with an introduction, credits to puzzbobb (#870, #886, #887, #935) and n3ur0m4n (#882), and "Upgrading from 0.6": the research readers behind `unstable-research`, the `#[non_exhaustive]` types, the error variants (and Python's `ValueError`), `SimpleDecoder`, the property set builders' `Vec`, the removed `ifc::pset_validate`, the element walk failing closed, and changed exports. Headings in the assembler's order (Added, Changed, Fixed, Removed, Research), one each. `[Unreleased]` is left empty. - **Entries corrected for the release as a whole**: #847's pipe-port entry said In ports' axes were wrong because their flow direction was not read, and that other family-instance ports had no placement; RE-212 and #943 changed both, and it now gives main's counts (Measure 40126110706, base side: 124 of 124 and 62 of 62 with Revit's axis; joined ports 108 and 53 as Revit's, 10 and 6 opposite). The unjoined-ports entry says Revit 2025 in its headline. RE-215's entry adds the office. - **`README.md`**: "Release 0.7.0 and main", what 0.7.0 adds in brief. The 0.6.1 section listed RE-215 under 0.6.0's additions; it shipped in neither. - **`docs/support-matrix.json`**: - `native-symbol-cut-sizes`: the BIM4LCA office's result, and `user_impact` limited to families whose symbol cuts an outline; - `element-record-mep-connections`: still said HVAC and piping directions, names and descriptions are not read and In ports' axes are reversed; it now states RE-212 (direction, `InPort_`/`OutPort_` names, `Flow` descriptions, axes), keeps SystemType and the electrical description as unread, and lists RE-212's probe, scorer, test and report as evidence. - **`docs/status.md`** and **`reports/element-framing/RE-215-symbol-cut-loops.md`**: the office, which §6 called NOT MEASURED, as measured on 2026-10-24 (Measure 40121636312 and 40122363218): 187 of its 269 doors cut an outline and have Revit's sizes; its 269 windows and other 82 doors are drawn by symbols with no cut loop (#810). ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [ ] `tools/check-local.sh` passes: this PR's CI. No code changes; the version string changes the IFC header. - [x] Verified end to end on real Revit files: no behaviour changes; the measurements cited are the runs named above. - [ ] If this touches the IFC exporter: the IFC header carries the version (#417), so both Core Interior `rvt-rs.json` observations and their verdicts are refreshed from this PR's CI run (its `octetproof-core-interior` artifact) in a follow-up commit here, differing only in `witness_version` and the verdict hashes. - N/A: performance. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] The changelog section is assembled from the fragments; `changelog.py check` passes with none left - [x] Resolved limitations updated (RE-212's in the support matrix, the office's NOT MEASURED) - N/A: no new limitation - [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 - N/A: not a reverse-engineering finding ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content - [x] No fixtures ## Breaking changes The release's, listed under "Upgrading from 0.6" in `CHANGELOG.md`. This PR itself changes no API. ## Screenshots or output samples N/A: the IFC changes only in its header's version.
|
This shipped in v0.7.0, released today (2026-10-24) on crates.io, PyPI, the release archives and the container image, and it is credited in the release notes. Thank you. |
Summary
On Revit 2025 files, tapered walls are now drawn tapered, as they already are on 2024 (RE-86). Revit 2025 stores a wall type's face angles behind the same frame with four more zero bytes, so rvt-rs never found them. Every 2025 tapered wall fell back to its record box, up to 9.3 ft wider than the wall. On Snowdon Towers saved by Revit 2025, 19 of the 20 walls Revit tapers are now within 0.001 ft of Revit's body across the wall (RE-213).
Motivation
#358. RE-86 drew tapered walls on Revit 2024 only, because no 2025 file it measured stored the face-angle frame. Snowdon Towers saved by Revit 2025 does store it, with twelve zero bytes after the
u32 2instead of eight:The 2025 file stores that frame in the same 58 elements' data RE-86 counted on 2024, with the same angles: [0, 10 degrees, 0] on the three "Solar Wall" types and 703553, and [0, 0, 0] on the other 54. The walls' orientation words were already read on 2025: 21 walls carry word 2, as on 2024. Only the frame was missing.
The Solar Walls are Snowdon's balcony and parapet walls. Drawn as their record boxes, they filled each balcony bay with a solid block, and RE-89's window cut never ran on them.
Changes
src/partition_compound_structure.rs:WALL_FACE_ANGLES_FRAME_2025is the 2025 frame.wall_face_angles_frame(revit_version)picks the frame for the release, andwall_type_face_angles_after(data, frame)reads the angles after it.wall_type_face_angleskeeps its signature and reads the 2024 frame.scan_wall_type_face_anglesuses the release's frame.WALL_FACE_ANGLES_SUPPORTED_REVIT_VERSIONSis[2024, 2025].tests/tapered_walls_2025.rs, registered intests/integration/main.rs:BodySourcepartition_wall_tapered_section.RVT_PROJECT_CORPUS_DIRholds that file (Autodesk's sample is not redistributable, as intests/elem_table_frame.rs), and skips on a copy saved by another release.examples/probe_re213_wall_face_angles_2025.rsprints each element whose data holds either frame, with the frame, its offset past the element's header and the angles.reports/element-framing/RE-213-tapered-walls-2025.mdis the report.RE-86-tapered-walls.mdgets a dated note that 2025 is now read.tools/re/tapered_walls_vs_ifc.pyandtools/re/wall_bodies_vs_ifc.pynow mesh a wall'sBodyrepresentation by name. Revit 2025's IFC4X3 export lists theAxisfirst, and IfcOpenShell meshes the first representation it is given, so neither scorer could read that export.CHANGELOG.md(Fixed),docs/status.md, a dated addendum todocs/rvt-moat-break-reconnaissance.md, and the wall-body entry ofdocs/support-matrix.json.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
tools/check-local.shpasses (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)tools/check-local.sh --corpuspasses with CI's project corpus and the Autodesk family samples: fmt, clippy, theunnameable_typescheck, rustdoc, build, doctests, the user examples, andverify-real-files.sh250 of 250. The new test skips there, as that corpus has no 2025 Snowdon file; it is run on its own below.cargo +1.87 check --profile ci --all-targets(MSRV) andRUSTFLAGS="-D warnings -D unnameable_types" cargo check --lib --binspass.Files:
8ac90a85…d334).18df1f11…f466).Commands:
cargo run --profile ci --example probe_re213_wall_face_angles_2025 -- MODEL.rvt cargo run --profile ci --example probe_re86_tapered_walls -- MODEL.rvt > walls.jsonl ./target/ci/rvt-ifc MODEL.rvt -o model.ifc python3 tools/re/tapered_walls_vs_ifc.py walls.jsonl model.ifc REVIT_EXPORT.ifc ./target/ci/rvt-gltf MODEL.rvt -o model.glb python3 tools/re/wall_bodies_vs_ifc.py model.glb REVIT_EXPORT.ifc --json walls.jsonThe probe: the 2024 frame occurs in 0 elements' data and the 2025 frame in 58, once each, 516 to 997 bytes past the element's header.
The 20 walls Revit tapers under word 2, measured with
tapered_walls_vs_ifc.py:That is RE-86's 2024 result: 19, 20 and 0.052 ft across, and 8, 20 and 0.906 ft along.
Every wall in the GLB, measured with
wall_bodies_vs_ifc.py:Openings: the 20 windows in Solar Walls take RE-89's cut, the host type's thickness deep: 2.039 ft in the Multi-Level walls and 1.794 ft in the L5 walls, where main cut them 2.02 to 2.94 ft deep. No other opening changes.
The test:
RVT_PROJECT_CORPUS_DIR=<dir with the 2025 file> cargo test --release --test integration tapered_walls_2025passes. With thesrc/change reverted it fails: 0 elements store the face angles, against 58.Every other file is byte-identical to main, apart from the
FILE_NAMEandIFCOWNERHISTORYtimestamps. That is 77 exports:Time:
rvt-ifcon the 2025 Snowdon Architectural takes 21.5 s, against 21.4 s on main (release build, median of three runs).rvt-ifc --observationon 2024 Core Interior gives files byte-identical to the committedresearch/witness/magnetar-2024-core-interior/observations/rvt-rs.jsonand…-slim/observations/rvt-rs.json. Core Interior's IFC is byte-identical too.tools/bench.shand attached the before / afterAudit-honesty checklist
docs/support-matrix.jsonnames 2025.examples/and a dated addendum todocs/rvt-moat-break-reconnaissance.mdare includedexamples/probe_re213_wall_face_angles_2025.rs; addendum "RE-213 Revit 2025 frames a wall type's face angles with twelve zero bytes (2026-10-24)".Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)testuser,111111,FY-20XX, etc.) and contain no real-world PIIRVT_PROJECT_CORPUS_DIR.Breaking changes
None.
rvt::research::partition_compound_structuregainsWALL_FACE_ANGLES_FRAME_2025,wall_face_angles_frameandwall_type_face_angles_after.WALL_FACE_ANGLES_SUPPORTED_REVIT_VERSIONSgains 2025. Nothing in the stable API changes.Screenshots or output samples
Wall 1054635 (Solar Wall (Multi-Level)), a balcony wall on Snowdon Towers 2025:
The probe on Snowdon Towers 2025 (the 4 non-zero lines of 58):
Related issues
Refs #358 (wall bodies), #227 (openings: RE-89's cut now reaches the 2025 tapered walls). Follows RE-86 and RE-89.