Skip to content

feat(ifc): an element's parameters named for a standard set's property, in that set as IFC4 declares it (RE-194) - #815

Merged
DrunkOnJava merged 20 commits into
mainfrom
feat/pset-parameters
Oct 19, 2026
Merged

DrunkOnJava merged 20 commits into
mainfrom
feat/pset-parameters

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 19, 2026 •

Copy link
Copy Markdown
Owner

Summary

Project and shared parameters named for a property of an IFC4 standard property set, such as Pset_WallCommon.FireRating or Pset_WindowCommon.ThermalTransmittance, are now written in that set on the element. The set must be one IFC4 applies to the entity written, and the value takes the IFC4 type of the property. Revit's exporter reads such a parameter before anything else for the property it names; RE-193 used this for IsExternal alone. Report: RE-194.

Motivation

The BIM4LCA office defines such parameters for fifteen property sets. Revit's export writes their values on thousands of elements: acoustic and fire ratings, load bearing, handicap access, glazing, stair dimensions, occupancy and U-values. rvt-rs wrote none of them except IsExternal.

Changes

  • src/ifc/standard_property_sets.rs (new): IFC4's property sets for these parameters:

    • the common set of each entity rvt-rs writes;
    • Pset_DoorWindowGlazingType;
    • a space's Pset_SpaceCoveringRequirements and Pset_SpaceOccupancyRequirements.

    For each set it gives the entities it applies to (with their subtypes) and its properties of the kinds read from a parameter: boolean, identifier, label, text, count, length, positive length and thermal transmittance. Other IFC4 sets are List every IFC4 property set of the entities rvt-rs writes, so a parameter named for any of them is written #817. The source is buildingSMART's IFC4 definitions, as revit-ifc's IFC4 definitions give them.

  • src/partition_room_parameters.rs: scan_parameter_entries reads each parameter's value by how it is stored (EntryKind), searching only the elements' own data objects:

    • a word after its key (Yes/No or integer);
    • a text after it, where an empty text counts as the latest copy's value;
    • the f64 just before it (a length in feet, a thermal transmittance in W/(m²·K)).

    scan_integer_parameters (RE-193) is now a call to it.

  • src/partition_schema_mvp.rs: attach_named_parameters gives each element a field for every such parameter it carries.

  • src/ifc/export_content.rs:

    • named_parameter_properties reads them. add_named_parameter_sets writes them once the opening conversion is done (RE-84), in each set that applies to the entity each element is finally written as: a door written as its opening alone gets none, one left a door keeps them.
    • A set merges into the element's set of the same name, the parameter's value replacing rvt-rs's own. A stair's IsExternal now joins its Pset_StairCommon instead of a second set of that name.
  • src/ifc/entities.rs, src/ifc/step_writer.rs, src/ifc/scene_graph.rs: PropertyValue::ThermalTransmittance (IfcThermalTransmittanceMeasure). A model with one in any element's property set gets kelvin and W/(m²·K) in its unit assignment, as Revit's export declares them.

  • examples/probe_re194_pset_parameters.rs and tools/re/pset_parameters_vs_ifc.py: the probe and its scorer. The scorer says which entity carries each value Revit writes, and whether the element's own set or its type's holds it. It compares a number as a length or an area only when Revit writes it as one. tools/re/psets_vs_ifc.py now also counts the values only rvt-rs writes, by set and property.

  • tools/ci/measure-reference-models.sh: each reference model's export gets the schema check a sample's gets (attribute counts, and IfcOpenShell's validation up to 120 MB). The office files' thermal transmittance unit is a writer path no sample or committed fixture reaches.

  • .github/workflows/measure.yml: with nordic, the one-runner timing job also times the office files, whose exports otherwise ran only on separate runners.

  • reports/element-framing/RE-194-pset-parameters.md, CHANGELOG, README (new row), docs/status.md, docs/supported-profile.md, and a new ifc-named-pset-parameters entry in docs/support-matrix.json.

Testing

  • Research: runs 39195062180, 39196264528 and 39202359909:

    • where each value is stored;
    • every value Revit's export writes from these parameters is on the element itself, never only on its type;
    • which entities each set goes on.
  • Measure A/B against main (8087e60), runs 39211032010 and, at the last code commit, 39223687653. All property values against Revit's export (psets_vs_ifc.py):

    main this PR
    As built: equal, of Revit's 57,391 14,531 18,374
    As built: different 7 55
    At building permit: equal, of Revit's 57,570 14,501 18,373
    At building permit: different 7 55
    • The 7 values that differed on main are now Revit's: 6 stair RiserHeight and 1 NumberOfRiser.
    • The 55 differences are all OccupancyNumber, with Revit's number as IFC4's IfcCountMeasure, where the export has IfcInteger.
    • Values Revit does not write rise by 536 and 533:
      • IsWired, a stored 0 written as No, on 494 and 490 doors and windows;
      • HandicapAccessible on 42 rooms whose number and name are not read, so the scorer cannot pair them by name. By GlobalId all 42 equal Revit's.
    • Stale values removed: an intermediate commit wrote 80 stale texts at permit, older copies of texts now empty. c0df158 removes them without changing any equal value.
  • Reference models: Core Interior, Einhoven and the RE1 models are byte-identical.

  • Schema: both office exports, the only ones with a thermal transmittance and its unit, pass IfcOpenShell's validation with no finding, and the attribute-count check (run 39219085980, with this PR's Measure step).

  • Samples: run 39223693806 at the last code commit. 60 of 64 hashed exports are identical. Four Revit 2024 samples have 5, 2, 1 and 26 stairs that carry one Pset_StairCommon instead of two, with the same values.

  • Time: on one runner, the office exports take 1.01 times as long as main's and the reference models 1.00 to 1.04 times (run 39226661835; this PR adds the office files to that timing job).

  • The table against buildingSMART's own data: the 21 sets were checked against the IFC4 property set definitions that buildingSMART's validation service checks rule PSE001 against (features/resources/IFC4/pset_definitions.csv in buildingSMART/ifc-gherkin-rules, MIT). Every set's applicable entity agrees, and so does every listed property's name and value type. The exceptions are five properties the CSV gives no type: LoadBearing in Pset_RampCommon, Pset_RoofCommon and Pset_StairCommon, and ThermalTransmittance in Pset_RampCommon and Pset_StairCommon. The table has IfcBoolean and IfcThermalTransmittanceMeasure there, as the other sets do, and the office export writes those LoadBearing values as IfcBoolean.

  • Review: Codex made 8 findings over two passes.

