Skip to content

feat(ifc): a Revit 2024 family instance's unjoined ports are placed at their connectors, measured on the BIM4LCA office (#869) - #952

Merged
DrunkOnJava merged 4 commits into
mainfrom
re/869-ports-2024
Oct 24, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
re/869-ports-2024

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

A Revit 2024 family instance's ports that no duct or pipe joins are now placed at their connectors, through the instance's transform, as #943 does on Revit 2025. On the BIM4LCA office, a Revit 2024 project with Revit's IFC4 export, all 43 such ports are within 0.01 ft of Revit's, each with Revit's axis, where none was placed before. Part of #869.

Motivation

#943 limited the placement to Revit 2025 (PORT_PLACEMENT_REVIT_VERSIONS), the RE1 models' release, and #869 was retitled to say no other release had an MEP oracle. That was wrong: the office is Revit 2024 and Revit's export of it holds 67 ports. port_places_vs_ifc could not see that, because it compared world coordinates. Revit writes the office's IfcSite at its shared coordinates and rvt-rs at its internal ones, so every port read as far from rvt-rs's.

Changes

  • src/ifc/mod.rs: PORT_PLACEMENT_REVIT_VERSIONS is [2024, 2025], with the office's measurement in its doc.
  • tools/re/port_places_vs_ifc.py: compares each file in its own site frame (site_local). With that, the office's 24 pipe ports read correctly as at their pipes' ends: index 0 at the second end, index 1 at the first, all axes outward. RE1's scores do not change.
  • docs/support-matrix.json, the MEP connections entry: the 2024 measurement.
  • changelog.d/added/ports-2024.md.

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: CI.
  • Verified end to end on real Revit files. Measure 40142301111, this branch against main (e622754), default models plus -f nordic=true -f r2025=true:
    • BIM4LCA office as built and at building permit (CC BY-SA 4.0, fetched by Measure): ports no segment's port joins, 0 placed before, 43 of 43 within 0.01 ft of Revit's now, each with Revit's Z axis;
    • every other model's IFC is byte-identical (Core Interior, Einhoven, the four RE1 models, the 23 R2025 models), and every model's diagnostics are the same.
  • Witness: Core Interior's export is unchanged.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • A user-visible change has its entry as a fragment under changelog.d/
  • Resolved limitation updated (the support matrix)
  • N/A: no new limitation. The office's 24 pipe ports stay unplaced, because pipe axes are read on 2025 only (PIPE_AXIS_SUPPORTED_REVIT_VERSIONS).
  • 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
  • N/A: no new format finding (RE-87's transform and RE-215's original symbol, measured on another release)

Legal and contribution hygiene

  • Apache-2.0
  • No Autodesk proprietary content
  • No fixtures

Breaking changes

None.

Screenshots or output samples

N/A.

…site frame, as Revit writes the office's site at shared coordinates (#869)
…h its transform too, to measure on the BIM4LCA office (#869)
…t their connectors, measured on the BIM4LCA office (#869)
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 24, 2026 23:32
@DrunkOnJava
DrunkOnJava merged commit c8691bc into main Oct 24, 2026
31 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/869-ports-2024 branch October 24, 2026 23:36
DrunkOnJava added a commit that referenced this pull request Oct 25, 2026
…at its ends (#869) (#954)

## Summary

A Revit 2024 pipe is now drawn as its cylinder, with its ports at its
ends, as RE-131 does on Revit 2025. On the BIM4LCA office, a Revit 2024
project with Revit's IFC4 export, all 12 pipes on each of its two files
are Revit's cylinder, with its radius, axis ends and length to 0.00001
ft, where they were boxes, and their 24 ports sit at their ends within
0.01 ft with Revit's axis. Part of #869.

## Motivation

#952 placed 2024 family instances' ports and found the office's other 24
ports unplaced, because pipe axes were read on 2025 only
(`PIPE_AXIS_SUPPORTED_REVIT_VERSIONS`). The connector-entry layout is
the same on 2024.

## Changes

- `src/partition_pipe_axes.rs`: `PIPE_AXIS_SUPPORTED_REVIT_VERSIONS` is
`[2024, 2025]`, with the office's measurement in its doc.
- `src/ifc/export_content.rs`: `pipe_invert_height` needs the pipe's
inner diameter before either branch. Diameters are read on 2025 only
(RE-157), and without this a vertical 2024 pipe wrote an
`InvertElevation` from its axis alone that Revit's export does not give.
A 2024 pipe now writes none, as before this change.
- `tools/re/pipe_bodies_vs_ifc.py`: compares each file in its own site
frame, since Revit writes the office's site at its shared coordinates;
reads the radius of a profile Revit writes as four arcs (an
`IfcIndexedPolyCurve` of `IfcArcIndex`, the office's) or as a closed
polyline; says which profiles Revit wrote and names the worst radius.
RE1's scores do not change.
- `docs/support-matrix.json` (pipe cylinders), `README.md` (the pipes
row, and the ports line, which still said Revit 2025 after #952),
`ROADMAP.md`, `docs/compatibility.md`.
- `changelog.d/added/pipes-2024.md`.

## 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`: CI.
- [x] Verified end to end on real Revit files. Measure
[40146906605](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40146906605),
this branch against `main` (c8691bc), default models plus `-f
nordic=true`:
- BIM4LCA office as built and at building permit (CC BY-SA 4.0,
`research/bim4lca-measure.tsv`, fetched by Measure):
`pipe_bodies_vs_ifc` circle profile, radius, axis ends and length 12 of
12 on each (no circle profile before); `port_places_vs_ifc` pipe ports
within 0.01 ft of Revit's with Revit's Z axis 24 of 24 (none placed
before);
- `psets_vs_ifc` is unchanged on both (no `InvertElevation` on a 2024
pipe, as on `main`);
- every other model's IFC is byte-identical (Core Interior, Einhoven,
the four RE1 models), and their scorer outputs are the same.
- [x] Witness: Core Interior's export is unchanged.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] A user-visible change has its entry as a fragment under
`changelog.d/`
- [x] Resolved limitation updated (support matrix, README, ROADMAP,
compatibility)
- [x] New limitation documented: a 2024 pipe has no `InvertElevation`
(its inner diameter is not read), in the support matrix and in
`pipe_invert_height`'s doc
- [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: no new format finding (RE-131's connector entries, measured on
another release)

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No fixtures

## Breaking changes

None.

## Screenshots or output samples

N/A.

## Related issues

Refs #869
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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