Repository navigation
feat(ifc)!: rvt-ifc --revit-property-sets writes Revit's own property sets (#35) (RE-210) - #934
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.
# 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.
# Conflicts: # README.md
…ts beside their anyOf, so the schema check reads no new type (DrunkOnJava#35)
… sets (DrunkOnJava#35) (RE-210) With "Export Revit property sets", Revit's exporter writes an element's named parameters in one set per parameter group, named for the group, and its type's in such sets on its type object, or on its elements with "(Type)" added where it has none (revit-ifc Release_25.x.x: ParameterUtil.CacheParametersForElement, PropertyUtil.CreateInternalRevitPropertySets, CreateRealPropertyByType; CLEANROOM.md source 5, read, not copied). The new opt-in --revit-property-sets does the same with RE-207's named parameters: instance ones into the element's sets, merged with the Other, Identity Data and Phasing sets already written, the type's into IfcModel::type_property_sets, which the writer adds to the type object's HasPropertySets. As Revit does, the IFC group is left out and a group keeps one parameter per name with its spaces removed, the one of the lowest parameter id. A Yes/No is a Boolean, an integer with a spec an integer, a non-empty text a text, a length, pipe or duct size, area, volume, angle or number its measure, a material its name, a family type "<family> : <type>" (the type's name alone where both are the same). An air flow, HVAC or piping pressure, apparent or electrical power, electrical potential and current are written as the new PropertyValue kinds VolumetricFlowRate, Pressure, Power, ElectricVoltage and ElectricCurrent, converted from Revit's internal units to m3/s, Pa, W, V and A; the IfcUnitAssignment declares each of those units when a value of it is written, in an element's or a type object's set, as Revit's export does. Built-ins (no name), enumerations and other specs are left out and counted. The group labels are Revit's English labels for the 24 groups the measured models use. The module's attach, Report and labels are stable API; property, which takes research's ElementParameter, is public only with unstable-research. Without the option the export is unchanged. BREAKING CHANGE: IfcModel gains the public field type_property_sets, so a struct literal of IfcModel must name it (or use ..Default::default()).
…DrunkOnJava#35) (RE-210) tests/revit_property_sets.rs exports the BIM4LCA office as built with Revit's own property sets and checks, on every door and window Revit writes Pset_DoorCommon or Pset_WindowCommon.FireExit for, that rvt-rs writes the Yes/No parameter FireExit in the set Identity Data as the same Boolean: 498 of 498 (266 doors, 232 windows). Without the sets attached it fails, 498 of 498. It reuses element_parameters' IFC value reader. It also exports RE1 Electrical, Mechanical and Plumbing with the option and checks that each of the flow, pressure, power, voltage and current units is declared where values of it are written (56 values), and that every voltage is a nominal one (120, 208 or 240 V). Without the units declared it fails on RE1 Electrical's 17 powers.
…sets (DrunkOnJava#35) examples/probe_re210_revit_property_sets.rs prints what the writer adds per set name, on elements and type objects, and the named parameters left out by reason; tools/re/revit_property_sets_vs_ifc.py scores an export made with the option against Revit's export with "Export Revit property sets", angles after each file's angle unit, numbers within rvt-rs's rounding to six decimals, and the products of one Tag (a floor Revit splits into slabs) together. The report gives the rules read in revit-ifc's release branches, what is written on 15 models (32,812 properties), and the measurement against Revit 2025's exports of Autodesk's Snowdon Towers HVAC, Site and Architectural with Revit's own sets (measured locally, not committed): 28,906 of 28,906, 718 of 718 and 58,346 of 58,733 properties written, counted per element, are in the set of the same name with Revit's value, and Revit writes 79,907, 948 and 118,432 more, nearly all built-in parameters. The Site export confirms the "(Type)" suffix in a Revit 2025 English export, on sites, storeys and openings. On Architectural, Revit also gives 13 of the type objects it exports "(Type)" sets, because it asks whether a type has a type object when an element's sets are made (369 values); 18 are curtain panels' type category, written before this change. FireExit on the office is Revit's on 498 of 498 doors and windows.
README (summary, the reads table, the parameters gap), docs/status.md (a dated RE-210 entry and the summary), docs/supported-profile.md, the support matrix (ifc-revit-property-sets, partial), CHANGELOG and a dated addendum in docs/rvt-moat-break-reconnaissance.md.
|
Thank you, this is a thorough slice. Since it is stacked on #887, I'll review its four commits once #887 lands. #887 is armed, and I merged main into it today. After that I'll merge main into this branch, or you can if you get there first: it conflicts with main now, and the #887 commits drop out of the diff once #887 is in. On numbering: RE-210 is yours. I had used it on an unpublished research branch (#824), which is now RE-214. |
|
A heads-up for this branch: changelog entries now go in fragments, |
…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.
|
#887 has landed, so I merged main into this branch. #887 landed squashed, so its commits on this branch conflicted with main in six files. Instead of resolving those one by one, the merge commit's tree is main plus this branch's own four commits ( Review: I read
The maintainer has decided that v0.7.0 is cut from what is queued now, so this slice, being a breaking change, goes in the release after it. I'll arm it once v0.7.0 is tagged, today if CI is green. |
## 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.
|
v0.7.0 is out (release), so this is now armed to land on |
…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
… reported as one, and every PR checks the fuzz targets build (#965) (#967) ## Summary The nightly fuzz run's "crash" (#965) was a build failure: `fuzz_step_writer` builds an `IfcModel` field by field and lacked `type_property_sets`, which #934 added. The target now fills every field it does not set from `IfcModel::default()`. Each nightly target is built in a step of its own, and a run in which nothing crashed but a target failed to build opens a `fuzz-build` issue rather than a `fuzz-crash` one. A new CI job, `fuzz targets build`, checks the fuzz workspace on every PR and gates `CI passed`, so a change that breaks a target is caught before it merges. ## Motivation `fuzz/` is a workspace of its own that no CI job built, so a field added to a type a target constructs broke the nightly run after merge, twice (#236 → #259, #934 → #965). The report then called it a crash, a false red. ## Changes - `fuzz/fuzz_targets/fuzz_step_writer.rs`: `..IfcModel::default()`. - `.github/workflows/fuzz.yml`: a `Build <target>` step before the run; the report job counts the run's `crash-` artifacts (uploaded only when a target's run step fails) and files `fuzz-crash` or `fuzz-build` accordingly. - `.github/workflows/ci.yml`: `fuzz-check` (`cargo +nightly-2026-10-01 check --manifest-path fuzz/Cargo.toml --bins`, the nightly toolchain the fuzz and docs.rs jobs pin), in `CI passed`'s needs. ## Testing Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead. - [ ] `tools/check-local.sh`: CI, including the new `fuzz targets build` job on this PR. - [ ] Fuzz workflow dispatched on this branch for `fuzz_step_writer` (60 s): run [40175530101](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40175530101), in progress. - [x] Both workflow files parse (YAML) and `actionlint` reports nothing new; its one complaint, `uses: $/.github/actions/fetch-corpus`, predates this change and those steps succeed on GitHub. - [x] Witness: no export changes. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR (the workflow headers say what they do) - [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[E0063]: missing field `type_property_sets` in initializer of `IfcModel` --> fuzz_targets/fuzz_step_writer.rs:368:17 ``` ## Related issues Closes #965
## Summary Prepares v0.8.0 (RELEASE.md steps 4 to 8), on the maintainer's go-ahead in chat (2026-10-25: "Cut 0.8.0 after #988"). Scope: `main` at 7483b2b (#988), nothing after it. ## Changes - Version 0.8.0 in `Cargo.toml`, `rvt-py/Cargo.toml` (and its `=0.8.0` pin), `rvt-wasm/Cargo.toml`, `tools/stream_evidence/Cargo.toml`, `viewer/package.json`, `CITATION.cff` (dated 2026-10-25), `.release-please-manifest.json`, `Cargo.lock` and `fuzz/Cargo.lock`. - `CHANGELOG.md`: the 25 fragments assembled (`changelog.py assemble`) into `[0.8.0] — 2026-10-25`, with an introduction and "Upgrading from 0.7" (`ElementId`, `IfcModel::type_property_sets`, `RevitGlobalIds`'s new fields); `[Unreleased]` empty above it. - `README.md`: the release section names 0.8.0 (packed into the crate and the wheel). - `rvt-py/README.md` (the wheel's README): saved parameters reach IFC with `--revit-property-sets`. - The Core Interior witness observations and verdicts follow from this pull request's CI run (the IFC header carries the version), in a second commit. ## 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`: CI run 40223501543 green on e8e450d (`CI passed`). - [x] Witness files refreshed from run 40223501543's `octetproof-core-interior` artifact (5c701eb): only `witness_version` (0.7.0 to 0.8.0) and the two verdict hashes differ; the IfcOpenShell and IFClite observations are unchanged. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] A user-visible change has its entry in `CHANGELOG.md` (the release assembles the fragments) - [x] Resolved limitation updated (support matrix, status): no change in this PR - [x] Limitation documented: no change - [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`) - [x] Any new test fixtures use synthetic values: none added ## Breaking changes The release carries #923, #934 and #970's, listed under "Upgrading from 0.7".
|
This shipped in v0.8.0 today: |
Summary
rvt-ifc --revit-property-setswrites 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,FireExitwritten inIdentity Dataequals Revit'sPset_DoorCommonandPset_WindowCommon.FireExiton 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-elementsand 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) ofdocs/release-1.0-criteria.md.The rules are read in revit-ifc's
Release_25.x.xbranch (CLEANROOM.md source 5: read and cited, no code copied):ParameterUtil.CacheParametersForElement: visible, named, by parameter id; the IFC group left out; per group one parameter per name with its spaces removed, the firstPropertyUtil.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 tooIfcModel::type_property_sets; a type object's sets always under the group's nameLabelUtils.GetLabelForGroupGROUP_LABELS)IfcBoolean; an integer with a specIfcInteger, 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<family> : <type>(the type's name alone where both are the same, as measured); enumerations and other specs left out and countedChanges
src/ifc/revit_property_sets.rs(new):attach(file, model)reads the elements' parameters withresearch::native_element_parameters::readand adds the sets;group_labelgives a parameter's set.propertygives its property, and since it takes research'sElementParameterit is public only withunstable-research;attach,Report,group_label,GROUP_LABELSandTYPE_SUFFIXare stable.src/ifc/mod.rs: the module, andIfcModel::type_property_sets(#[serde(default)]), a type object's further sets by type id.src/ifc/entities.rs:PropertyValuegainsVolumetricFlowRate,Pressure,Power,ElectricVoltageandElectricCurrent, in SI units, written asIfcVolumetricFlowRateMeasure,IfcPressureMeasure,IfcPowerMeasure,IfcElectricVoltageMeasureandIfcElectricCurrentMeasure.src/ifc/scene_graph.rsformats them.src/ifc/step_writer.rs: a type object's sets taketype_property_setstoo, merged by set name. TheIfcUnitAssignmentdeclares 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 inIfcModelliterals.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 intools/ci/test-targets.txtandtests/integration/main.rs. It reusestests/element_parameters.rs' IFC value reader, nowpub(crate).examples/probe_re210_revit_property_sets.rs.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.reports/element-framing/RE-210-revit-property-sets.md.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;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.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-fastpasses 252 of 252. 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.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-ifc MODEL.rvt -o ours.ifc --revit-property-sets. The probeprobe_re210_revit_property_sets MODEL.rvtprints what it adds, per set, and what it leaves out, by reason.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 inreports/validation/held-out-snowdon-mep-2026-09-27.md. Command:python tools/re/revit_property_sets_vs_ifc.py ours.ifc REVIT.ifc.Other. The option itself adds 5,772 properties on 1,469 elements and 17 type objects (the probe).measure/in the package).OffsetWidth,OffsetHeight, 43 each) that are not among those rvt-rs reads on those duct transitions.IfcSlabs 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.(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.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.IfcPlates whose type saysWalls, rvt-rs as curtain walls whose type took the panel'sCurtain Panels. That value was written before this change.<family> : <type>, except the 34 whose family and type have the same name, written by the type's name (Muntin Pattern_2x2).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.FireExitof 266 doors and 232 windows: rvt-rs writes it inIdentity Dataand Revit's export inPset_DoorCommonandPset_WindowCommon, both asIfcBoolean.tests/revit_property_sets.rsasserts them, and fails, 498 of 498, when the sets are not attached.tests/revit_property_sets.rschecks 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".ISSUE_159_kleine_Wohnung_R22.ifc(German Revit 2022) names a type's sets on its elementsID-Daten(Type),Sonstige(Type), …, so the(Type)suffix is not translated.If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR
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 inverify-real-files.shpass.If this is a performance change: reran
tools/bench.shand attached the before / aftertools/bench.shtimes only family files, sorvt-ifcwas timed with hyperfine (-N --warmup 1 --runs 3):rvt-ifc(s)--revit-property-sets(s)Audit-honesty checklist
docs/status.md,docs/supported-profile.md,docs/support-matrix.json(ifc-revit-property-sets, partial) andCHANGELOG.md.docs/supported-profile.mdgive Architectural's too. The report adds Site.--revit-property-setswrites the parameters to IFC, and what it does not write.rvt-ifcis 1.15 to 1.40 times slower on the models timed (report §8).(Type)names on type objects Revit exports. The sets keep rvt-rs's own GlobalIds, not Revit's hashed ones (report §7).src/ifc/revit_property_sets.rs' module doc and the report.RVT_NORDIC_LCA_DIRor arguments.examples/and a dated addendum todocs/rvt-moat-break-reconnaissance.mdare includedexamples/probe_re210_revit_property_sets.rs, and the report isreports/element-framing/RE-210-revit-property-sets.md.Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)testuser,111111,FY-20XX, etc.) and contain no real-world PIIBreaking changes
BREAKING CHANGE:
IfcModelgains a public field,type_property_sets. Code that builds anIfcModelwith a struct literal needstype_property_sets: Default::default(), as five sites in this repository did. It deserialises as empty when absent.PropertyValuegains five variants (VolumetricFlowRate,Pressure,Power,ElectricVoltage,ElectricCurrent); since #903 made itnon_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:rvt-ifcreports on stderr:Related issues
docs/release-1.0-criteria.md.