cargo fmt is clean. No unit tests, by the repository's rule.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • New limitations documented (RE-194 §6):
    • what the office export takes from its user-defined property set file (the glazing set on 846 walls, curtain walls and coverings; Pset_SpaceCommon coverings);
    • OccupancyNumber's type and IsWired;
    • values Revit takes from another source on elements that carry no such parameter;
    • angles, areas, ratios and enumerations;
    • type parameters.
  • Reverse-engineering finding: dated report RE-194, with its probe examples/probe_re194_pset_parameters.rs

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content

Contributor declaration (CLEANROOM.md). The change rests on:

  • byte observations of the BIM4LCA office files, compared with Revit's own IFC exports of them (accepted source 1);
  • buildingSMART's IFC4 property set definitions (source 4);
  • reading Autodesk's open-source exporter revit-ifc (source 5): its IFC4 pset definitions, PropertySetEntryMap.CreatePropertyFromElementOrSymbol, the applicability checks in ExporterUtil.GetApplicablePropertySets, and IFCCertifiedEntitiesAndPSets.json.

No revit-ifc code is copied or translated.

Breaking changes

One API addition: PropertyValue gains ThermalTransmittance. The enum is public and exhaustive, so a match on it outside the crate needs an arm, as with the variants IFC-32, B43 and B44 added. scan_integer_parameters keeps its signature and results.

