Repository navigation
feat(ifc): a family instance's port no duct or pipe joins is placed at its connector, through the instance's transform (#869) - #943
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
October 24, 2026 17:51
This was referenced Oct 24, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Oct 24, 2026
## 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.
11 of 12 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Oct 24, 2026
…t their connectors, measured on the BIM4LCA office (#869) (#952) ## 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. - [x] Verified end to end on real Revit files. Measure [40142301111](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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. - [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 (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`). - [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-87's transform and RE-215's original symbol, 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.
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
Each family-instance port that no duct or pipe joins is now placed at its connector. The point and axis come from the connector's entry in the symbol that draws the instance, carried through the instance's transform. On Revit 2025, all 100 such ports on the RE1 MEP models are within 0.01 ft of Revit's export, each with Revit's Z axis: 53 of 53 on Electrical, 29 of 29 on Mechanical and 18 of 18 on Plumbing. None had a placement before. Part of #869.
Motivation
#869: Revit's export places every
IfcDistributionPortat its connector. rvt-rs placed a pipe's ports at its ends (#847), and from #922 a port joined to a placed duct or pipe port at that port's point, but every other family-instance port had no placement at all.A
FamilySymbol'sm_arrConnectorDataentries hold each connector'sm_trf, which RE-212's probe printed:m_oris the connector's point in the symbol's coordinates;m_3x3is its Z axis.The axes and origin of RE-87's instance transform carry both into model space.
The symbol must be the one that draws the instance, its
InstanceInfo.m_symbolId(RE-215), not its type. With the type's symbol, the first run (Measure 40116288661) placed 9 of Plumbing's 18 and 2 of Mechanical's 29 ports elsewhere:They are on fittings sized per instance, whose symbols are their own.
Changes
src/native_connectors.rs:InstancePortgainsframe: Option<ConnectorFrame>, the connector's point and Z axis in the symbol that draws the instance;connector_portsreads everyFamilySymbol's connector frames and each instance'sInstanceInfo.m_symbolIdin the same pass;InstancePortandConnectorPortsdropEq, since they now holdf64s. They are research types, outside the stable API.src/ifc/mod.rs:attach_family_instance_portsgives each new port that point and axis through the instance's transform (scan_instance_transforms).PORT_PLACEMENT_REVIT_VERSIONS(2025, the release measured).tools/re/port_places_vs_ifc.pyalso scores rvt-rs's placement of Revit's ports on elements other than segments that no segment's port joins.docs/support-matrix.json:changelog.d/added/unjoined-ports.md(Changelog fragments: every landing puts the other open PRs' changelog entries in conflict with main #938).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: CI runs it. Measure built the head with--profile ci, and rustfmt and the let-chain scan pass.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
Drshelden/IFC-ECS) with Revit's own IFC exports, fetched by Measure.port_places_vs_ifc:If this touches the IFC exporter: the witness verdicts replay. Core Interior's export is unchanged, and so are its observations.
Audit-honesty checklist
Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)Formats/Latestschema (RE-212's probe), and checked against Revit's IFC exports. No Autodesk SDK source, disassembly, leaked documents or NDA material was used.Breaking changes
None in the stable API:
research::native_connectorsis behindunstable-research.