Skip to content

fix(ifc)!: drop the Feet suffix from IFC length properties, whose values are in metres - #398

Merged
DrunkOnJava merged 1 commit into
mainfrom
refactor/ifc-length-property-names
Sep 24, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
refactor/ifc-length-property-names

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Ten IFC length properties were named with a "Feet" suffix, but their values were always IfcLengthMeasure / IfcPositiveLengthMeasure in the file's length unit, which is metres. A reader, human or program, would take ThicknessFeet 0.2032 for 0.2 ft, when an 8" wall is 0.2032 m thick. The suffix is gone. The values are unchanged, and the IFC value type still carries the unit, as buildingSMART's own property sets do.

before after
ThicknessFeet Thickness
JoinReachStartFeet / JoinReachEndFeet JoinReachStart / JoinReachEnd
JoinTrimStartFeet / JoinTrimEndFeet JoinTrimStart / JoinTrimEnd
AxisLengthFeet, SectionWidthFeet, SectionDepthFeet AxisLength, SectionWidth, SectionDepth
TypeSectionWidthFeet / TypeSectionDepthFeet TypeSectionWidth / TypeSectionDepth

In the viewer's element panel these rows now read, for example, "Thickness 0.667 ft", since the panel formats lengths in feet from the model.

Breaking changes

Anything that reads these properties by name needs the new names. The CHANGELOG says so under Changed. Entries for released versions keep the old names as history.

Changes

  • src/ifc/export_content.rs: the property names, and the beam-axis lookup that reads one back.
  • CHANGELOG [Unreleased], support-matrix evidence.

Testing

End to end:

  • rvt-ifc on Core Interior: no property name ends in "Feet". 460 Thickness and 360 JoinTrimStart properties.
  • Both Core Interior witness verdicts replay to PASS, and the rvt-rs observations do not change.
  • ifc_schema_arity.py --witness-agreement passes.
  • fmt, clippy -D warnings, rustdoc -D warnings, the workspace suite, the corpus tests under --profile ci, cargo +1.85.0 check and the fuzz workspace check.

Note

Medium Risk
Breaking change for downstream consumers that match property names; exported IFC semantics and values are intentionally unchanged aside from labels.

Overview
Breaking IFC property rename: ten custom length properties drop the misleading Feet suffix because values are already IfcLengthMeasure in the file's length unit (metres), not imperial feet. Numeric values and PropertyValue::LengthFeet serialization are unchanged; only the IfcPropertySingleValue names change (e.g. ThicknessFeet → Thickness, JoinReachStartFeet / JoinReachEndFeet → JoinReachStart / JoinReachEnd, beam AxisLength / SectionWidth / SectionDepth, column type TypeSectionWidth / TypeSectionDepth).

src/ifc/export_content.rs is the sole code change: emitted property names and one beam-axis unit test assertion. CHANGELOG [Unreleased] documents the break; support-matrix evidence strings use the new names. Anything that reads these properties by string must adopt the new names.

Reviewed by Cursor Bugbot for commit 1c473cc. Configure here.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 24, 2026 23:09
@cursor

cursor Bot commented Sep 24, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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_b68d59f0-af46-4963-9dca-1c9197185926)

@DrunkOnJava
DrunkOnJava merged commit 9758dca into main Sep 24, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the refactor/ifc-length-property-names branch September 24, 2026 23:12
DrunkOnJava added a commit that referenced this pull request Sep 27, 2026
## Summary

Prepare v0.3.0 (#405). **Merging this PR is not the release**, and
nothing is published by it: publication is the draft v0.3.0 GitHub
Release, which creates the tag and runs `publish.yml`. Draft until
Griffin gives the go-ahead to release. Merging it redeploys the viewer,
which would then show 0.3.0.

## Changes

- Versions 0.2.0 to 0.3.0: `rvt`, `rvt-py` and its pin, the
`stream_evidence` pin, both lockfiles (only the two version lines
change), `.release-please-manifest.json`.
- The viewer's package version follows the crate (it was 0.1.0), and the
viewer shows it under the drop zone (`rvt-rs 0.3.0`, injected by Vite
from `package.json`), for #405's "the deployed viewer reports the
release version".
- `CHANGELOG.md`: `[Unreleased]` becomes `[0.3.0] — 2026-09-27` (to be
re-dated at publication) with an empty `[Unreleased]`.
- `docs/install.md` and `docs/status.md`: 0.3.0 is prepared, not
published; the channel table still shows what is published (0.2.0).
- The IFC header now carries 0.3.0 (#417), so both Core Interior witness
observations are regenerated.

## Testing

- [x] fmt, clippy `-D warnings`, rustdoc `-D warnings`, `cargo test
--workspace --all-targets --all-features`, corpus `cargo test --profile
ci --no-fail-fast --test '*'` (255 binaries)
- [x] Witness: both artifacts PASS with all three replays matching;
`ifc_schema_arity.py --witness-agreement` passes
- [x] Wheel `rvt-0.3.0-cp38-abi3-macosx_11_0_arm64` builds, installs in
a clean venv, `rvt.__version__` is 0.3.0, and the README's Python
example prints exactly what the README shows; the IFC header reads
`rvt-rs 0.3.0`
- [x] Viewer: `npm run build` bundles `rvt-rs 0.3.0`; 13 browser tests
pass (6 skipped)

Library, CLI, wheel and viewer all report 0.3.0.

## Still to do at publication (#405, #406)

- Re-date the `[0.3.0]` heading, publish the draft release (the notes
are updated to this branch), then verify the archives, the PyPI wheel
and the deployed viewer from the published artifacts.
- crates.io: the dry run packages; the crate step skips until the
repository secret `CARGO_REGISTRY_TOKEN` is set.

## Breaking changes

Generated GlobalIds change once (#400); IFC length properties lost their
"Feet" suffix (#398). Both are in the release notes.

## Related issues

Refs #405, #406.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Mostly version and documentation updates; merging redeploys the viewer
with a visible version label but does not publish binaries or wheels by
itself.
> 
> **Overview**
> Prepares **v0.3.0** without publishing: bumps `rvt`, `rvt-py`,
`stream_evidence` pins, lockfiles, and `.release-please-manifest.json`
from 0.2.0 to **0.3.0**, and moves the accumulated release notes from
`[Unreleased]` into **`[0.3.0]`** in `CHANGELOG.md`.
> 
> The **browser viewer** now tracks the crate version
(`viewer/package.json` was 0.1.0, now 0.3.0) and shows **`rvt-rs
<version>`** under the drop zone (#405), injected at build time via Vite
`define` from `package.json`.
> 
> **Docs** (`install.md`, `status.md`) state that 0.3.0 is prepared on
`main` with a draft GitHub Release and no assets, while published
channels still serve 0.2.0. **Witness** observation JSON files update
`witness_version` to 0.3.0.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
fac30e6. 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