Skip to content

feat(ifc): Category, family/type and Phase Created in Revit's Other, Identity Data and Phasing sets - #755

Merged
DrunkOnJava merged 6 commits into
DrunkOnJava:mainfrom
helenkwok:feat/category-type-phase
Oct 18, 2026
Merged

DrunkOnJava merged 6 commits into
DrunkOnJava:mainfrom
helenkwok:feat/category-type-phase

Conversation

@helenkwok

Copy link
Copy Markdown
Contributor

Writes the element's Category, family/type and Phase Created in the property sets Revit's IFC4 export uses. Closes #754.

  • Occurrence: Other (Category, Family, Family and Type, Type, Type Id) and Phasing (Phase Created), as IfcLabel.
  • Type object: Other (Category, Family Name) and Identity Data (Type Name), as IfcText, through HasPropertySets. Revit puts these on the type, not the occurrence.
  • Category: m_builtinCategory (element record +0x12) through a table of 57 BuiltInCategory ids with the English names Revit's export writes (builtin_category_name in partition_element_records.rs). No table entry, no value.
  • Phase Created: new src/partition_phases.rs reads phase names from their frame (01 00 00 00 | u64 id | 56 x ff | 00 00 00 | u32 n | UTF-16 x n), accepted only when the ProjectPhase class tag sits 38 bytes before the id or the frame is the element's own data and the id has an OST_Phases record. attach_phases_created takes the one phase id in the element record's reference list (RE-168); none or two phases writes nothing.
  • Family/type values come from the existing decode (RE-38) and are unchanged; only their names are added.

Measured against Revit's IFC4 export by Tag (equal / elements where Revit has the property; no wrong values in any column):

file Category Phase Created Family Type Type Id
Technicalschool 5403 / 5403 5401 / 5401 5354 / 5393 5354 / 5393 5354 / 5393
racadvanced 5408 / 5408 5406 / 5406 5359 / 5398 5359 / 5398 5359 / 5398
racbasic 424 / 427 424 / 424 411 / 424 413 / 424 413 / 424
rmeadvanced 6483 / 6492 6477 / 6483 5223 / 6483 5223 / 6483 5223 / 6483
rmebasic 6527 / 6536 6521 / 6527 5268 / 6527 5268 / 6527 5268 / 6527
rstadvanced 904 / 904 904 / 904 904 / 904 904 / 904 904 / 904
rstbasic 454 / 454 454 / 454 450 / 454 450 / 454 450 / 454

Family Name and Type Name on the type objects: 22,948 of 25,471, none wrong. The family/type gap is mostly ducts and pipes (about 1,250 per rme file), which have no family/type on main either.