… occurrence or its type carries each value Revit writes (RE-194)
…y, in that set as IFC4 declares it (RE-194)

Revit's exporter reads a project or shared parameter named <property set>.<property> before anything else for that property. Each such parameter of an IFC4 set's property is read from the element's own data object (a Yes/No or integer after its key, a text after it, a number just before it) and written on the element in that set, when the set applies to the entity the element is exported as, with the IFC4 value type; it replaces rvt-rs's own value. A thermal transmittance gets IfcThermalTransmittanceMeasure and the unit assignment its derived unit. A late set merges into the element's set of the same name, so a stair's IsExternal joins its Pset_StairCommon.
…the report, CHANGELOG, README, status, profile and support matrix
… copy's value (RE-194)

An empty text entry read as no entry at all, so the latest partition's copy of an element left the value an older copy holds. On the BIM4LCA office at building permit that wrote a FireRating on 74 columns whose parameter is now empty, which Revit's export does not write. An empty text is now the latest copy's value, and nothing is written for it.
…mple's does, up to 120 MB (RE-194)

The office files' thermal transmittance unit is a writer path no sample and no committed fixture reaches, so their exports were never validated. The schema step is one function for both loops; samples keep their 30 MB limit.
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review October 19, 2026 08:19

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5c7c09e0fd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ifc/step_writer.rs Resolved
Comment thread tools/re/pset_parameters_vs_ifc.py Resolved
Comment thread src/ifc/export_content.rs Resolved
Comment thread src/ifc/export_content.rs Resolved
Comment thread src/partition_schema_mvp.rs Resolved
Comment thread tools/re/pset_parameters_vs_ifc.py Resolved
… written as (RE-194)

The sets were dropped for every door or window whose type draws no geometry, though one becomes an opening only once its host is found and geometry is written; one left a door lost them. They are now written after that conversion, in the sets that apply to the entity written.
…nt's property set (RE-194)

Only the further sets' top-level values were checked, so a thermal transmittance in an element's own set or in a list wrote its value without its unit.
…et and reads numbers by the IFC type Revit writes (RE-194)

A set on both the element and its type placed the type's properties on the element, and any number could match as stored, in metres or in square metres. Each property is now on the element when a set the element carries holds it, and a number is a length or an area only when Revit writes it as one.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6e8448a264

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/ifc/standard_property_sets.rs Resolved
Comment thread examples/probe_re194_pset_parameters.rs Resolved
…s when nordic is set (RE-194)

The office exports ran only on the head and base jobs' separate runners, whose speed alone moves an export's time by up to about 1.7x, so a change to them had no like-for-like time.
… copies disagree, as the export does (RE-194)

It kept the first of a latest partition's entries, so the scorer could credit a reading the export would not use. The scorer reports how many entries are left out that way.
@DrunkOnJava
DrunkOnJava merged commit e20a079 into main Oct 19, 2026
32 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/pset-parameters branch October 19, 2026 09:35
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
…written, from buildingSMART's definitions (#817) (#821)

## Summary

