Skip to content

feat(ifc): Revit 2015 to 2023 elements have their Phase Created (#1190) (RE-368) - #1521

Merged
DrunkOnJava merged 1 commit into
DrunkOnJava:mainfrom
puzzbobb:feat-1190-2015-2023-phase-created-re368
Nov 8, 2026
Merged

DrunkOnJava merged 1 commit into
DrunkOnJava:mainfrom
puzzbobb:feat-1190-2015-2023-phase-created-re368

Conversation

@puzzbobb

@puzzbobb puzzbobb commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Revit 2015 to 2023 elements now have Phasing.Phase Created, the phase their own m_createdPhaseId names. It's an eighth slice of #1190, on main, not stacked on the other slices. It's measured against the same Autodesk samples saved by a later release, not against a Revit export.

Motivation

On 2015 to 2023 no element gets a Phasing set. Against each sample's 2024 save it's the largest property gap left after the curtain slices, on nearly every class: 5,566 elements on rac_advanced 2023, 6,642 on rme_advanced 2019. 2024's rule reads the one phase an element's reference list names, through a phase-name frame measured on 2024 only, and the 2015 to 2023 branch doesn't run it.

Changes

  • src/research/partition_schema_mvp/parameters.rs: attach_phases_created_32. It names each element's m_createdPhaseId by the phase's m_name, both read by native_phases::compute_phase_filter on 2015 to 2027 since RE-281, the same data the export phase filter uses on 2016 to 2023 (RE-315). An unset field, a phase not in the project's order, or copies that disagree give none. Rooms are left out, as on 2024 (their field is unset, RE-326).
  • src/research/partition_schema_mvp/fields.rs: PHASE_CREATED_32BIT_REVIT_VERSIONS, 2015 to 2023.
  • src/research/partition_schema_mvp.rs: the 2015 to 2023 branch calls it.
  • probes/examples/probe_re368_phase_created.rs, reports/element-framing/RE-368-2015-2023-phase-created.md, an addendum to docs/format-reconnaissance.md, docs/status.md, docs/evidence.md, docs/supported-profile.md, changelog.d/added/1190-2015-2023-phase-created.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 passes (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)
    • tools/check-local.sh --corpus on the local corpus: every step passes, including the 301 real-file tests and the MCP server's 15 end-to-end tests, with CLI parity required. cargo +1.87 check --profile ci --all-targets (MSRV) is clean.
  • 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
    • Not against Revit's own export. None of the Revit exports of 2015 to 2023 files I have writes Revit's parameter-group sets (BIMcollab's and ALD26 Before's are IFC2X3). Measured against the same Autodesk samples saved by a later release, which can't catch an error that save shares. The 2024 rule they're held to was Revit's on 38,555 of 38,555 elements (feat(ifc): Category, family/type and Phase Created in Revit's Other, Identity Data and Phasing sets #755). The files are the pinned samples in research/autodesk-sample-projects.tsv (fetched, never stored).
    • By probe_re368_phase_created, each element's phase against the 2024 save's (2019's for rst_advanced), on the ElementIds both give a phase: 84,950 of 84,950 across 31 saves, none different. rac_advanced 5,499 on 2015 to 2020 and 5,568 on 2021 to 2023; rac_basic 451 on each; rst_basic 453 on 2016 to 2018 and 454 on 2019 to 2023; rme_advanced 6,630 and 6,648 on 2015 and 2019; rme_basic 6,688 and 6,693; rst_advanced 2015 905. 2015's rst_basic is another model (RE-181) and is left out.
    • What the samples can't show. Each sample puts all its elements in one phase. It isn't always the last (rac_basic's are in Working Drawings, the second of three), so the samples show the field is read and isn't the export phase, but not that it tells two phases apart. BIMcollab's 2015 example has two in use, 241 elements in Nieuw and 4 in Renvooi, all 4 demolished before Nieuw. That's consistent, but its IFC2X3 export has no Phasing set to score.
    • Against main, across the 33 saves of 2015 to 2023: each element the probe gives a phase and the export writes gains Phasing.Phase Created. On six of the changed files every product keeps its class, Tag, name, storey and every other property set; the only new entities are one IfcPropertySet, IfcPropertySingleValue and IfcRelDefinesByProperties per element; the diagnostics differ in total_entities alone.
    • Byte identity: of 206 local project files of 2008 to 2027, 170 export IFC and diagnostics byte for byte as main does (SOURCE_DATE_EPOCH=1700000000). The 36 that change are 2017 to 2023 files. No file of 2024 or later, or before 2015, changes.
  • If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR
    • Core Interior (2024) exports byte for byte as before, so its observations are unchanged.
  • Measure 42516796053 on this head against main, with Autodesk's samples, the held-out models, BIMcollab's example, rac_advanced 2015 to 2020, the BIM4LCA office and the Revit 2025 models (maintainer's run): the only scorer output that moves is the count of property and quantity sets the MCP check compares. The semantic diff of the open models changes only Einhoven (Revit 2023), where the 9 sampled elements gain Phasing.Phase Created. The same-project gates pass.
  • If this is a performance change: reran tools/bench.sh and attached the before / after
    • N/A. It reuses the phase filter the 2016 to 2023 export already computes; on 2015 it computes it once.
tools/fetch-autodesk-samples.sh samples 2015 2024
cargo run --profile ci -p rvt-probes --example probe_re368_phase_created -- samples/2023-racbasicsampleproject.rvt > 2023.txt
cargo run --profile ci -p rvt-probes --example probe_re368_phase_created -- samples/2024-racbasicsampleproject.rvt > 2024.txt
diff 2023.txt 2024.txt

Audit-honesty checklist

  • README / docs reflect the current state after this PR — no claims of features that are not actually shipped in this PR
  • A user-visible change has its entry as a fragment under changelog.d/<section>/ (see changelog.d/README.md), not in CHANGELOG.md
  • If a limitation was resolved, the "Known limitations" / "What works today" section in the relevant docs is updated
    • docs/status.md, docs/evidence.md, docs/supported-profile.md.
  • If a new limitation was introduced, it is documented in the PR body and in-code
    • None new. Still not read, RE-368 §6: Phase Demolished, and Constraints.Level and the other Level parameters on these releases.
  • Commit messages describe WHAT changed and WHY, not "fix things" or "updates"
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • If this is a reverse-engineering finding: a reproducible probe under probes/examples/ and a dated addendum to docs/format-reconnaissance.md are included
    • probes/examples/probe_re368_phase_created.rs.

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)
  • Any new test fixtures use synthetic values (testuser, 111111, FY-20XX, etc.) and contain no real-world PII
    • No fixtures.

Breaking changes

None. A new public constant; existing names and types are unchanged.

Screenshots or output samples

rac_basic 2023, a door, before and after:

before  Other: Category, Family, Type, Type Id ...   Identity Data: Type Name
after   ... and Phasing: Phase Created = Working Drawings   (2024 save: Working Drawings)

Related issues

Refs #1190, #879, #755

Notes

A lead for #879, not changed here (RE-368 §5). Three of BIMcollab's 4 Renvooi elements are the air terminals #879 counts as written by rvt-rs and left out by Revit's export (124771, 148100, 221553). All three are demolished before Nieuw, the export phase, so RE-184's rule would leave them out, but the export phase isn't applied on 2015 (EXPORT_FILTER_RELEASES is 2016 to 2023). RE-281 §2 and RE-315 §10 say none of BIMcollab's 8 out-of-phase elements is written. That held when they were measured, before these air terminals were recovered. Applying the export phase on 2015 changes which elements are exported, measured on one file, so I've left it for its own PR, if you want it.

…kOnJava#1190) (RE-368)

The 2015 to 2023 path wrote no Phasing set on any element, so it lacked the
largest property gap against each sample's 2024 save: 5,566 elements on
rac_advanced 2023 alone. 2024's rule reads the phase a reference list names
through a phase-name frame measured on 2024 only.

Every element body carries m_createdPhaseId, and native_phases already reads it,
with the phases' names and order, on 2015 to 2027 (RE-184, RE-281); the export
uses it on 2016 to 2023 to leave out what is not in the export phase (RE-315).
An element's Phase Created is now that phase's name on 2015 to 2023. An unset
field, a phase not in the project's order, or copies that disagree give none.

On Autodesk's samples every element both saves give a phase has the phase of
the same project's 2024 save (2019's for rst_advanced): 84,950 of 84,950 across
31 saves. No Revit export of these releases holding Phase Created is scored.
Nothing else in the export changes.
@DrunkOnJava
DrunkOnJava merged commit d51c6aa into DrunkOnJava:main Nov 8, 2026
38 checks passed
@DrunkOnJava

Copy link
Copy Markdown
Owner

Thanks, @puzzbobb. This landed as d51c6aa and ships in the next release. One correction, which is on me for landing it before a second read came back: rst_advanced 2015's 905 were held to its 2019 save, which the same rule reads, so I'm correcting the headline to 84,045 of 84,045 across 30 saves in #1526, and the changelog and evidence page now say each sample holds one phase. Your report's table was right; only the total needed changing.

DrunkOnJava added a commit that referenced this pull request Nov 8, 2026
… one phase each, and BIMcollab's data is counts only (#1190) (#1526)

## Summary

Corrects RE-368's headline figure, which landed in #1521 slightly
overstated. "84,950 of 84,950 across 31 saves" counted `rst_advanced`
2015's 905 elements, which are held to that project's 2019 save, and the
same rule reads 2019, so those 905 show only that two releases read
alike. The figure held to a 2024 save is 84,045 of 84,045 across 30
saves.

The changelog fragment and `docs/evidence.md` also now say what the
report already said: each of these samples holds its elements in one
phase, so the figure shows the field is read, not that it tells two
phases apart. The report also notes that the byte-identity sentence
covers the 206 local files only, since Measure shows 2015 and 2016
exports moving too.

RE-368 and RE-198 also stop naming BIMcollab's phases and ElementIds, a
model with no licence whose results are counts only: they now give five
phases, 241 and 4 elements, and 3 air terminals. The numbers are
unchanged.

Text only: no code or export changes.

## Testing

- `python3 tools/ci/api-doc-ids.py` and `python3
tools/release/changelog.py check` pass.
- The arithmetic: 84,950 minus 905 is 84,045, and 31 saves less
`rst_advanced` 2015 is 30, against the tables in report section 3.

Refs #1190, #1521
@puzzbobb
puzzbobb deleted the feat-1190-2015-2023-phase-created-re368 branch November 8, 2026 20:36
DrunkOnJava added a commit that referenced this pull request Nov 8, 2026
…Hub App (#1528)

## Summary

`main` requires one approval. Until now it required none, so a pull
request could merge on CI alone, and #1521 landed before its second read
had finished, with a figure that read found overstated.

The maintainer account opens most changes and GitHub refuses an
account's approval of its own pull request, so the second reader is a
GitHub App, `rvt-rs-review` (an automated Claude Code reviewer). It
approves the maintainer's pull requests, and the maintainer approves a
contributor's and the App's. `docs/maintaining.md` records this, that
the approval comes last because a push dismisses it, and that `main` is
measured every three landings.

The live ruleset is updated by hand after this lands, from this file
(`gh api -X PUT repos/DrunkOnJava/rvt-rs/rulesets/15270879 --input
.github/rulesets/main-protection.json`), as the file and the live
ruleset must match (`tools/maintainer/audit.py`).

## Testing

- The ruleset file parses, and only `required_approving_review_count`
changes (0 to 1). `dismiss_stale_reviews_on_push` stays true.
- The App is installed on this repository alone and its token works. Its
first formal approval is the check that it can approve.
- **Not exercised before this lands:** the rule itself, which only takes
effect when the live ruleset is updated afterwards.

Refs #1521
DrunkOnJava added a commit that referenced this pull request Nov 8, 2026
…1190) (RE-369) (#1522)

## Summary

Revit 2015 to 2023 elements now have their `Constraints` Level
parameters (`Level`, `Base Constraint`, `Base Level`, `Top Constraint`,
`Top Level`, `Reference Level`), the Levels their own native record
names. It's a ninth slice of #1190, on `main`, not stacked on the other
slices. It's measured against the same Autodesk samples saved by a later
release, not against a Revit export.

Added in review by the maintainer: a base that names a Level the reader
did not recover, a base that was not read, or copies that disagree stop
the fallbacks, and a beam's or brace's Schedule Level never stands in
for its Reference Level. The figures below were measured before that
narrowing, on head 0c04e3d1; the Measure run on the landing head is
cited under Testing.

## Motivation

On 2015 to 2023 no element gets a `Constraints` set. Against each
sample's 2024 save it's the largest property gap after Phase Created
(#1521): on `rac_advanced` 2023, 3,276 mullions, 1,349 panels, 176
columns, 146 walls and about 400 other elements; on `rst_basic` 2023,
370 beams. 2024's rule reads the association record `d3 02 01 00 00 00`
(RE-172), measured on 2024 only, and the 2015 to 2023 branch doesn't run
it.

## Changes

- `src/research/partition_schema_mvp/levels.rs`: `attach_levels_32`. It
takes each element's Level from its Element base's `m_assocLevelId`
(read on 2015 to 2027 since RE-281), and where that's unset from a field
of its record's class: a wall's `m_upToLevelId` (Top Constraint), a
roof's or stair's `m_baseLevelId`/`m_topLevelId` (`m_bottomId`/`m_topId`
on a sketched `Stairs`), a family instance's `m_scheduleOnlyLevelId`, a
beam's or brace's `FamInstCurveDriver.m_refLevelId`, a duct's or pipe's
`m_idLevelStart`. Two passes: every element's base with no graph built,
then the graphs of walls and of elements whose base names no Level,
projected by class to those fields (`graph_fields`, #1335). A Level is
written only where the branch recovers it (`partition_level_records`)
and every copy of the record names the same one.
- `src/research/partition_schema_mvp/fields.rs`:
`LEVEL_32BIT_REVIT_VERSIONS` (2015 to 2023) and `REFERENCE_LEVEL_FIELD`.
- `src/research/partition_schema_mvp.rs`: the 2015 to 2023 branch calls
it after its storey resolution.
- `src/ifc/export_content.rs`: `level_parameter_property_set` also takes
a beam's or brace's Reference Level from `REFERENCE_LEVEL_FIELD`. The
names by class are RE-172's, unchanged.
- `probes/examples/probe_re369_levels.rs`,
`reports/element-framing/RE-369-2015-2023-level-parameters.md`, an
addendum to `docs/format-reconnaissance.md`, `docs/status.md`,
`docs/evidence.md`, `docs/supported-profile.md`,
`changelog.d/added/1190-2015-2023-level-parameters.md`.

## Testing

Measure run 42519629528 on the landing code `1e6101d5`, main's side
`d51c6aa5`, unfiltered with samples, holdout and racadv: 69 of 118
exports are byte for byte main's and 49 move, all of them Revit 2023 or
earlier (33 samples, 6 `rac_advanced` saves, 8 held-out models, the
spent Vitoria and BIMcollab's example); `same-project gates` passes on
that head. No scorer reads these Level parameters, so this run shows
where exports moved and not that the values are right; RE-369 says so.

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [x] `tools/check-local.sh` passes (fmt, clippy, rustdoc, build,
real-file / CLI / contract checks)
- `tools/check-local.sh --corpus` on the local corpus: every step
passes, including the 301 real-file tests and the MCP server's 15
end-to-end tests. `cargo +1.87 check --all-targets` (MSRV) is clean.
- [ ] 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
- **Not against Revit's own export.** None of the Revit exports of 2015
to 2023 files I have writes Revit's parameter-group sets (BIMcollab's
and `ALD26 Before`'s are IFC2X3). Measured against the same Autodesk
samples saved by a later release, which can't catch an error that save
shares. The 2024 rule they're held to equalled Revit's IFC4 export on
every element tested in seven files (RE-172). The files are the pinned
samples in `research/autodesk-sample-projects.tsv` (fetched, never
stored).
- By `probe_re369_levels`, each element's Level parameters against the
2024 save's, on the (ElementId, kind) pairs both give: **85,121 of
85,121 across 30 saves, none different.** `rac_advanced` 5,640 on 2015
to 2020 and 5,650 on 2021 to 2023; `rac_basic` 485 on each; `rst_basic`
441 on 2016 to 2018 and 442 on 2019 to 2023; `rme_advanced` 6,574 and
6,592 on 2015 and 2019; `rme_basic` 6,631 and 6,636. Of these, 173 to
182 a save are a wall's Top Constraint or a stair's Top Level.
`rst_advanced` has no 2024 save: 2015 against 2019 gives 583 of 583,
both read by this rule. 2015's `rst_basic` is another model (RE-181) and
is left out.
- On what the export writes, by (IFC class, Tag) against the 2024 save's
export: 86,458 property values equal, none different, none only in the
older save's. 336 are only in the 2024 save's: the Reference Level of 23
beams on each `rac_advanced` and 15 on each `rst_basic` whose base and
`m_refLevelId` are both unset (2024 takes it from the reference list,
RE-175), and the Level of one bathtub on each `rac_basic` that names
none in any field read. They're left without a value.
- Against `main`, on the 33 saves of 2015 to 2023: every product keeps
its class, Tag, GlobalId, name, storey and every property set but
`Constraints`; the only new entities are one `IfcPropertySet` and
`IfcRelDefinesByProperties` and one or two `IfcPropertySingleValue` per
element given a Level (5,473 elements on `rac_advanced` 2015 to 2020,
6,449 on `rme_basic` 2019); the diagnostics differ in `total_entities`
alone. The 2024 saves export byte for byte as before.
- Byte identity: of 206 local project files of 2008 to 2027, 172 export
IFC and diagnostics byte for byte as `main` does
(`SOURCE_DATE_EPOCH=1700000000`). The 34 that change are 2017 to 2023
files. No file of 2024 or later, or before 2015, changes. Einhoven
(2023) doesn't change: the branch recovers no Level record there, so
nothing is written.
- [x] If this touches the IFC exporter: the witness verdicts replay (see
CONTRIBUTING.md) or the changed observations are refreshed in this PR
- Core Interior (2024) exports byte for byte as before, so its
observations are unchanged.
- [ ] If this is a performance change: reran `tools/bench.sh` and
attached the before / after
- N/A. It adds 70 to 330 ms on the samples of 2015 to 2023 (the base
pass 8 to 57 ms, the rest the projected graphs, most on the MEP
samples). Nothing is read on other releases.

```
tools/fetch-autodesk-samples.sh samples 2015 2024
cargo run --profile ci -p rvt-probes --example probe_re369_levels -- samples/2023-racbasicsampleproject.rvt > 2023.txt
cargo run --profile ci -p rvt-probes --example probe_re369_levels -- samples/2024-racbasicsampleproject.rvt > 2024.txt
diff 2023.txt 2024.txt
```

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR — no claims
of features that are not actually shipped in this PR
- [x] A user-visible change has its entry as a fragment under
`changelog.d/<section>/` (see `changelog.d/README.md`), not in
`CHANGELOG.md`
- [x] If a limitation was resolved, the "Known limitations" / "What
works today" section in the relevant docs is updated
  - `docs/status.md`, `docs/evidence.md`, `docs/supported-profile.md`.
- [x] If a new limitation was introduced, it is documented in the PR
body and in-code
- None new. Not read, RE-369 §5: beams and braces whose `m_refLevelId`
is unset, and Revit 2008 to 2014.
- [x] Commit messages describe WHAT changed and WHY, not "fix things" or
"updates"
- [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 `probes/examples/` and a dated addendum to
`docs/format-reconnaissance.md` are included
  - `probes/examples/probe_re369_levels.rs`.

## 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`)
- [x] Any new test fixtures use synthetic values (`testuser`, `111111`,
`FY-20XX`, etc.) and contain no real-world PII
  - No fixtures.

## Breaking changes

None. Two new public constants; existing names and types are unchanged.

## Screenshots or output samples

`rac_basic` 2023, a wall and an assembled stair, before and after:

```
before  IfcWall 198749   no Constraints set
after   IfcWall 198749   Constraints: Base Constraint = Level 1, Top Constraint = Up to level: Level 2
before  IfcStair 665557  no Constraints set
after   IfcStair 665557  Constraints: Base Level = Level 1, Top Level = Level 2
2024 save: the same values on both
```

## Related issues

Refs #1190, #1521

## Notes

This and #1521 (Phase Created) both add a clause to the 2023 rows of
`docs/evidence.md` and `docs/supported-profile.md`, a line to
`docs/status.md` and an addendum at the end of
`docs/format-reconnaissance.md`, so whichever merges second has a small
text conflict there. The code doesn't overlap.

---------

Co-authored-by: Griffin Long <[email protected]>
DrunkOnJava added a commit that referenced this pull request Nov 8, 2026
…ecord on Revit 2015 to 2027 (#1190) (RE-370) (#1523)

## Summary

A pipe's own native record (`RbsPipeCurve`) gives it its type, the
cylinder it is drawn as, and its two ports with their places and flow
directions, on every release from 2015 to 2027. On 2015 to 2023 that is
every pipe; on 2026 and 2027, which RE-131's connector entries don't
read, every pipe; on 2024 and 2025 the pipes those entries miss. The
record's line and diameter give Revit's own export on 93 of 93 pipes
(RE1 Plumbing and Mechanical, the BIM4LCA office). It's a tenth slice of
#1190, on `main`, not stacked on the other slices, and closes the pipe
half of #869's "outside 2024 and 2025".

## Motivation

- On 2015 to 2023 a pipe has no type, its record box as its body, no
`Qto_PipeSegmentBaseQuantities` or invert, and unplaced ports: 491 pipes
on `rme_basic` and 488 on `rme_advanced`, the largest gap left on the
MEP samples once Phase Created (#1521) and the Level parameters (#1522)
are read.
- On 2026 and 2027 every pipe is its box with unplaced ports (#869:
RE-131 is measured on 2024 and 2025 only).
- On 2024 and 2025 RE-131's entries miss some pipes: 35 and 36 on the
samples, 49 to 172 on local 2025 files.
- On 2015 to 2022 a pipe's ports have no flow direction, so an `In` port
points out of its pipe.

## Changes

- `src/research/partition_schema_mvp/mep.rs`: `attach_native_pipes`. One
projected native pass (`graph_fields`, #1335) over the pipes still
without a type or body and the file's `RbsPipeType` records. From each
pipe's record: its type (`m_idType`, named by the `RbsPipeType`'s
`SymbolInfo.m_name`, RE-240's rule), its one `GLine` between its end
parameters, half its `m_dOuterDiameter`, which `Connector` is at each
end (`SegmentConnectorPosition.m_paramOnCurve`) and each connector's
calculated direction (`SegmentConnectorCalculation.m_eDirection`,
RE-212's numbering). It writes the fields RE-131 and RE-240 write, so
the family, cylinder, quantities, vertical invert and ports come from
the existing export code. The cylinder must pass RE-131's own box test
(`partition_pipe_axes::pipe_body`), and a value is written only where
every copy of the record agrees. The inner diameter isn't written: a
level pipe's invert stays on 2025, where RE-157 measured it.
- `attach_pipe_axes` calls it on 2026 and 2027 instead of returning, and
on 2024 and 2025 after RE-131's bodies and before the end keys (a pipe
keyed from its record keeps those keys). The 2015 to 2023 branch calls
it after its records are recovered. Because on 2024 to 2027 it runs
before RE-130's and RE-134's byte scans, a pipe's type name there is its
record's.
- `src/research/partition_schema_mvp/fields.rs`:
`NATIVE_PIPE_REVIT_VERSIONS` (2015 to 2027),
`PIPE_FLOW_DIRECTIONS_FIELD`.
- `src/ifc/export_content.rs`: a pipe's port takes its flow direction
from `PIPE_FLOW_DIRECTIONS_FIELD` where the record gave it; on 2023 and
later the connector pass sets the same value afterwards, as before.
- `probes/examples/probe_re370_pipes.rs` (each pipe as the export draws
it; with `--native`, each pipe's record alone),
`tools/re/pipes_vs_ifc.py`,
`reports/element-framing/RE-370-native-pipes.md`, an addendum to
`docs/format-reconnaissance.md`, `docs/status.md`, `docs/evidence.md`,
`docs/supported-profile.md`,
`changelog.d/added/1190-2015-2023-pipes.md`.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [x] `tools/check-local.sh` passes (fmt, clippy, rustdoc, build,
real-file / CLI / contract checks)
- `tools/check-local.sh --corpus` on the local corpus: every step
passes, including the 301 real-file tests and the MCP server's 15
end-to-end tests. `cargo +1.87 check --all-targets` (MSRV) is clean.
- [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
- **Against Revit's own export (2024 and 2025)**, `probe_re370_pipes
--native` and `tools/re/pipes_vs_ifc.py`, each pipe's record alone: RE1
Plumbing 63 of 63 and RE1 Mechanical 6 of 6 with Revit's `Length` (MIT,
`magnetar-io/revit-test-datasets`, IFC2X3, which writes no areas), and
the BIM4LCA office as built and at building permit 12 of 12 each with
Revit's `Length`, `OuterSurfaceArea` and `GrossCrossSectionArea` (local
only). **93 of 93 pipes; every vertical pipe's invert, 47 of 47.**
RE-131 places all 93 already, so those exports don't change; they
measure the record's rule where Revit's answer is known. With RE-131's
entries switched off in a throwaway local build, the record's connectors
place RE1 Plumbing's 124, RE1 Mechanical's 62 and the office's 24 pipe
ports within 0.01 ft of Revit's with Revit's axis, as RE-131's keys do.
- **Not against a Revit export on 2015 to 2023, 2026 or 2027**: none I
have holds a pipe. Held to the same Autodesk MEP samples saved by 2024
(pinned in `research/autodesk-sample-projects.tsv`, fetched, never
stored), which can't catch an error that save shares. Against `main`'s
export of the 2024 save, over the twelve MEP saves of 2015, 2019 and
2024 to 2027: **93,987 pipe values equal, 3 different**, all of pipe
727577, which the 2015 save's own record shows edited (another diameter
and length). Every pipe has the 2024 save's name, type, family and Type
Id, and its `Length` and areas to 0.01 %; each body's world box is the
2024 save's to 1 mm. Two 2015 pipes whose record diameters are 0 keep
their boxes.
- Ports, against the 2024 save by name: on 2015, 2019 and 2025 to 2027
every pipe port (982 on `rme_basic`, 976 on `rme_advanced`) has the 2024
save's point, axis and flow direction, but five on 2015's `rme_basic`
(the zero-diameter and edited pipes). Before, 2019's had no direction
and 475 pointed out of their pipe where 2024's point in, and none of
2027's was placed. On 2027 the fitting ports joined to them are now
placed too (974 and 968), each at the 2024 save's point, axis and
direction.
- Against `main`: 45 of 58 sample saves (Autodesk's 53 of 2015 to 2027
and Snowdon Towers' five of 2024) export byte for byte as before. On the
13 that change (the MEP saves and 2024 Snowdon Plumbing, whose 60 pipes
RE-131 missed) every product but a pipe keeps its class, Tag, GlobalId,
name, storey and every property set; the ports that change are the
pipes' and, on 2024 to 2027, the ports joined to them. Of 206 local
project files of 2008 to 2027, 194 export IFC and diagnostics byte for
byte as `main` does (`SOURCE_DATE_EPOCH=1700000000`), RE1 and the office
among them; the 12 that change all hold pipes, and on each only pipes
and ports change.
- **Against Revit 2018's own export** (the two Vitoria projects, IFC2X3,
counts only, maintainer's Measure
[42518201407](https://github.com/DrunkOnJava/rvt-rs/actions/runs/42518201407)):
`Qto_PipeSegmentBaseQuantities.Length` 149 of 149 and 140 of 140 equal,
none different; `Pset_PipeSegmentTypeCommon.Reference` 149 of 151 and
140 of 142; record-box `IfcPipeSegment` 151 to 2. That export holds no
`Pset_PipeSegmentOccurrence.InvertElevation`, so values Revit doesn't
write go from 18 to 62 and from 20 to 65; an IFC2X3 export is counted
apart and removes no value.
- **One name change on a 2025 file:** on Golden Nugget's building
services 278 pipes' type names change, 272 of one type and 6 of another,
from a wrong name to the type's own. The Type Id is unchanged; the new
name is the type's own `RbsPipeType` record's. No Revit export of that
file is at hand.
- [x] If this touches the IFC exporter: the witness verdicts replay (see
CONTRIBUTING.md) or the changed observations are refreshed in this PR
- Core Interior (2024) has no pipes and exports byte for byte as before,
so its observations are unchanged.
- [ ] If this is a performance change: reran `tools/bench.sh` and
attached the before / after
- N/A. No slower: 4.29 s on `main` and 4.35 s here on `rme_basic` 2019
(within noise), 15.3 s and 14.7 s on `rme_basic` 2027, 30.9 s and 29.7 s
on Golden Nugget's building services, 3.81 s on both for a file with no
pipe.

```
tools/fetch-autodesk-samples.sh samples 2015 2027
cargo run --profile ci -p rvt-probes --example probe_re370_pipes -- samples/2019-rme_basic_sample_project.rvt > 2019.txt
cargo run --profile ci -p rvt-probes --example probe_re370_pipes -- samples/2024-rmebasicsampleproject.rvt > 2024.txt
diff 2019.txt 2024.txt
cargo run --profile ci -p rvt-probes --example probe_re370_pipes -- --native _project_corpus/Revit/RE1-Plumbing.rvt > native.txt
python3 tools/re/pipes_vs_ifc.py native.txt _project_corpus/Revit/RE1-Plumbing.ifc
```

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR — no claims
of features that are not actually shipped in this PR
- [x] A user-visible change has its entry as a fragment under
`changelog.d/<section>/` (see `changelog.d/README.md`), not in
`CHANGELOG.md`
- [x] If a limitation was resolved, the "Known limitations" / "What
works today" section in the relevant docs is updated
- `docs/status.md`, `docs/evidence.md` (the 2024 and 2025, 2026 and 2023
rows), `docs/supported-profile.md`.
- [x] If a new limitation was introduced, it is documented in the PR
body and in-code
- None new. Not read, RE-370 §6: a level pipe's invert outside 2025,
ducts' own line, a port's `SystemType` (#834), and fitting ports on 2015
to 2022, whose joins the connector pass reads on 2023 and later only
(#869).
- [x] Commit messages describe WHAT changed and WHY, not "fix things" or
"updates"
- [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 `probes/examples/` and a dated addendum to
`docs/format-reconnaissance.md` are included
  - `probes/examples/probe_re370_pipes.rs`, `tools/re/pipes_vs_ifc.py`.

## 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`)
- [x] Any new test fixtures use synthetic values (`testuser`, `111111`,
`FY-20XX`, etc.) and contain no real-world PII
  - No fixtures.

## Breaking changes

None. Two new public constants and one new public function
(`pipe_flow_directions_from_fields`); existing names and types are
unchanged.

## Screenshots or output samples

`rme_basic`, pipe 513756, as the export writes it:

```
2019 before  IfcPipeSegment 'Pipe-513756'                  box body, no quantities, ports unplaced
2019 after   IfcPipeSegment 'Pipe Types:Standard:513756'   cylinder, Length 4.738869 m, GrossCrossSectionArea 0.032429 m², OuterSurfaceArea 3.025159 m²
2027 before  IfcPipeSegment 'Pipe Types:Standard:513756'   box body, no quantities, ports unplaced
2027 after   as 2019 after
2024 save    the same values
```

## Related issues

Refs #1190, #869, #96, #1521, #1522

## Notes

This, #1521 and #1522 all add a clause to the 2023 rows of
`docs/evidence.md` and `docs/supported-profile.md`, a line to
`docs/status.md` and an addendum at the end of
`docs/format-reconnaissance.md`, so whichever merges later has a small
text conflict there. The code doesn't overlap.

---------

Co-authored-by: Griffin Long <[email protected]>
DrunkOnJava added a commit that referenced this pull request Nov 8, 2026
…he session that lands one cannot approve it (#1531)

## Summary

`docs/maintaining.md` and ADR-005 said the maintainer approves a
contributor's pull request. The session that lands a pull request posts
as the maintainer account, so that approval would let it land one
without a second read, and that is how #1521 merged before its read
finished: its only approval was the maintainer's. Now the
`rvt-rs-review` App approves the maintainer's and a contributor's, and
the maintainer approves only the App's own. The ruleset can't name who
approves, so the maintainer's landing script refuses a pull request with
no approval by the App on its current head.

## Testing

Docs only. The landing script's check (local, not in this repository)
was run on two heads: it passes one the App approved and refuses one
with no App approval.
@DrunkOnJava DrunkOnJava mentioned this pull request Nov 9, 2026
3 tasks done
DrunkOnJava added a commit that referenced this pull request Nov 9, 2026
## Summary

Release 0.16.0:
- Revit 2015 to 2023 projects: beams along their location lines (#1509,
RE-362), walls joined by their join lists and angled walls along their
lines (#1517, RE-364), `Phase Created` (#1521, RE-368), `Constraints`
Level parameters (#1522, RE-369), pipes with their type, cylinder and
ports (#1523, RE-370), and Revit 2015 files following the export phase
(#1332, RE-372).
- Revit 2026 and 2027 projects: beams, stair runs, tread landings and
sketch outlines (#1426, RE-341), and pipes, ports, door and window cuts
and the 2025 properties (#1454, RE-346). Revit 2025 beams, tread
landings and sketch arcs (#1440, RE-345); shaft cuts on 2024 only.
- Spaces: Areas of Revit 2025 to 2027 (#1428), `rac_advanced`'s Areas
from Revit's plan topology (#1261, #1434), `SpaceKind` on every
`IfcSpace` (#1437), and the room phase fallback (#1359).
- Doors and windows: Revit's placement axes (#1447, RE-347), a door in
no wall at its stored origin (#1494, RE-361), and both flips decoded
(#1357, RE-343).
- Values Revit's export writes: wall-cut openings (#1165, RE-338),
`FireRating` and `Manufacturer` (#1185, RE-354), cut column quantities
(#1203, RE-353), Furniture Systems (#1444, RE-352), and a plumbing
fixture that draws nothing left out (#1496, RE-363).
- Walls: hosts of embedded curtain walls from their saved mesh (#1385,
RE-340), profile-edited ends, bases and cut-outs (#1396, #1410, #1411,
#1473), previous location lines (#1475, RE-360), and floor voids tagged
as Revit tags them (#1408, RE-355).
- The writer: IFC4 EXPRESS rules held (#1430), non-finite numbers
refused (#1559); the diagnostics, elements CSV, viewer panels and MCP
server count and place what the IFC writes (#1327, #1417, #1422, #1424);
export memory restored (#1429).
- The viewer's saved parameters panel (#35, RE-207); the provenance
table's new sources (#1368, #1498); the native readers' speed-ups
(#1335); release tag preflight and attested wheels (#1457, #1466);
measured numbers named by model (#1192); Measure's semantic diff
(#1334).

## Changes

- Version 0.15.0 -> 0.16.0 in:
  - Cargo.toml;
  - rvt-py/Cargo.toml and its `=` pin;
  - rvt-mcp/Cargo.toml and its `=` pin;
  - rvt-wasm/Cargo.toml;
  - tools/stream_evidence/Cargo.toml;
  - viewer/package.json;
  - CITATION.cff (version and date);
  - Cargo.lock and fuzz/Cargo.lock.
- `python3 tools/release/changelog.py assemble`: 56 fragments go into
`[0.16.0]`, with an introduction, a "Not measured" paragraph, credits
and "Upgrading from 0.15".
- README: the latest release and the "Upgrading from" pointer.

## Testing

- **Measure 42555357168**, `main` at 9c66e9b against v0.15.0,
unfiltered with timing: the reference models, the BIM4LCA office, Revit
2025, Autodesk's samples of every release, the held-out models,
`rac_advanced`'s IFC2X3 pairs and BIMcollab, 118 exports (no families).
Every figure in the "Measured against 0.15.0" paragraph is from it:
  - 97 exports move and 21 do not;
- no property value or quantity goes from equal to different or missing
on any model;
  - the IFC4 rules check finds nothing on all 118;
  - the `same-project gates` check passes on 9c66e9b;
- time is 1.015 in total over 68 files, and peak memory 0.54 to 1.29
times 0.15.0's.
- Since 9c66e9b this branch adds only the version strings, the
changelog and the witness and fixture refresh.
- `python3 tools/ci/release_preflight.py check --event workflow_dispatch
--ref-type branch --ref-name checkout --sha HEAD` reads version 0.16.0
in every file. `changelog.py check` finds no fragment left, and
`measured_numbers.py` and `api-doc-ids.py` pass.
- **Witness and fixtures** come from this pull request's CI run
42555924918, on 4dac3e6.
- The changes are `witness_version`, the two verdict hashes and the
fixtures' version strings.
- Both rvt-rs observations also gain RE-354's one diagnostic note ("1
type text parameter(s) ... left out"), which the committed observations
had missed since #1185.
- Both verdicts replay PASS locally with CI's arguments, byte-identical
to the committed ones.
- **Release review** (rvtReview's second read) blocked on two
overclaims, and both are fixed:
- `IsExternal` on 2026 and 2027 walls, curtain walls, members and
plates;
  - the same-project check's reach.
It found two dropped caveats, also fixed: the beam rule's reach (#1514)
and #1489's two doors. Its two minor points were fixed too: the
non-finite refusal's scope and the wall-hosted origin.
- Checking the run myself added three corrections: the held-out pipe,
wall and beam counts on 2015 to 2023 (the notes had said none was
scored), Vitoria's 44 `InvertElevation` values counted apart, and the
pipe entry's matching claim.

## Audit-honesty checklist

- [x] The introduction keeps each entry's caveats and adds a "Not
measured" paragraph: the 2015 to 2023, 2026 and 2027 readers held to the
same project's other save, and 2015 to 2023 scored on held-out projects
only, as counts; the 2025 to 2027 and Snowdon Towers Areas checked
against no Revit export; the one-project Furniture Systems and wall end
order; the office-only thresholds; the door origin; the release workflow
checks first run by this tag.
- [x] No emojis, private paths or internal jargon.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk proprietary source, decompiled internals
or NDA'd SDK content.

## Breaking changes

Behaviour changes are listed under "Upgrading from 0.15": the
diagnostics' `building_elements` and `by_ifc_type` count only written
elements, door and window placements and their rotations move, Furniture
Systems change class, a space has no material association by default,
the room schedule gains a column, and a non-finite export is refused.
The stable API's changes are additions; `semver checks` in this pull
request's CI reports on them.

## Related issues

Refs #1190, #869, #1165, #1185, #1203, #1261, #1194, #1332, #1334,
#1335, #1357, #1359, #1368, #1385, #1396, #1408, #1410, #1411, #1417,
#1422, #1424, #1429, #1430, #1437, #1440, #1444, #1445, #1447, #1457,
#1465, #1466, #1473, #1475, #1492, #1494, #1496, #1498, #1559, #35,
#155, #156, #1158, #1192.
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.

2 participants