Repository navigation
feat(elements): rvt-elements and Python list each element's saved parameters (#35) (RE-207) - #887
Conversation
…ameters (DrunkOnJava#35) (RE-207) An element's `parameters` held only AProperty* value carriers, empty for every building element. On Revit 2023 to 2027 files they now also hold the values the element's native record saves, read through native_document::extract: its typed parameter sets (m_pParamValueSet*), the family slots of its own FamilyParams that a definition resolves, and the native fields read as built-in parameters. Each value is named by its definition's m_caption (family, shared, project or global parameter); built-in parameters keep their negative id and no name. A family instance's type (m_masterSymbolId) adds the type parameters the instance does not hold, marked "level": "type". A family parameter whose definition is an instance parameter is taken from the instance only: the type's slot holds the family's default. Lengths, areas, volumes and angles also get their SI value, a Yes/No is a boolean, and a value naming a material or family type gets that element's name. A ParamDefFamType definition (a window's Muntin Pattern or trim) is now read as an ElementId, the family type of its m_categoryId it names. native_element_parameters::read and ElementParameters::json_entries give rvt-elements and RevitFile.decoded_elements() the same list. A file whose parameters cannot be read keeps its elements, with a warning. rvt-ifc reads none of this; its output is unchanged.
DrunkOnJava#35) (RE-207) For each element of Revit's own IFC4 export, every parameter rvt-rs reads under a name `<set>.<property>` whose property Revit writes on the same Tag must hold Revit's value (RE-194: Revit takes that parameter first). Run on the BIM4LCA housing on terrain, which CI's test job fetches (27 values), and on the office as built where its export is present (7,086). On R2025 model 12 the three windows' FireRating must be their type's family parameter `Fire Rating`, reached through the type merge; with the merge disabled the test fails, 0 of 3. decode_step_string in tests/element_names.rs is shared for the office's Finnish texts.
…ed parameters (DrunkOnJava#35) probe_re207_element_parameters prints, per element class, the values read by kind and level, and one line per element as rvt-elements lists them. element_parameters_vs_ifc.py pairs either output with Revit's export by Tag and counts, per parameter, the values equal to Revit's. Measured: BIM4LCA office 7,606 of 7,606 as built and 7,592 of 7,592 at building permit, housing on terrain 27 of 27, R2025 models 12 to 17 a window type's Fire Rating 3 of 3 each. The report gives the record layout, the instance and type rule, what is not read, and the cost.
…(RE-207) README (summary, the reads table, the parameters gap), docs/status.md (a dated RE-207 entry and the summary), the support matrix (native-element-parameters, partial), CHANGELOG and a dated addendum in docs/rvt-moat-break-reconnaissance.md.
|
Heads-up: #890 just landed on
CI now also builds the library without the feature ( |
|
One more heads-up, so nothing new needs reworking later: before 1.0 the id fields of the stable types ( |
|
Thanks for the heads-up. Yes please go ahead and push the rebate onto main. On ElementId that's fine open it whenever it suits you. I have follows on this pr that I'll rebuild around the new scheme once they've been pushed. |
# Conflicts: # python/rvt/__init__.pyi # rvt-py/src/lib.rs # src/lib.rs
…a stable elements::parameters::saved_parameters_lossy DrunkOnJava#890 moved the research readers behind unstable-research, and CI builds the library and its CLIs without the feature (cargo check --lib --bins), so a CLI or rvt-py cannot call research::native_element_parameters. The stable function wraps it and returns an opaque SavedParameters whose only method gives an element's JSON entries, the shape the schema and the Python stubs already describe; a file whose parameters cannot be read gives none and a saved-parameters-unread warning, as before.
|
Pushed: main is merged into your branch (f6c5dc2), and one more commit (5e91c79) is on top. It is a merge rather than a rebase, so nothing was force-pushed and your local branch fast-forwards with What changed:
None of this is built locally, so this PR's CI is the check. Your follow-ups can call |
|
The ElementId scheme you'll build on is up as draft #923, and it changed in one way from what I wrote before: |
…d on BIMcollab's example (#878) (RE-208) (#928) ## Summary RE-208 measures why rvt-rs rebuilds none of Revit's GlobalIds on Revit 2015 (#878), on BIMcollab's structural example against Revit 2015's export of it. The answer is negative: the export's element GlobalIds were not made from the episode history, and the 2 bits that separate them from a parameter the file stores are in no field tested. ## Motivation #878 and W5 of the 1.0 criteria (identity on the held-out 2015 project). RE-198 found 0 of 241 GlobalIds. This finds whether a reader change could fix that. ## Changes - `examples/probe_re208_episodes_2015.rs`: prints the history's episode GUIDs, every ElemTable record, and every GlobalId-shaped string in the partitions and `Global/Latest`, with the 32 bytes before each. - `tools/re/episodes_vs_ifc.py`: joins those to Revit's export. It reports: - which episode, if any, each element's GlobalId comes from; - how the GlobalIds group into episode prefixes; - which GlobalIds share an episode's middle bytes; - the stored strings that match the export, whole or on their last 21 characters; - the first characters by entity class. - `tools/re/episodes_first_char.py`: stdlib only. Measures how much of the first character each candidate field explains. - `reports/element-framing/RE-208-revit-2015-global-ids.md`, a `CHANGELOG.md` Research entry, and the BIMcollab row of `docs/reference-models.md`. ## Testing Measure [39998800211](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39998800211) (`-f bimcollab=true`, probe and scorer from this branch). The report's tables are that run's output; the first-character table is `episodes_first_char.py` on the run's probe output. | | BIMcollab 2015 | Core Interior 2024 | RE1 Architecture 2025 | |---|---:|---:|---:| | element GlobalIds | 241 | 854 | 73 | | distinct episode prefixes | 241 | 5 | 4 | - 229 of the 241 elements have their last 21 characters in a stored IfcGUID parameter (id -1019000), and their first character always differs. - All 8 of the project, site, building and storeys equal a stored string exactly. - Types keep RE-48's rule: 6 wall types and 5 column types. - 10 openings take an episode with its top two bits changed. - [ ] `tools/check-local.sh` passes: left to CI (a probe and Python only) - [x] Verified on real files: the run above. The BIMcollab files have no stated licence, so they stay local only and Measure fetches them by hash. - N/A: exporter unchanged ## Audit-honesty checklist - [x] Docs reflect the state after this PR. Nothing changes in what rvt-rs writes. - [x] The limitation is documented. Rebuilding 2015 element GlobalIds is out of reach on this export. A second, unprocessed Revit 2015 export is needed. - [x] Commit messages say what and why - [x] No emojis - [x] No private paths - [x] Probe under `examples/`, dated report under `reports/element-framing/` ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content - [x] No fixtures Contributor declaration (CLEANROOM.md): the findings in this PR are based on byte observations of the files above (sources 1 to 3) and on revit-ifc read for how it encodes a GlobalId (`GUIDUtil.ConvertToIFCGuid`, source 5). 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. ## Breaking changes None. ## Related issues Refs #878. #879 (the footings' storeys) and the storeys' stored GlobalIds both wait on the saved-parameter reader (#887) reaching 2015 records.
# Conflicts: # README.md
…ts beside their anyOf, so the schema check reads no new type (DrunkOnJava#35)
|
I pushed one more small fix to your branch. The semver gate, which since #915 also checks the CLIs' JSON schemas against main, read the new |
…becomes a changelog.d fragment (DrunkOnJava#938)
|
I merged main into this branch again and moved its CHANGELOG.md entry, unchanged, into a fragment under |
…changelog.d fragment (DrunkOnJava#938) DrunkOnJava#887, this branch's base, landed squashed, so its commits here conflict with main. This merge's tree is main plus this branch's own four commits (0239d99, 3a461ae, 20b07a2, 45e9fea), replayed onto it, with the RE-210 status and reconnaissance entries placed before RE-215's.
…e assembles (#938) (#940) ## Summary Changelog entries become fragments, one file per pull request at `changelog.d/<section>/<name>.md`, and a release assembles them into `CHANGELOG.md` (`tools/release/changelog.py assemble`). CI checks every fragment (`tools/release/changelog.py check`). Closes #938. ## Motivation Every pull request added its entry at the top of the same `[Unreleased]` section, so each landing left every other open pull request in conflict with main on `CHANGELOG.md`. The queue then skipped them as `DIRTY` until someone merged main into each one by hand. On 2026-10-24 that happened after every landing: - #926 landing put #927 and #930 back in conflict; - #936 landing did the same to #886, #887, #927, #930 and #935, all with green CI. The `merge=union` driver that resolves such conflicts is in a maintainer's own git configuration, not this repository, and GitHub's merge never applied it. Nor does union merging keep the blank line between two entries. A fragment is a file of its own, so two pull requests never touch the same lines, and GitHub's update-branch, which the queue uses, merges them cleanly. ## Changes - `tools/release/changelog.py` (stdlib only): - `check` fails on a fragment outside a known section (`added`, `changed`, `fixed`, `removed`, `security`, `research`), an empty one, or one whose first line does not start an item (`- **`); - `assemble` puts each fragment at the top of its section under `[Unreleased]`, making the heading in Keep a Changelog order where it is missing, one blank line apart, in name order, and deletes the fragments. - `changelog.d/README.md`: the format. `changelog.d/changed/changelog-fragments.md`: this PR's own entry. - `.github/workflows/ci.yml`: the `check` step, beside the conflict-marker guard. - `RELEASE.md` step 5 runs `assemble` first. - `CONTRIBUTING.md`, `docs/maintaining.md` and the PR template point at `changelog.d/`. - `CHANGELOG.md`'s preamble says unreleased changes are also in `changelog.d/`. This PR leaves the existing `[Unreleased]` entries where they are. The open pull requests' entries move into fragments in those pull requests, each with one last merge of main. ## Testing I ran the tool on a scratch copy of main's `CHANGELOG.md`: - `check` with three fragments: `changelog.d: 3 fragment(s), each in a section and starting an item`; - `assemble` put two `added` fragments at the top of `### Added`, in name order with a blank line between, and made `### Security` between `### Removed` and `### Research`; it deleted the three fragments and left `README.md`; - `check` on a fragment that does not start an item, and on one in an unknown directory: both reported, exit 1; - on this branch, `check` passes on its one fragment, and `tools/ci/api-doc-ids.py` and the YAML parse pass. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [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 ## 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`) ## Breaking changes None for users. Contributors write their entry under `changelog.d/` from now on.
## 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.
## Summary The 1.0 `ElementId` newtype (#873, S1). The typed layer of the stable API carries `Option<rvt::ElementId>`: - the element structs' ids (`level_id`, `host_id`, `type_id`, `symbol_id` and the rest, 95 fields); - `geometry::recovery::OpeningHostRelationship::host_element_id`; - the arc-wall record's ids. `ElementId` wraps an `i64`, the Revit API's `ElementId.Value`, and serialises as the bare number. So the JSON the CLIs print and the values Python sees are the same integers, and the schemas and stubs are unchanged. **What keeps the `u32`.** The wire-level views mirror the bytes and keep the `u32` the file stores: `walker::DecodedElement::id`, `walker::InstanceField::ElementId` and `elem_table::ElemRecord`. `DecodedElement::element_id()` gives the typed id. The line is the one between the walker, which reads the file, and the element structs, which interpret it. Converting the walker too would have meant about 130 call-site changes in research code, for a type that describes raw fields. ## The type - `ElementId::new(i64)` and `get() -> i64`. - `From<u32>`, and `from_raw(u64) -> Option<ElementId>`, which applies the no-id rule: 0, and values from `u32::MAX` up, name no element (RE-30, RE-43). - `as_u32() -> Option<u32>` gives the stored form. - It derives `Copy`, `Eq`, `Ord`, `Hash` and transparent serde, and implements `Display`. ## How it was made `sweep.py` rewrites a fresh `main` mechanically and is idempotent. It retypes the fields, converts the decoders' `Some(*id)` assignments, and makes exact edits at the typed layer's edges. It will be re-run after #886 and #887 land, so the edits apply to the code as it is then. This stays a draft until that re-run is green. ## Testing - [x] CI: build, clippy (`-D warnings`), the real-file tests, MSRV, docs and the Python wheel, all green on the second pass. - [ ] The re-run after #886 and #887. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR (CHANGELOG "Breaking") - [x] No limitation resolved or introduced - [x] Commit messages describe what and why - [x] No emojis - [x] No private paths, personal email addresses, or internal jargon in committed files - [ ] Reverse-engineering finding: N/A ## Legal and contribution hygiene - [x] I agree this work is licensable under Apache-2.0 - [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content
|
This shipped in v0.7.0, released today (2026-10-24) on crates.io, PyPI, the release archives and the container image, and it is credited in the release notes. Thank you. |
… sets (#35) (RE-210) (#934) ## Summary `rvt-ifc --revit-property-sets` writes each element's named saved parameters (RE-207) the way Revit's exporter writes them with "Export Revit property sets": one property set per parameter group, named for the group (`Dimensions`, `Identity Data`, `Materials and Finishes`, ...), with the type's parameters in such sets on its type object (RE-210). Against Revit 2025's exports of Autodesk's Snowdon Towers HVAC and Site with "Export Revit property sets", every property rvt-rs writes is in the set of the same name, on the element or type object of the same Tag, with Revit's value: 28,906 and 718, counted per element. On Snowdon Architectural, 58,346 of 58,733 are; 369 of the rest are in sets Revit names with `(Type)` on 13 type objects it does export, which follows from the order of its export, and 18 are curtain panels' type category, written before this change. Revit writes 79,907, 948 and 118,432 more, nearly all built-in parameters, which rvt-rs does not name (#255). On the BIM4LCA office as built, `FireExit` written in `Identity Data` equals Revit's `Pset_DoorCommon` and `Pset_WindowCommon.FireExit` on 498 of 498 doors and windows. This is the second slice of #35. It is opt-in, and without the option the export is unchanged. This branch is stacked on #887 (slice 1, RE-207) at `f4e3c0e`. Until #887 is merged, its commits also show here; this PR's own are the last four. ## Motivation #35 (M4-07) asks for an element's instance and type parameter values in the exports. Slice 1 (#887) read and named them for `rvt-elements` and Python. This slice writes them to IFC in the form Revit's own exporter uses for the same parameters, so an rvt-rs export can be compared with, and stand in for, a Revit export made with Revit's property sets. It serves W7 (Properties) of `docs/release-1.0-criteria.md`. The rules are read in revit-ifc's `Release_25.x.x` branch (CLEANROOM.md source 5: read and cited, no code copied): | what | revit-ifc | rvt-rs | |---|---|---| | which parameters | `ParameterUtil.CacheParametersForElement`: visible, named, by parameter id; the IFC group left out; per group one parameter per name with its spaces removed, the first | RE-207's named parameters; the IFC group left out; per group the lowest parameter id per space-free name | | instance and type | `PropertyUtil.CreateInternalRevitPropertySets`: the element's own parameters on it, the type's on its type object, or on its elements with `(Type)` added where it has none when the element's sets are made (`ElementTypeToHandleCache.IsRegistered`), so a type object created later carries `(Type)` sets too | the same, the type's through `IfcModel::type_property_sets`; a type object's sets always under the group's name | | set name | `LabelUtils.GetLabelForGroup` | Revit's English labels for the 24 groups the measured models use (`GROUP_LABELS`) | | values | Yes/No `IfcBoolean`; an integer with a spec `IfcInteger`, with none its display text; a non-empty text; a real by its spec (`CreateRealPropertyByType`); an ElementId by the display name of what it names (`AsValueString`), none for −1 | Booleans, integers with a spec, non-empty texts, lengths (length, pipe and duct size), areas, volumes, angles, numbers, air flows, HVAC and piping pressures, apparent and electrical powers, electrical potentials, currents (in SI units), material names, and family types as `<family> : <type>` (the type's name alone where both are the same, as measured); enumerations and other specs left out and counted | ## Changes - `src/ifc/revit_property_sets.rs` (new): `attach(file, model)` reads the elements' parameters with `research::native_element_parameters::read` and adds the sets; `group_label` gives a parameter's set. `property` gives its property, and since it takes research's `ElementParameter` it is public only with `unstable-research`; `attach`, `Report`, `group_label`, `GROUP_LABELS` and `TYPE_SUFFIX` are stable. - `src/ifc/mod.rs`: the module, and `IfcModel::type_property_sets` (`#[serde(default)]`), a type object's further sets by type id. - `src/ifc/entities.rs`: `PropertyValue` gains `VolumetricFlowRate`, `Pressure`, `Power`, `ElectricVoltage` and `ElectricCurrent`, in SI units, written as `IfcVolumetricFlowRateMeasure`, `IfcPressureMeasure`, `IfcPowerMeasure`, `IfcElectricVoltageMeasure` and `IfcElectricCurrentMeasure`. `src/ifc/scene_graph.rs` formats them. - `src/ifc/step_writer.rs`: a type object's sets take `type_property_sets` too, merged by set name. The `IfcUnitAssignment` declares pascal, watt, volt, ampere and m³/s when a value of that kind is written, in an element's or a type object's set, as it already declared W/(m²·K) for a thermal transmittance; that check now also looks at type objects' sets. - `src/bin/rvt_ifc.rs`: `--revit-property-sets` (not with `--placeholder`). A file whose parameters cannot be read is still exported, with a warning on stderr. - `src/ifc/from_decoded.rs`, `tests/fuzz_regressions.rs`, `tests/ifc_synthetic_structural.rs`: the new field in `IfcModel` literals. - Tests: `tests/revit_property_sets.rs` (`nordic_office_fire_exit_is_revits_in_identity_data`, `re1_mep_flows_pressures_powers_and_voltages_are_in_si_units`, which covers currents too), listed in `tools/ci/test-targets.txt` and `tests/integration/main.rs`. It reuses `tests/element_parameters.rs`' IFC value reader, now `pub(crate)`. - Probe: `examples/probe_re210_revit_property_sets.rs`. - Scorer: `tools/re/revit_property_sets_vs_ifc.py`, for an export made with the option against Revit's export with "Export Revit property sets". It compares lengths, areas, volumes and angles after each file's units, and numbers within rvt-rs's rounding to six decimals. - Report: `reports/element-framing/RE-210-revit-property-sets.md`. - Docs: - `README.md` (summary, a reads-table row, the parameters gap); - `docs/status.md` (a dated RE-210 entry); - `docs/supported-profile.md`; - `docs/support-matrix.json` (`ifc-revit-property-sets`, partial); - `CHANGELOG.md`; - a dated addendum in `docs/rvt-moat-break-reconnaissance.md`. The commits run feat → test → research → docs. ## 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) - `cargo fmt --all -- --check` passes. - `cargo clippy --workspace --all-targets --all-features -- -D warnings` passes. - `cargo doc -p rvt --no-deps` passes with `RUSTDOCFLAGS='-D warnings'`. - `cargo +1.87 check --profile ci --all-targets` (the MSRV job) passes. - `RUSTFLAGS='-D warnings -D unnameable_types' cargo check --lib --bins` (CI's check that the default features hand out no research type) passes. - `tools/ci/verify-real-files.sh --profile ci --no-fail-fast` passes 252 of 252. It ran with `RVT_SAMPLES_DIR` (phi-ag's Autodesk families), `RVT_PROJECT_CORPUS_DIR` (magnetar `fd755e1` with RE1 and `r2025/`) and `RVT_NORDIC_LCA_DIR` set, so both new tests ran rather than skipped. - [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 - The command is `rvt-ifc MODEL.rvt -o ours.ifc --revit-property-sets`. The probe `probe_re210_revit_property_sets MODEL.rvt` prints what it adds, per set, and what it leaves out, by reason. - **Against Revit's own sets.** Autodesk's Snowdon Towers Sample HVAC, Site and Architectural, 2025 edition (sha256 `a1756cfd…31bfe`, `43140cd8…c1ff8`, `8ac90a85…0d334`), exported by Revit 2025.4 to IFC4X3 with "Export Revit property sets" ticked. The files are Autodesk's; they were measured locally and are not committed, as in `reports/validation/held-out-snowdon-mep-2026-09-27.md`. Command: `python tools/re/revit_property_sets_vs_ifc.py ours.ifc REVIT.ifc`. | level | sets | written by rvt-rs | equal to Revit's | Revit's, not written by rvt-rs | |---|---|---:|---:|---:| | element | Dimensions, Mechanical - Flow, Other | 14,445 | 14,445 | 26,771 | | element | Constraints, Graphics, Identity Data, Insulation, Lining, Mechanical, Phasing | 0 | — | 45,181 | | type object | Constraints, Dimensions, Electrical - Loads, Electrical Engineering, Identity Data, Mechanical, Mechanical - Flow, Model Properties, Other, Text | 14,461 | 14,461 | 7,955 | | | **total** | **28,906** | **28,906** | **79,907** | - HVAC, in the table. The counts are per element: a type object's property counts once for each element of the type. They include the Category, Family and Type values rvt-rs already wrote in `Other`. The option itself adds 5,772 properties on 1,469 elements and 17 type objects (the probe). - No property is written in a set where Revit's export lacks it, and none differs. So the group labels, the set each parameter lands in, the split between element and type object, and the values are Revit's on this model. - Two scorer fixes came first. Revit's export declares degrees, so angles are compared after each file's angle unit. rvt-rs writes six decimals, so numbers are compared within that rounding. Before them, 4,281 values counted as differing, all for those two reasons (`measure/` in the package). - The model also showed what was left out: 1,055 air flows, pressures, powers and voltages, and the group Electrical Engineering. They are now written, and all equal Revit's. - Revit's 79,907 more are built-in parameters, such as System Name, Phase Created, Size, Flow, the elevations, Family and Type, Mark and OmniClass, and two family parameters (`OffsetWidth`, `OffsetHeight`, 43 each) that are not among those rvt-rs reads on those duct transitions. - rvt-rs exports 2,596 of Revit's 2,627 elements; the other 31 are flex ducts, which rvt-rs does not export. - **Site** (walls, floors, railings, generic models): 718 of 718 equal, counted the same way; the parameters add 8 properties on 2 type objects. Revit writes 948 more, all built-ins (Phase Created, Area, Type Mark, constraints, construction, analytical properties). - Revit writes one floor as five `IfcSlab`s of one Tag, so the scorer now takes all products of a Tag together. Before that, 5 of that floor's properties counted as not written by Revit. - The Site export writes `(Type)` sets on 12 sites, 3 storeys and 5 openings, which confirms the suffix in a Revit 2025 English export. rvt-rs exports none of those as elements. - **Architectural** (doors, windows, stairs, curtain walls, furniture, lighting): 58,346 of 58,733 equal, counted the same way; the option adds 5,885 properties on 1,068 elements and 169 type objects. Revit writes 118,432 more. - 369 are in sets Revit names `Other(Type)`, `Identity Data(Type)` and so on, on 13 of the 1,286 type objects with its sets: 5 of 8 curtain wall types, 7 generic model type objects and 1 wall type. revit-ifc decides the suffix when an element's sets are made, by whether the type's type object exists yet (`ElementTypeToHandleCache.IsRegistered`), and keeps those sets for the type object. Which types are hit follows from the order of Revit's export, which the file does not record, so rvt-rs writes the group's name. 66 of the 369 are this slice's; 303 are the Category, Family Name and Type Name written before. - 18 are the type Category of curtain panels of a basic wall type: Revit exports them as `IfcPlate`s whose type says `Walls`, rvt-rs as curtain walls whose type took the panel's `Curtain Panels`. That value was written before this change. - The model showed 337 values left out, all now written and equal to Revit's: the groups Photometrics and Plumbing (the latter with 10 piping pressures), 42 currents, and 198 family type values. A family type is `<family> : <type>`, except the 34 whose family and type have the same name, written by the type's name (`Muntin Pattern_2x2`). - Of Revit's 118,432 more, 186 are parameters rvt-rs names: 66 written under the group's name as above, 117 `Family Thumbnail` (the name of the type's preview image, which rvt-rs does not name) and 3 family types rvt-rs does not name. The rest are built-ins. - **Against the local exports' common sets.** Revit's other exports at hand were made with the common property sets only. Where one also writes a property of the same name on the same element (by Tag, in any set), the values were compared: | model (licence) | properties added (per element, with its type object's) | same name in Revit's export | equal | |---|---:|---:|---:| | BIM4LCA office, as built (VTT, CC BY-SA 4.0) | 24,366 | 498 | 498 | | R2025 model 12 (puzzbobb, Apache-2.0, #356), RE1 Architecture, Core Interior, BIM4LCA housing on terrain | 1,979 | 0 | — | - The 498 are the Yes/No `FireExit` of 266 doors and 232 windows: rvt-rs writes it in `Identity Data` and Revit's export in `Pset_DoorCommon` and `Pset_WindowCommon`, both as `IfcBoolean`. `tests/revit_property_sets.rs` asserts them, and fails, 498 of 498, when the sets are not attached. - Every value written is one of RE-207's, which equal Revit's wherever its exports show them (#887: 7,606 of 7,606 on the office as built). - What is written, over 15 models (R2025 12 to 17, the four RE1 models, Core Interior, the BIM4LCA housing and office ×2): 32,812 properties on 4,995 elements and 283 type objects. Of the named parameters left out, 9,920 are empty texts and 2,425 ElementIds of −1, which Revit leaves out too; 324 are in the IFC group; 408 are ElementIds rvt-rs cannot name; 62 are reals of other specs (electrical frequency, demand factor and luminous intensity, HVAC temperature, currency). - The RE1 MEP models' 56 flows, pressures, powers, voltages and currents have no Revit export with these sets. `tests/revit_property_sets.rs` checks that each unit is declared where its values are written and that every voltage is nominal (120, 208 or 240 V). With the units not declared it fails: "RE1-Electrical: 17 values of IFCPOWERMEASURE, no POWERUNIT declared". - IfcOpenShell 0.9.0's validator finds no issue in the exports of R2025 model 12, RE1 Architecture and the housing on terrain made with the option, nor in RE1 Mechanical's and RE1 Electrical's, which between them declare all five new units. - **What is not measured:** no Snowdon model has an element that rvt-rs exports whose type lacks a type object. The RE1 MEP models' currents and R2025 models 12 to 17's family type values are written as on Snowdon Architectural, but have no Revit export with these sets. - One rule was checked against a public Revit export with Revit's property sets: web-ifc's test file `ISSUE_159_kleine_Wohnung_R22.ifc` (German Revit 2022) names a type's sets on its elements `ID-Daten(Type)`, `Sonstige(Type)`, …, so the `(Type)` suffix is not translated. - [x] If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR - Without the option the exporter writes the same file as #887's head (`f4e3c0e`), apart from its timestamps, on all 17 models measured: R2025 12 to 17, the four RE1 models, Core Interior, the three BIM4LCA models and Snowdon HVAC, Site and Architectural. The witness tests in `verify-real-files.sh` pass. - [x] If this is a performance change: reran `tools/bench.sh` and attached the before / after - This is not a performance change, and without the option nothing is read. With it, reading the parameters costs time. `tools/bench.sh` times only family files, so `rvt-ifc` was timed with hyperfine (`-N --warmup 1 --runs 3`): | model | `rvt-ifc` (s) | with `--revit-property-sets` (s) | ratio | |---|---:|---:|---:| | Core Interior | 6.785 ± 0.027 | 7.809 ± 0.015 | 1.15 | | BIM4LCA office, as built | 24.262 ± 0.027 | 34.036 ± 0.206 | 1.40 | ## 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 - The README's summary, its reads table (a new "Revit's own property sets" row) and its parameters gap row are updated, as are `docs/status.md`, `docs/supported-profile.md`, `docs/support-matrix.json` (`ifc-revit-property-sets`, partial) and `CHANGELOG.md`. - Each gives the Snowdon HVAC measurement against Revit's own sets, counted per element, and says the file is measured locally and not committed; all but `docs/supported-profile.md` give Architectural's too. The report adds Site. - [x] If a limitation was resolved, the "Known limitations" / "What works today" section in the relevant docs is updated - The README's parameters gap row now says `--revit-property-sets` writes the parameters to IFC, and what it does not write. - [x] If a new limitation was introduced, it is documented in the PR body and in-code - With the option, `rvt-ifc` is 1.15 to 1.40 times slower on the models timed (report §8). - Not written: built-in parameters (no name, #255), enumerations, other specs, ElementIds naming what rvt-rs cannot name, and `(Type)` names on type objects Revit exports. The sets keep rvt-rs's own GlobalIds, not Revit's hashed ones (report §7). - These are in `src/ifc/revit_property_sets.rs`' module doc and the report. - [x] Commit messages describe WHAT changed and WHY, not "fix things" or "updates" - The four commits are Conventional Commits, each naming #35 and RE-210. - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files - The test and probe take their paths from `RVT_NORDIC_LCA_DIR` or arguments. - The commits are authored and committed with GitHub's noreply address, and signed. - [x] If this is a reverse-engineering finding: a reproducible probe under `examples/` and a dated addendum to `docs/rvt-moat-break-reconnaissance.md` are included - The probe is `examples/probe_re210_revit_property_sets.rs`, and the report is `reports/element-framing/RE-210-revit-property-sets.md`. - The addendum is dated 2026-10-22. ## 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`) - The exporter's rules come from revit-ifc (LGPL), CLEANROOM.md source 5: read and cited by class and method, no code copied. The group labels are Revit's English UI labels. - [x] Any new test fixtures use synthetic values (`testuser`, `111111`, `FY-20XX`, etc.) and contain no real-world PII - There are no new fixtures. The test reads the BIM4LCA office (CC BY-SA 4.0, fetched by CI). ## Breaking changes BREAKING CHANGE: `IfcModel` gains a public field, `type_property_sets`. Code that builds an `IfcModel` with a struct literal needs `type_property_sets: Default::default()`, as five sites in this repository did. It deserialises as empty when absent. `PropertyValue` gains five variants (`VolumetricFlowRate`, `Pressure`, `Power`, `ElectricVoltage`, `ElectricCurrent`); since #903 made it `non_exhaustive`, that is not breaking. The option is new and off by default; without it the IFC output is unchanged. ## Screenshots or output samples R2025 model 12, `rvt-ifc --revit-property-sets`, window 12538 (`Window-Fixed:24" x 36"`), its Revit sets and its type object's: ```text window Other: Category=IfcLabel('Windows'), Family=..., Type Id=IfcLabel('12499'), Frame Extension=IfcLengthMeasure(0.00635) window Construction: Window Inset=IfcLengthMeasure(0.0) window Dimensions: Interior Wall Closure=IfcLengthMeasure(0.05715), Exterior Wall Closure=IfcLengthMeasure(0.03175) window Graphics: Exterior Trim Visibility=IfcBoolean(True), Interior Trim Visibility=IfcBoolean(True) type object IfcWindowType Window-Fixed:24" x 36" type Other: Category=IfcLabel('Windows'), Family Name=IfcText('Window-Fixed'), Default Sill Height=IfcLengthMeasure(0.9144) type Identity Data: Type Name=IfcText('24" x 36"'), Fire Rating=IfcText('0.5h') type Graphics: Muntin Visibility=IfcBoolean(True) type Construction: Muntin Pattern=IfcLabel('Muntin Pattern_2x2'), Exterior Trim=IfcLabel('Trim-Window-Exterior-Flat : with Sill'), Interior Trim=IfcLabel('Trim-Window-Interior-Flat : Picture Frame') type Materials and Finishes: Interior Frame Material=IfcLabel('Wood - Stained'), Exterior Frame Material=IfcLabel('Clad - White'), Glass Panel Material=IfcLabel('Glass'), Exterior Trim Material=IfcLabel('Clad - White'), Interior Trim Material=IfcLabel('Wood - Stained') ``` `rvt-ifc` reports on stderr: ```text rvt-ifc: Revit property sets on 13 elements and 5 types, and type sets on 0 elements of types with no type object (87 properties, 0 named parameters left out) ``` ## Related issues - Refs #35: the second slice (IFC). Built-in parameter names, enumerations' display texts, a family's built-in slots, system-family type parameters, Revit's set GlobalIds and the viewer's Parameters row remain. - Depends on #887 (slice 1, RE-207). Refs #255 (the built-in catalog), RE-194 (parameters named for a property set's property), #356 (the R2025 models), and W7 of `docs/release-1.0-criteria.md`. --------- Co-authored-by: Griffin Long <[email protected]>
…already ships (#938) (#961) ## Summary `changelog.d/added/revit-property-sets.md` (#934) repeated #887's RE-207 entry, which v0.7.0 already ships in its `Added` section, so 0.8.0's `assemble` would have listed it twice. The repeated item is removed, and `changelog.py check` now fails on any fragment item a released section of `CHANGELOG.md` already has. ## Motivation #934's entry moved from `CHANGELOG.md` into a fragment while #887 was still unreleased, and the fragment took #887's item with it. Nothing caught it: `check` only looked at a fragment's place and first line. ## Changes - `changelog.d/added/revit-property-sets.md`: only #934's own item (RE-210). - `tools/release/changelog.py`: `check` compares each fragment item, whitespace collapsed, with every item below `[Unreleased]` and names the one already released. - `changelog.d/README.md`: says so. ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [x] `python3 tools/release/changelog.py check` on `main`'s fragments: fails, naming `revit-property-sets.md` and the RE-207 item. With the item removed: passes, 10 fragments. - [x] `assemble` dry run on a copy of the tree: `[Unreleased]` takes 10 fragments, and `CHANGELOG.md` holds the RE-207 item once (in 0.7.0) and the property-sets item once. - [ ] CI's `changelog` step. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] No user-visible change, so no fragment - [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 ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content - [x] No fixtures ## Breaking changes None. ## Screenshots or output samples ``` ::error::changelog.d/added/revit-property-sets.md: already released: - **`rvt-elements` and Python's `decoded_elements()` list each element's saved parameters ... ``` ## Related issues Refs #938, #934, #887
… parameters (#35) (RE-256) (#1065) ## Summary A wall, floor, ceiling or roof now lists its type's saved parameters after its own in `rvt-elements` and Python's `decoded_elements()`, as a family instance already did (RE-256). Each one's native record names its type in a single member (`m_WallAttributesId`, `m_floorAttributesId`, `m_ceilingAttributesId`, `m_roofAttributesId`). On Snowdon Towers, every one of these type values that Revit's export writes is Revit's: 4,297 of 4,314. The 17 left are stair landings, which name no type this way. ## Motivation #35 (M4-07) asks for type-vs-instance precedence, and my RE-207 comment of 2026-10-22 left "the type parameters of walls and floors" for a later slice. RE-207 follows only `FamilyInstance.m_masterSymbolId`, so a system-family element listed none of its type's values: on Snowdon, 1 of the 1,380 walls, floors, ceilings and roofs Revit's export types had any (an in-place wall, which is a family instance). This also gives the type's built-in values, such as Type Mark and Assembly Code, under their ids, which naming the built-in parameters (#255) will build on. ## Changes - `src/native_element_parameters.rs`: a table `SYSTEM_TYPE_LINKS` of (element record class, member naming the type, type record class): `SWall`/`ArcWall` `m_WallAttributesId`, `FaceWall` `m_typeId` (`BasicWallType`), `Floor` `m_floorAttributesId` (`FloorAttributes`), `Ceiling` `m_ceilingAttributesId` (`CompoundCeilingType`), `ProfileRoof`/`Roof` `m_roofAttributesId` (`RoofAttributes`). `read` also reads the type classes' records, and follows the member as it follows `m_masterSymbolId`. The type's values come after the element's own, at level `type`, and a parameter the element holds is not repeated. - `src/native_metadata.rs`: a `CompoundCeilingType`'s and a `RoofAttributes`'s `SymbolInfo.m_name` is read as its Type Name (-1002001), as a `BasicWallType`'s and a `FloorAttributes`' already is. - Test: `tests/element_parameters.rs` (`r2025_walls_take_their_wall_types_name`): each wall of R2025 models 01, 08 and 18 lists its type's name at level `type`, from the type record whose ElementId is the `Tag` of the `IfcWallType` Revit's export relates the wall to. - Probe: `examples/probe_35_system_type_links.rs`. Scorer: `tools/re/system_type_parameters_vs_ifc.py`. - Report: `reports/element-framing/RE-256-system-family-type-parameters.md`. - Docs: the README's element-parameters row, a dated RE-256 entry in `docs/status.md`, a dated addendum in `docs/rvt-moat-break-reconnaissance.md`, and `changelog.d/added/system-family-type-parameters.md`. The commits run feat → test → research → docs. ## 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) - `cargo fmt --all -- --check` passes. - `cargo clippy --workspace --all-targets --all-features -- -D warnings` passes. - `cargo doc -p rvt --no-deps` passes with `RUSTDOCFLAGS='-D warnings'`. - `cargo +1.87 check --profile ci --all-targets` (the MSRV job) passes. - `RUSTFLAGS='-D warnings -D unnameable_types' cargo check --lib --bins` passes. - `tools/ci/verify-real-files.sh --profile ci --no-fail-fast` passes 264 of 264. It ran with `RVT_SAMPLES_DIR` (phi-ag `d2eb1f3`'s Autodesk families), `RVT_PROJECT_CORPUS_DIR` (magnetar `fd755e1` with RE1 and `r2025/`) and `RVT_NORDIC_LCA_DIR` (the BIM4LCA office as built and at permit and the housing on terrain) set, so the new test ran rather than skipped. - [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 - `rvt-elements --no-typed MODEL.rvt` on `main` and on this branch, then `tools/re/system_type_parameters_vs_ifc.py`. It compares each property Revit's export writes in its own sets on the type object of a wall, slab, covering or roof with the element's type-level values. The oracle is Snowdon Towers Architectural (Revit 2025) with my export made with "Export Revit property sets", the RE-210 evidence. That export can't be redistributed, so this part is local only, as RE-210's was: | property | `main` | this branch | parameter | |---|---:|---:|---| | `Identity Data.Type Name` | 1 | 1,363 of 1,380 | -1002001 | | `Identity Data.Assembly Code` | 0 | 1,362 of 1,362 | -1002500 | | `Identity Data.Type Mark` | 0 | 889 of 889 | -1001405 | | `Identity Data.Fire Rating` (walls) | 0 | 683 of 683 | -1001206 | | `Materials and Finishes.Parapet Cap Material` | 1 | 1 of 1 | 1996136 (project) | - Revit's other type properties are not saved values of the type: `Width` is the layers' sum, `Function` and the wrapping settings are written as labels, `Assembly Description` is looked up from the code, and the analytical properties come from the materials. Two coincidences are not counted: a slab type's `Coarse Scale Fill Color` 0 equals its Function 0, and two wall types' names equal their material's. - On every model, `rvt-elements`' output differs from `main`'s only by the added type-level values. No other field of any element changes, and no element is added or lost: Snowdon Architectural; the BIM4LCA office as built and at permit and the housing on terrain (VTT, CC BY-SA 4.0); and the 23 R2025 models (puzzbobb, Apache-2.0, #356). The counts are in the report's §4. - `rvt-ifc` writes the same file as `main` on all of them, apart from the timestamp. With `--revit-property-sets` it does too, except on the two office files, where 5 roof types also carry their project parameter `U_value` (1.0) in `Identity Data`: the type's record is read now, and RE-210 writes a type's named parameters. The office was exported without Revit's property sets, so whether Revit writes it there isn't measured. - [x] If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR - The default export is unchanged on every model above, Core Interior included in the real-file suite's witness tests. - [x] If this is a performance change: reran `tools/bench.sh` and attached the before / after - Not a performance change. The type records are read in the same pass over the file as the family types. ## 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` - `changelog.d/added/system-family-type-parameters.md`; `tools/release/changelog.py check` passes. - [x] If a limitation was resolved, the "Known limitations" / "What works today" section in the relevant docs is updated - The README row now names walls', floors', ceilings' and roofs' type parameters. - [x] If a new limitation was introduced, it is documented in the PR body and in-code - No new limitation. Still open: stair landings name no type through their own record; built-in parameters have no name (#255); a type's computed values (a wall type's `Width`, its `Function` label) are not saved values and are not listed. - [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 - The test, probe and scorer take their paths from `RVT_PROJECT_CORPUS_DIR` or arguments. The commits are authored and committed with GitHub's noreply address, and signed. - [x] If this is a reverse-engineering finding: a reproducible probe under `examples/` and a dated addendum to `docs/rvt-moat-break-reconnaissance.md` are included ## 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. I declare that this format finding comes only from public byte observations of the reference models and Revit's own exports of them (CLEANROOM.md source 1); no Autodesk or ODA SDK source, disassembly or NDA material was used. ## Breaking changes None. `rvt-elements` and Python list more entries, all at level `type`; no entry changes. ## Screenshots or output samples An R2025 wall (01_Walls, 2787): ```json {"group_type_id": null, "kind": "built_in", "level": "type", "name": null, "parameter_id": -1002001, "source_class": "BasicWallType", "source_element_id": 1982, "storage_type": "String", "value": "Wall 1", ...} ``` ## Related issues Refs #35. Follows #887 (RE-207). --------- Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: DrunkOnJava <[email protected]>
Summary
rvt-elementsand Python'sdecoded_elements()now list each element's saved parameters on Revit 2023 to 2027 files. Each one is named by the file's own definition, with storage type, spec, group, value and SI value. A family instance's type parameters come after its own (RE-207). On the BIM4LCA office, every parameter named<set>.<property>holds the value Revit's export writes there: 7,606 of 7,606 as built and 7,592 of 7,592 at building permit. This is the first slice of #35. Nothing new is written to IFC.Motivation
#35 (M4-07) asks for an element's instance and type parameter values, with type-against-instance precedence, exposed consistently by the CLI and Python. Until now
parametersheld only AProperty* value carriers, empty for every building element ("until host↔parameter joins recover"). The native record path (native_document::extract) already projected each record's saved values and the file's parameter definitions. Nothing joined them to the element, named them, or reached the CLI and Python. This PR does that. IFC property sets and the viewer are left for follow-up PRs. This serves W7 (Properties) ofdocs/release-1.0-criteria.md.m_pParamValueSetDouble/…Int/…AString/…ElementId; the family slots of its ownFamilyParams(FamilyInstance.m_pInstParams,FamilySymbol.m_pParams) a definition resolves; the native fields read as built-in parametersm_caption:ParamElemFamilyfamily,ParamElemExternalshared,ParamElemGlobalglobal, others project. Built-ins keep their idParamDefFamType, newly read as the ElementId in the slot'sm_elemId, a family type of itsm_categoryIdm_masterSymbolId's values for parameters the instance does not hold, except the family's instance parameters (m_instanceParam), whose slot on the type is a defaultChanges
src/native_element_parameters.rs(new):read(file, ids)gives each element'sElementParameters and its type's;ElementParameters::json_entriesis the one list both the CLI and Python print.src/native_parameter_definitions.rs:ParamDefFamTypehas storage typeElementId.src/bin/rvt_elements.rsandrvt-py/src/lib.rs(decoded_elements):parametersadds the saved parameters after the AProperty* entries. A file whose parameters cannot be read keeps its elements: the CLI prints a warning on stderr and Python raises aUserWarning.docs/schemas/decoded-elements.schema.json(savedParameter) andpython/rvt/__init__.pyi: the entry's shape.src/lib.rs: the new module.Test, in
tests/element_parameters.rs:nordic_parameters_named_for_a_property_hold_revits_values;r2025_windows_take_their_types_fire_rating.The test is listed in
tools/ci/test-targets.txtandtests/integration/main.rs.tests/element_names.rssharesdecode_step_string.Probe:
examples/probe_re207_element_parameters.rs.Scorer:
tools/re/element_parameters_vs_ifc.py. It readsrvt-elements' JSON or the probe's output.Report:
reports/element-framing/RE-207-element-parameters.md.Docs:
README.md(summary, the reads table, the parameters gap);docs/status.md(a dated RE-207 entry);docs/support-matrix.json(native-element-parameters, partial);CHANGELOG.md;docs/rvt-moat-break-reconnaissance.md.The commits run feat → test → research → docs.
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 (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)cargo fmt --all -- --checkpasses.cargo clippy --workspace --all-targets --all-features -- -D warningspasses.cargo doc -p rvt --no-depspasses withRUSTDOCFLAGS='-D warnings'.cargo +1.87 check --profile ci --all-targets(the MSRV job) passes.tools/ci/verify-real-files.sh --profile ci --no-fail-fastpasses 248 of 248. It ran withRVT_SAMPLES_DIR(phi-ag's Autodesk families),RVT_PROJECT_CORPUS_DIR(magnetarfd755e1with RE1 andr2025/) andRVT_NORDIC_LCA_DIRset, so both new tests ran rather than skipped.maturin develop --release.RevitFile.decoded_elements()gives exactlyrvt-elements'parameterson R2025 model 12 (860 entries) and RE1 Architecture (2,009).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
rvt-elements MODEL.rvt --no-typed > elements.json, thenpython tools/re/element_parameters_vs_ifc.py elements.json REVIT.ifc(IfcOpenShell 0.9.0). The probe's output scores the same:-f nordic=true -f probe=probe_re207_element_parameters -f probe_scorer=element_parameters_vs_ifc.<set>.<property>before anything else (RE-194), so that value is the parameter's.Fire RatingasPset_WindowCommon.FireRatingIsExternal,LoadBearing,IsLaminated,IsTempered,FireExit,HandicapAccessible,FireRating,AcousticRating,NumberOfRiser,NumberOfTreads,RiserHeight,TreadLengthandThermalTransmittance. They are on walls, curtain walls, windows, doors, columns, slabs, stairs, ramps, railings, beams and coverings.level: type, from window type 12499 on model 12).Pset_WindowCommon.FireRating=EI30and an empty typeFire Rating. Revit writesEI30, soFire Ratingis paired only where no parameter named forFireRatingexists.r2025_windows_take_their_types_fire_ratinggives 0 of 3.If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR
rvt-ifconmainand on this branch writes the same file apart from its timestamp (FILE_NAME,IfcOwnerHistory). That holds on Core Interior, RE1 Architecture and Electrical, R2025 model 12, the office as built and the housing on terrain. The witness tests inverify-real-files.shpass.If this is a performance change: reran
tools/bench.shand attached the before / aftertools/bench.shtimes only family files, which this does not reach. Instead,rvt-elements MODEL.rvt --no-typedwas timed with hyperfine (-N --warmup 1 --runs 3),mainatb6086d4against this branch:main(s)extract's fixed cost is 1.3 s. Decoding the 13,776 listed elements' records takes 8.9 s, most of it the 11,605 family instances. The types', materials' and families' records add under 1 s.Audit-honesty checklist
docs/status.mdgains a dated RE-207 entry and a sentence in the summary.docs/support-matrix.jsongainsnative-element-parameters, partial.CHANGELOG.mdis updated.parametersdescription no longer says host elements are empty.rvt-elementsanddecoded_elements()are 1.19 to 1.50 times slower on the models timed. This is in RE-207's report §8.src/native_element_parameters.rs' module doc and the report's §7.RVT_NORDIC_LCA_DIR,RVT_PROJECT_CORPUS_DIRor arguments.examples/and a dated addendum todocs/rvt-moat-break-reconnaissance.mdare includedexamples/probe_re207_element_parameters.rs, and the report isreports/element-framing/RE-207-element-parameters.md.Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)Formats/Latestschema, read by rvt-rs's catalog walker.testuser,111111,FY-20XX, etc.) and contain no real-world PIIBreaking changes
None to the API: one new public module.
rvt-elements' anddecoded_elements()'parameterslists gain entries after the existing ones on Revit 2023 to 2027 files. Their other fields are unchanged on every model compared withmain. The IFC output is unchanged.Screenshots or output samples
R2025 model 12,
rvt-elementson window 12538 (Window-Fixed:24" x 36"). This is its type'sFire Ratingentry, then the name, value and SI value of the rest:{"group_type_id":"autodesk.parameter.group:identityData-1.0.0","kind":"family","level":"type","name":"Fire Rating","parameter_id":12482,"si_unit":null,"si_value":null,"source_class":"FamilySymbol","source_element_id":12499,"spec_type_id":"autodesk.spec:spec.string-2.0.0","storage_type":"String","target_family":null,"target_name":null,"value":"0.5h"}Related issues
docs/release-1.0-criteria.md.