A project or shared parameter named `<set>.<property>` is now written
for a property of any of IFC4's 278 property sets that apply to an
entity, where RE-194 (#815) listed 21 sets by hand. The table is
generated from buildingSMART's own IFC4 property set definitions and
IFC4's entity hierarchy, and CI checks that the committed table is the
generator's output. Closes #817.

## Motivation

RE-194 left this open: a parameter named for an IFC4 set the hand list
did not have, such as `Pset_SpaceFireSafetyRequirements` or
`Pset_ConcreteElementGeneral`, was dropped. Revit's exporter writes a
common set wherever its IFC4 definition applies the set to the element's
entity (revit-ifc, read and cited). A generated table also removes
hand-copying errors from the property kinds.

## Changes

- `tools/ci/gen_standard_property_sets.py` reads
`features/resources/IFC4/pset_definitions.csv` of
buildingSMART/ifc-gherkin-rules (MIT), the list buildingSMART's
validation service checks rule PSE001 against, pinned by commit and
refused at any other sha256, and IFC4's supertypes from IfcOpenShell's
schema. It writes `src/ifc/standard_property_sets/table.rs`.
- Performance-history sets (`PSET_PERFORMANCEDRIVEN`) and sets that
apply to no entity are left out.
- A property the CSV gives no type takes the type every other set gives
a property of that name.
- `src/ifc/standard_property_sets.rs`: the generated table replaces the
hand list. `applies_to` walks the written entity's supertypes, and a set
scoped to a predefined type (`Pset_CoveringCeiling` on
`IfcCovering/CEILING`) applies only with that predefined type.
- `IfcInteger` properties (`NumberOfSections`, `NumberOfCircuits`, ...)
are read the way counts are. A count or integer above 2,147,483,647 is
not written: how Revit stores a negative one is not measured.
- CI: the IfcOpenShell job regenerates the table and diffs it against
the committed one.
- RE-194's report, CHANGELOG, README, supported profile, support matrix.

The first version's 21 sets come out of the generator with the same
entities and properties.

## Testing

Measure A/B against `main` (4dab45d), run
[39239068465](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39239068465),
on 2f1682e (this PR's change before its rebase onto #820 and the fetch
retry, which touches only the generator): reference models, BIM4LCA
office, Autodesk's samples and the R2025 models.

- All 89 hashed exports are byte-identical, and so are the office's and
Core Interior's schema checks. No measured model has a parameter named
for a property of one of the new sets, so nothing they would write
appears.
- The table step in CI regenerates the table from the pinned CSV and
finds it identical. The fetch retry was checked against a simulated
outage: two failures then a success read the file, and three failures
fail the step.

`cargo fmt` is clean, and the committed table is the generator's output
(regenerated with IfcOpenShell 0.9.0.post1, the version
`tools/ci/requirements-ifc.txt` pins). No unit tests, by the
repository's rule.

## 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
- [x] This PR contains no Autodesk proprietary source, decompiled
internals, or NDA'd SDK content

Based on buildingSMART's IFC4 property set definitions (CLEANROOM.md
source 4, MIT) and revit-ifc's property set handling (source 5, read and
cited).

## Breaking changes