Not covered: Revit 2023 and 2025, Phase Demolished, non-English category names. DACH and Snowdon Architectural export no elements on main (#736). With #737 applied locally (not part of this PR): DACH Category 2381 / 2395 and Phase Created 2370 / 2379, Snowdon 5657 / 5708 and 5666 / 5685, none wrong; Snowdon family/type none wrong; DACH family/type 14 wrong (12 stair runs typed 陇, 2 walls with another wall's type), from the existing RE-38 decode.

Test: tests/category_type_phase.rs (RVT_REVIT2024_SAMPLES_DIR, any <name>.rvt with its Revit <name>.ifc; skips otherwise). Every value written must equal Revit's, and Category and Phase Created must cover at least 99%. It fails on main (Category 0 of 6609 on racadvanced and rmeadvanced) and passes here. cargo fmt --check and cargo clippy --all-targets --all-features -- -D warnings pass; the full suite passes except ifc_synthetic_project::synthetic_project_emits_valid_ifc4, which fails on main too.

Report: reports/element-framing/RE-177-category-type-phase.md.

Clean-room: public Autodesk Revit 2024 sample files with Revit's own IFC4 export as the oracle; ProjectPhase from the file's own schema stream. No SDK source and no decompiled or disassembled code was used.

…Identity Data and Phasing sets

An element's Category comes from its record's BuiltInCategory and a table of
the names Revit's export writes for 57 categories. Its Phase Created is the one
phase its record's reference list names: a phase is an element of the file's
ProjectPhase class, or an OST_Phases element, whose name follows its ElementId
in a fixed frame. Elements carry Category, Family, Family and Type, Type and
Type Id in Other and Phase Created in Phasing; type objects carry Category and
Family Name in Other and Type Name in Identity Data, as Revit writes them.

Measured on seven Autodesk Revit 2024 samples against Revit's own IFC export
(matched by Tag): Category 25,603 of 25,624, Phase Created 25,587 of 25,599,
Family/Type/Type Id about 23,000 of 25,600, none wrong.
@DrunkOnJava

Copy link
Copy Markdown
Owner

Thank you for this one too. Category from m_builtinCategory, Phase Created from the reference list's one phase id (RE-168), and the type's own sets on HasPropertySets, all with no wrong values against Revit's export, is the same careful standard as #751. The type objects' attribute order (HasPropertySets at slot 6 of IfcElementType) is right, and both sets are always non-empty, so the STEP set stays valid.

Where it stands: it lands right after #751, which is merging now. It moves the same Core Interior counts, so it needs its own refresh once #751 is on main. I'll do that on your branch: merge main, then refresh the committed witness observations and the project-count manifests from this PR's CI artifact. On its first run it failed only those gates (IFCPROPERTYSET 2948 to 5054 on its own), plus the lockfile advisory #747 fixed.

One change I'll make while landing it: src/partition_phases.rs adds a #[cfg(test)] module. CONTRIBUTING.md doesn't accept new unit tests, and CI wouldn't run it anyway: tools/ci/verify-real-files.sh runs only the classified targets under tests/, never cargo test --lib. So I'll take the module out and keep tests/category_type_phase.rs, your real-file check against Revit's export. That's a project policy, not a judgement on the test.

CONTRIBUTING.md does not accept new unit tests, and CI never runs them:
tools/ci/verify-real-files.sh runs the classified targets under tests/
only, not cargo test --lib. tests/category_type_phase.rs, which checks the
phases against Revit's own export, stays. Every helper the module used has
a use outside it.
…ata sets

Both committed rvt-rs observations and both Core Interior manifests move
by the sets this PR writes: IFCPROPERTYSET 3802 -> 5908 (854 elements x 2
occurrence sets, 199 type objects x 2 type sets), IFCRELDEFINESBYPROPERTIES
3802 -> 5510 (the type sets hang on HasPropertySets) and
IFCPROPERTYSINGLEVALUE 19856 -> 25577. Nothing else moves, and both bridge
witnesses still replay. Taken from this PR's octetproof-core-interior
artifact (run 39116128248).
@DrunkOnJava
DrunkOnJava merged commit 728dcaa into DrunkOnJava:main Oct 18, 2026
26 checks passed
@DrunkOnJava

Copy link
Copy Markdown
Owner

Merged as 728dcaa. With #744, #752, #753, #757 and #751 that's all six of your pull requests in main today: rooms in the spatial tree, the Nordic LCA storeys and columns, cut column bodies, and Revit's level, category, type and phase properties, each measured against Revit's own export. Thank you. They're on main now and will ship in the next release; the CHANGELOG entries for them come with the release preparation.

DrunkOnJava added a commit that referenced this pull request Oct 18, 2026
[Unreleased] becomes [0.5.0] — 2026-10-18, with an introduction, the
contributors, and what to change when upgrading from 0.4. The community
pull requests' entries are added and credited (#737, #738, #744, #751,
#752, #753, #755, #757, #758), and the repeated Added, Changed, Fixed and
Research headings are folded into one each, keeping every entry (107) and
its order; everything from [0.4.0] down is unchanged.

CITATION.cff said 0.1.2 (2026-04-20), though RELEASE.md has it agree with
Cargo.toml at every tag. Its abstract now describes the project as the
README does, without the "first open-source tool" and "verified against
11 releases" claims.
DrunkOnJava added a commit that referenced this pull request Oct 18, 2026
## Summary

Prepare v0.5.0. Merging this is not the release: the release is the signed `v0.5.0` tag on the merged commit, which runs `publish.yml` (crates.io, PyPI, the release binaries and the container image). The tag waits for the maintainer's go-ahead.

## Motivation

`main` is 0.4.0 plus everything under `[Unreleased]`: Revit 2026 projects (experimental), MEP ports, connections and systems, Revit's level, category, family, type and phase properties, rooms aggregated into their storeys, Snowdon Towers exporting again, and the first pull requests from outside contributors. Before 1.0 a breaking change bumps the minor version, and these are breaking for a 0.4 user:

- The MSRV is 1.87 (was 1.85).
- `rvt` has no `wasm` feature; the bindings are the `rvt-wasm` crate (C6).
- Each `IfcSpace` is aggregated into its storey instead of contained in it (#744).
- `ElemTableHeader::record_count` is a `u32` (#764).
- Type objects take Revit's GlobalIds (RE-167).

## Changes

- **Versions 0.4.0 → 0.5.0:** `rvt`, `rvt-py` and its pin, `rvt-wasm`, the `stream_evidence` pin, both lockfiles (only the workspace crates' version lines change), `.release-please-manifest.json` and `viewer/package.json`.
- **`CHANGELOG.md`:** `[Unreleased]` becomes `[0.5.0] — 2026-10-18`.
  - An introduction, the contributors, and an **Upgrading from 0.4** section.
  - The community pull requests' entries are added and credited (#737, #738, #744, #751, #752, #753, #755, #757, #758).
  - The repeated Added, Changed, Fixed and Research headings, which later merges had appended, are folded into one each. All 107 entries are kept as written (checked as a multiset) and in their order, and everything from `[0.4.0]` down is byte-identical.
  - #778's clean-room policy change is added under Changed, so the section has 108 entries.
- **`CITATION.cff`:** it said 0.1.2 (2026-04-20), though `RELEASE.md` has it agree with `Cargo.toml` at every tag. Its abstract now describes the project as the README does, without the "first open-source tool" and "verified against 11 releases" claims.
- **Registry descriptions:** crates.io showed 0.4.0's description, which leaves out Revit 2023, and PyPI one that called element extraction and geometry "active research" and the export "document-level IFC4 scaffolding". `Cargo.toml` and `pyproject.toml` now say what the README says: typed elements from Revit 2023 to 2025 projects, 2026 experimental.
- **Witnesses:** the IFC header carries the version (#417), so both Core Interior `rvt-rs.json` observations and their verdicts are refreshed from this pull request's CI run.

## Testing

- CI on this pull request: every job `CI passed` requires, the witness replays among them.
- On the tag, the publish workflow runs its own checks before anything is published: wheel install and model open on each OS, `cargo install` and the CLI sample smoke, the docs.rs build preview and the viewer load smoke. crates.io and PyPI publish only after all of them pass, and PyPI only after crates.io.

## Audit-honesty checklist

- The docs keep describing 0.4.0 as the latest release until each 0.5.0 channel has been checked from what was published. That follows in a separate pull request (`docs/install.md`, `docs/python.md`, `docs/status.md`, `docs/supported-profile.md` and the README's release section).
- crates.io's trusted publisher (repository DrunkOnJava/rvt-rs, workflow `publish.yml`, environment `crates-io`) has to be in place before the tag, as `docs/maintaining.md` says; it is a registry-side setting this repository cannot check.

## Legal and contribution hygiene

N/A: release metadata only. Contributors are credited by their GitHub names in the CHANGELOG.

## Breaking changes

Listed under Motivation, with the migration for each in the CHANGELOG's **Upgrading from 0.4**.
DrunkOnJava pushed a commit to puzzbobb/rvt-rs that referenced this pull request Oct 18, 2026
…pies (RE-179) (DrunkOnJava#740)

The partition readers take their Revit 2027 constants from the file's schema (RE-124's rule): the record marker, Level elevations, element data, layers and materials; layer records, wall join lists and mullion type materials keep their 2026 layouts. From 2027 a type symbol frame takes its enclosing record's id, as an instance already does (RE-35). A pipe or duct type name needs the u32 0 before its length. Renumbered from RE-177 on landing (RE-177 is DrunkOnJava#755's).
DrunkOnJava pushed a commit that referenced this pull request Oct 18, 2026
…pies (RE-179) (#740)

Part of #421.

**Before.** A Revit 2027 project opens and its schema reads, but every partition reader stops at 2026. `rvt-elements` on Autodesk's 2027 `rac_basic` lists 933 `Material` name candidates and nothing else, and `rvt-ifc` writes an empty spatial scaffold.

**The constants.** As RE-124 found for 2023 to 2026, each per-release constant is a class tag in the file's own schema. The 2027 values are the same on all seven of Autodesk's 2027 sample files:

| constant | class | 2026 | 2027 |
|---|---|---|---|
| record marker | `Outline`, `ElementParents` | 0x0161, 0x05f1 | 0x0164, 0x0610 |
| Level elevations | `Plane` | 0x0265 | 0x027a |
| element data | `CellList` | 0x02fd | 0x0310 |
| layers | `VerticalRegionsStructure` | 0x1165 | 0x11ab |
| materials | `Material`, `PatternHelper`, `PhysicalParamSet` | 0x0a9c, 0x0164, 0x0cac | 0x0acc, 0x0168, 0x0ce0 |

Three layouts carry over, each checked on the bytes:
- **Layer records** stay at 41 bytes; the layer lists of 2026 and 2027 `rac_basic` are byte for byte the same.
- **Wall join lists** keep the count offset of 16.
- **Mullion type materials** stay at +135: all 353 types of 2027 `rac_advanced` hold their 2026 material there. B66 recorded "none on 2027", but that survey ran before 2027 material names could be read.

**A 2027 format change.** Revit 2027 writes most element frames in the second prologue (RE-30), with no ElementId at `+0x00`: 938 of 1,265 on `rac_basic`, where the 2026 copy writes none. Type symbols are among them. Instances already take their id from the enclosing chain record (RE-35). From 2027, symbol frames do too (`SECOND_PROLOGUE_SYMBOLS_FROM`); without that, columns lose their type section (RE-26). Of 17,621 such frames, 17,619 take the id the 2026 copy's frame of the same category, kind and box carries. Earlier releases are left as they are: on Snowdon Facades (2025), symbols would give seven columns a type section that no export here checks.

**A fix on the way.** With 2027 admitted, RE-130's pipe type name scan matched an element's reference lists on `rme_basic` and named 33 pipes `였縿괜쭃`. All six real type names on RE1 Plumbing and Mechanical have a `u32 0` before their length, and the false match does not, so the scan now requires it (`MEP_CURVE_TYPE_NAME_GUARD`).

**Measured.** There is no Revit 2027 IFC export to measure against. The oracle is the same Autodesk model saved by Revit 2026, which RE-124 measured against Revit's export. `examples/probe_re179_revit_2027.rs` compares production elements by ElementId:

| model | elements | same id and class | fields agree | differ |
|---|---:|---:|---:|---:|
| `rac_basic` | 638 | 638 | 9,624 | 45 |
| `rac_advanced` | 5,841 | 5,841 | 104,254 | 129 |
| `rst_basic` | 541 | 541 | 8,064 | 0 |
| `rme_basic` | 6,921 | 6,921 | 120,706 | 10 |
| `rme_advanced` | 6,877 | 6,877 | 119,808 | 0 |

Every difference is either in the 2027 bytes or in a reader with no per-release constant (details in RE-179 §5):
- 79 corner mullions name both curtain walls of their corner on 2027, so they stay standalone (RE-46 needs exactly one).
- RE-82's type-material scan gives 34 elements a different material. 2027 orders the partition's objects differently, and the scan's window runs to the next declared block.
- `m_levelId` differs on 21 mullions aggregated into their curtain walls. It places nothing: all 450 exported elements land on the same storey.
- `m_original_symbol` differs on 10 instances. The 2027 `GElement` objects name a different symbol whose box is identical.
- 3 boxes differ by 1.7e-6 ft, from f32 rounding in the 2027 file.

The 2027 `rac_basic` export has the 2026 export's entities class for class (47 walls, 16 doors, 17 windows, 9 curtain walls, 14 spaces, 6 storeys…), with the same storeys and the same GlobalIds apart from rvt-rs's own opening ids. All six 2027 exports pass IfcOpenShell 0.9.0's schema validation with no issue.

**Nothing else moves.** Every 2023 to 2026 IFC export is byte-identical to `main`'s, owner-history timestamp aside. That covers 55 local files: Autodesk's samples, Core Interior, Einhoven, the seven 2025 Snowdon Towers models, Golden Nugget, the Japanese samples and RE1.

**Not read on 2027**, as on 2026: roof slopes, stair dimensions, beam axes, IFC export overrides, room solids, the opening index.

**Docs.** README row, supported profile, support-matrix entry `element-records-revit-2027` (experimental, and it says there is no 2027 export), CHANGELOG, the RE-179 report and probe.

**Checks.** `cargo fmt`, `cargo clippy --all-targets -D warnings`, and the support-matrix contract test pass locally. The probe compares two files (a 2026 copy and its 2027 file), so it runs by hand: Measure's per-file call passes `--records`, which it would read as the second path.

A Revit 2027 export of any model would turn this from "the same as 2026" into a measurement against Revit. If someone with Revit 2027 can export one of Autodesk's 2027 samples to IFC4 with default settings, that settles it.

## Legal and contribution hygiene

The changes in this PR are based on byte observations of Revit files (CLEANROOM.md Accepted sources 1): Autodesk's public sample projects of Revit 2026 and 2027 (`rac_basic`, `rac_advanced`, `rst_basic`, `rme_basic`, `rme_advanced`, plus the 2027 `rst_advanced` and `rac_basic_sample_family`), as pinned in `research/autodesk-sample-projects.tsv` and fetched by `tools/fetch-autodesk-samples.sh`; and, for the pipe and duct type-name guard, the RE1 Plumbing and Mechanical models already in the project's corpus. The regression check (byte-identical 2023 to 2026 exports) used files already in the project's corpus. I have not used Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code beyond public symbol exports, and I have not copied or translated code from revit-ifc. I agree this work is licensable under Apache-2.0. (puzzbobb, [comment](#740 (comment)))

## Maintainer notes (landing)

- **Renumbered RE-177 to RE-179**, because RE-177 is #755's: the report, the probe (`probe_re179_revit_2027.rs`), code comments, the support-matrix evidence, the CHANGELOG, README and supported profile. Only lines this PR adds were changed.
- **Rebased onto `main`** as one signed commit with puzzbobb as author; the merge commit is dropped. The source, support-matrix and probe changes are the PR's own, line for line: each file's added and removed lines equal the original commit's, apart from the renumbering. The CHANGELOG entries moved into today's `[Unreleased]`, since 0.5.0 and 0.5.1 shipped meanwhile. README's 2026 row and the supported profile keep `main`'s "since 0.5.0" wording beside the new 2027 text.
- **Reproduced on the runners.** Measure run [39159699151](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39159699151) (`-f samples=true`, base `main`) read the 49 Autodesk samples and CI's 6 reference models:
  - the five 2027 samples export as many building elements as their 2026 copies: `rac_advanced` 5,657, `rac_basic` 464, `rme_advanced` 6,710, `rme_basic` 6,754 and `rst_basic` 454, where `main` exports none;
  - every other output, 2016 to 2026 and the reference models, is byte-identical to `main`'s.
DrunkOnJava added a commit that referenced this pull request Oct 23, 2026
… the API docs, and the check knows those forms
DrunkOnJava added a commit that referenced this pull request Oct 23, 2026
…very cited RE finding has a report (#896)

Backlog and task ids and work-plan labels leave the API docs: the crate's and the CLIs' rustdoc, the Python docstrings (rvt-py), the type stubs and docs/python.md. Where one was a citation, it is kept in a `// Tracker:` comment beside the item, or replaced by the issue it stood for (spike 257 is #755; Finding 1 is #151). The crate root says what RE-NN and #NNN refer to. tools/ci/api-doc-ids.py, in the PII guard job, fails on an RE id that no report is named for (whole ids, so RE-15-07 is not taken as RE-15) and on a planning label coming back. The ifc module's overview and from_decoded say what the exporter writes today. The Python docs no longer say only scaffold export succeeds until geometry recovery lands.
DrunkOnJava pushed a commit that referenced this pull request Nov 8, 2026
… (RE-368) (#1521)

## 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.

- [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, 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 (#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.
- [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.
- Measure
[42516796053](https://github.com/DrunkOnJava/rvt-rs/actions/runs/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

- [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. Still not read, RE-368 §6: `Phase Demolished`, and
`Constraints.Level` and the other Level parameters on these releases.
- [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_re368_phase_created.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. 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.
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.

IFC export: write Revit's Category, Family/Type and Phase Created properties

2 participants