None released. `ifc::standard_property_sets` changes shape
(`StandardPropertySet::applies` carries predefined types, `applies_to`
takes the element's predefined type), but the module was added after
v0.5.1 (#815) and has not been released.
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 19, 2026
6 tasks done
DrunkOnJava added a commit that referenced this pull request Oct 19, 2026
## Summary

Prepare v0.6.0. Merging this is not the release: the release is the signed `v0.6.0` tag on the merged commit, after the maintainer's go-ahead. This stays a draft until then.

## Motivation

Since 0.5.1, `main` has:

- **IFC4's own property sets (#822):** the IFC2X3 sets 0.5 took from Revit's exports of the RE1 models are gone or moved to where IFC4 and Revit's own IFC4 export put them (#825, #829, #833), and Measure checks every export's standard property sets against buildingSMART's published IFC4 property set definitions (#826). That is rvt-rs's own check: buildingSMART's Validation Service has not been run on the exports, and quantity sets are not checked.
- **More of what Revit's exporter writes:** parameters named for an IFC4 property set's property (RE-194, #815, #817/#821), each element's `IsExternal` (RE-193, #814), a type's Fire Rating (#830), a door's overall size (#788), Revit 2024 Areas as spaces (#811), port types and electrical flow directions (#832), rooms with no number (#818), pieces' property sets (#819), a room's floor finish in IFC4's set (#820).
- **Older and newer releases, experimentally:** Revit 2015 to 2022 (#742) and 2027 (#740) element records.
- **Fixes:** Export to IFC As on fixtures, stairs, doors, curtain walls and wall sweeps (#796, #804, #812, #813), the latest copy of an element's or type's data (#803, #809), declared ElementIds (#797), diagnostics naming the file, not its folders (#785), the browser viewer's wasm32 string-length panic (#835), and `rvt-inspect`, `rvt-corpus doctor` and the viewer's File Status taking Revit 2015 and 2027 as releases rvt-rs reads (#838).
- **CI and release:** IfcOpenShell 0.9.0.post1 (#795), Rust installed with rustup (#793), a tag publishes nothing until the maintainer approves it (#786, #787), and Measure's office, R2025, paired-probe and per-sample hashing (#790, #799, #805, #806).

## Changes

- **Versions 0.5.1 → 0.6.0** in the nine files that carry them: `rvt`, `rvt-py` and its pin, `rvt-wasm`, the `stream_evidence` pin, `CITATION.cff` (with `date-released`), `.release-please-manifest.json`, `viewer/package.json` and both lockfiles' workspace entries.
- **CHANGELOG:** `[0.6.0] — 2026-10-19`, with an introduction, **Upgrading from 0.5** (the property sets that moved, the public API changes, the releases that now export elements) and the outside contributors credited: puzzbobb (#740, #742, #798), Erry91 (#788) and MadsHolten (#835). The section's headings were already single; its 41 entries are all kept, with #835's and #838's added. Its introduction says the property sets match buildingSMART's published IFC4 definitions by rvt-rs's own check, as does the README's release summary.
- **README:** "Release 0.6.0 and main" names v0.6.0 and summarises what it added. The lines that said `main` reads Revit 2015 to 2022 and 2027 now say experimental (since 0.6.0). The opening and "Not yet" lines name those releases, and so does the capability table. The bullet list of what 0.5.0 added is gone; #832 had put 0.6.0's port types in it. As Codex found, the IFC4 export row, the viewer paragraph and the decoder-work paragraph also said 2022 and earlier export only the scaffold, and the by-input table skipped 2014; they name 2015 to 2022, 2026 and 2027 now.
- **Witnesses:** the IFC header carries the version, 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, the witness replays included.
- Measure on `main` at 23a9d76, which is everything in this release but #835's wasm32-only fix and #838's CLI and viewer version range, neither of which changes an export: run [39273188597](https://github.com/DrunkOnJava/rvt-rs/actions/runs/39273188597). All 89 exports (the reference models, both BIM4LCA office files, Autodesk's 58 sample projects and the 23 R2025 models) have no finding in Measure's IFC4 property set check (#826, against buildingSMART's published definitions), and IfcOpenShell's schema validation finds nothing on any of the 89; none was too large to validate.
- Witnesses: both Core Interior observations and verdicts are taken from this pull request's CI run 39275014518; only `witness_version` and the verdict hashes differ, and CI's replay on b82c0c3 passes.

## 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
- [x] This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content

## Breaking changes

See **Upgrading from 0.5** in the CHANGELOG: standard property sets moved to IFC4's, and five public API changes.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Version and documentation-only release prep with no runtime code changes in this PR.
> 
> **Overview**
> **Bumps the workspace from 0.5.1 to 0.6.0** across `Cargo.toml`, `rvt-py` / `rvt-wasm` / `stream_evidence` pins, lockfiles, `viewer/package.json`, `.release-please-manifest.json`, and `CITATION.cff` (release date 2026-10-19).
> 
> **Documents the release:** adds the `[0.6.0]` section to `CHANGELOG.md` (IFC4 property sets, broader Revit export parity, experimental 2015–2022/2027 element export, wasm viewer fix, and **Upgrading from 0.5** breaking notes). **README** now treats v0.6.0 as the current release—updates the support matrix and “Release 0.6.0 and main” to describe shipped capabilities instead of the old 0.5.1 bullet list.
> 
> No application or library source changes in this diff; it packages and narrates work already on `main`.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit c8826b82982270fd4f47b8da656f2e3e6021c76b. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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.

1 participant