Skip to content

feat(ifc): a window type's FireRating is read from the family parameter named Fire Rating (#1507) - #1730

Closed
DrunkOnJava wants to merge 2 commits into
mainfrom
pilot/10-window-fire-rating
Closed

DrunkOnJava wants to merge 2 commits into
mainfrom
pilot/10-window-fire-rating

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

Pset_WindowCommon.FireRating is missing from rvt-rs's export on every model whose Revit export writes one, because the R2025 models' window types hold their 0.5h as family type table entries under the family-parameter ids 12482 and 12220, not under the built-in -1001206 that RE-354's table scan reads. This change finds those ids by the definitions' name instead of by the two ids, and reads their entries with the rule RE-354 already uses.

  • src/research/partition_type_parameters.rs: scan_partition's table-form loop now runs over TABLE_TEXT_PARAMETERS chained with the declared family parameters named FIRE_RATING_PARAMETER_NAME ("Fire Rating"), found by family_parameters_named (RE-93's reader, the one type_window_openings uses for Default Sill Height and RE-187 for Width/Height). Nothing else changes: an entry is still a type's only where no value block mark of any id lies between the type's mark and the entry, a Family element's block is still no type's value (RE-395), and copies that disagree, across partitions or with the id-first form, still give the type neither and are still counted in the export diagnostics.
  • The value then goes where RE-77's and RE-354's already go, with no writer change: onto each window of the type as the type parameter Fire Rating, which an element's own Pset_WindowCommon.FireRating replaces, and onto the type object's common set (record_type_common, named_parameter_properties).

Evidence

What I read:

  • W7: windows' Pset_WindowCommon.FireRating is read from family-parameter table entries (R2025 models 12 to 17, held-out models) #1507 and RE-354 section 6: the residual is Pset_WindowCommon.FireRating, 4 missing on each of r2025-12 to r2025-17, 13 on each of the held-out 2024 to 2027 models, 11 on each of the held-out office 2024 to 2027 models, 71 on Snowdon Towers Architectural (66 windows, 5 window types).
  • RE-185 section 3.3, the measurement the issue rests on: on models 12 to 17 the 0.5h texts are family type table entries, u32 n · UTF-16 × n · (u32 0 | ff ff ff ff · u16) · f64 · i64 -1 · i64 parameter, under 12482 and 12220, both definitions named Fire Rating in group identityData and sharing one family-local GUID; Revit's export writes 0.5h on 3 windows of each model, of the type Window-Fixed:24" x 36". RE-185's own conclusion is that Revit's export takes the window's FireRating from a family parameter with that name.
  • RE-207, as recorded in docs/format-reconnaissance.md and docs/evidence.md: on the R2025 models a window's Pset_WindowCommon.FireRating is its type's family parameter Fire Rating, 18 of 18 — 3 windows on each of the six models, every one equal to Revit's value. That is the positive side of the rule, measured on the exact models the issue names.
  • The mechanism in revit-ifc (CLEANROOM.md source 5, cited as a description, no code copied): the common property sets are filled from the element's and its type's parameters looked up by name, which is why a family parameter named Fire Rating reaches Pset_WindowCommon.FireRating at all, and why the rule is not restricted to windows — RE-77 already established that Revit fills Pset_<Entity>Common.FireRating from the type's Fire Rating whatever the entity.
  • The three nordic models' psets_vs_ifc.txt on this machine: Pset_WindowCommon.FireRating is 4 of 4 equal on nordic-office-as-built and absent from the other two, so those models hold their window rating under -1001206 and do not exercise the new path. They are the only models with an export here.

The rule, and what it leaves out:

  • A type's Fire Rating is the value of the table entry under -1001206 or under any declared family parameter named Fire Rating, attributed to the block whose mark is the nearest preceding mark of any id, and only where every copy agrees. Where a type holds both and they differ, it gets neither — the same fail-closed guard RE-354 uses, now also covering the built-in against the family parameter.
  • Left out: a family parameter named Fire Rating in a language other than English (the name is matched literally, as Default Sill Height and Width are); a definition whose id is not in ElemTable; a Family element's own type table rows (RE-395); and any type whose copies disagree, which the diagnostics count.

Changes

  • src/research/partition_type_parameters.rs: FIRE_RATING_PARAMETER_NAME, and the table scan chained over the family parameters of that name.
  • changelog.d/added/1507-window-fire-rating-family-parameter.md: the new fragment.
  • docs/release-1.0-criteria.md: the Open: sentence for W7: windows' Pset_WindowCommon.FireRating is read from family-parameter table entries (R2025 models 12 to 17, held-out models) #1507 now says the reader reaches the family parameters named Fire Rating. The item stays open, because closing it is a claim the counts have not yet carried.
  • docs/support-matrix.json: the type-text-parameters note no longer says a window's FireRating stays missing.

No test was edited. No report was added; the findings are here.

What was not checked

I could not compile or run anything, and the models the issue measures are not on this machine. CI must confirm that the crate and the probes build, that clippy is clean and that the real-file tests pass; if a pinned count moves, it is because a model in CI holds a family parameter of this name, and I have not seen one.

The measurement must confirm, on the unfiltered run:

  • Pset_WindowCommon.FireRating missing goes 4 to 0 on each of r2025-12 to r2025-17, and the values are equal, not different.
  • No new value rvt-rs writes that Revit's export does not, on those six models and on the held-out 2024 to 2027 and held-out office 2024 to 2027 models (13 and 11 missing each) and on Snowdon Towers Architectural (71 missing, 66 windows and 5 window types, against its local export). This is the count I cannot predict: RE-185 counted 18 and 9 0.5h entries per model, and only the placed types produce output, so the extras count is the one that decides whether the rule is exact.
  • The three nordic models do not regress: Pset_WindowCommon.FireRating stays 4 of 4 equal on nordic-office-as-built, and Pset_DoorCommon.FireRating (55 of 55), Pset_WallCommon.FireRating (100 of 100) and Pset_CurtainWallCommon.FireRating (13 of 13) stay equal there and on nordic-office-timber-as-built. A nordic type that holds both -1001206 and a family parameter of this name with a different value would lose its rating to the disagreement guard, and that would show here.
  • decoded.parameter_value_count and the diagnostics' disagreeing-type-texts warning: the warning should stay at main's count on every model, and any rise names the types the guard dropped.
  • The IFC hashes of the models with no such family parameter should be main's byte for byte.

Pilot draft: written by an automated worker and pushed as proposed, with rustfmt applied. Not yet read by a maintainer session; please do not review, approve or arm it.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Measured twice, the second time in full with nine other drafts (run 43086493417, rows on #1636): it moves nothing. No census row with FireRating in its name changes on any of the 126 models, and each of the Revit 2025 models 12 to 17 still reads Pset_WindowCommon.FireRating 4 missing. So the family parameter named Fire Rating does not reach those windows by this path. A second round is looking for where the value is lost; if it finds nothing sound this draft is closed.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Closing unmerged, as the last comment set out. It was measured twice (run 43086493417 with the other drafts, rows on #1636), and it moves nothing: no census row with FireRating in its name changes on any of the 126 models, and the Revit 2025 models 12 to 17 still read Pset_WindowCommon.FireRating 4 missing. So the family parameter named Fire Rating does not reach those windows through the type-table scan, and no round since found where the value is lost. #1507 keeps the work, with this result recorded there.

@DrunkOnJava
DrunkOnJava deleted the pilot/10-window-fire-rating branch November 14, 2026 01:35
DrunkOnJava added a commit that referenced this pull request Nov 14, 2026
…ter captioned Fire Rating where its type's table gives none (#1507) (#1964)

## Summary

A door's or window's `FireRating` now comes from its saved parameter
captioned "Fire Rating" (its own value first, then its type's) where its
type's family type table gives none, on Revit 2024 to 2027. puzzbobb's
Revit 2025 window types hold their `0.5h` that way, and Revit's export
writes it as `Pset_WindowCommon.FireRating`, which rvt-rs leaves missing
(4 on each of models 12 to 17, #1507).

## Motivation

#1730 read the family parameters named Fire Rating through RE-354's
type-table scan, and it moved nothing on 126 models: the value doesn't
reach those windows through the tables. The batch 10 triage of #1507
pointed at the other reader: the saved parameters (RE-207) already hold
it for model 12's window type. This takes it from there.

## Changes

- `partition_schema_mvp/parameters.rs`, `attach_saved_fire_ratings`: for
the doors and windows with no type Fire Rating, one
`native_element_parameters::read_property_values` pass that reads only
records holding a definition captioned Fire Rating. The value is
attached as the same `m_type_parameter:Fire Rating` field the type-table
scan gives, so the export's existing rule writes it after a parameter
named for the property (`named_parameter_properties`).
- `fields.rs`: `FIRE_RATING_CAPTION` and
`SAVED_FIRE_RATING_REVIT_VERSIONS` (2024 to 2027).
- A changelog fragment.

## Testing

Measure
[43543055879](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43543055879),
unfiltered against `main`, with nordic, r2025, samples and holdout.
Registered before it runs:

1. `Pset_WindowCommon.FireRating` (and `Pset_DoorCommon.FireRating`)
equal rises on the R2025 models 12 to 17, with "different" and "values
Revit does not write" unchanged on every model.
2. The held-out pairs' FireRating missing counts fall or stay, and their
"values Revit does not write" do not rise (counts only).
3. Every other value is unchanged, and the exports that move are the
ones holding a door or window with such a parameter.

If any value comes out different, or written where Revit writes none,
the rule is narrowed or dropped before this leaves draft.


**Measured**
([43543055879](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43543055879)):
- 120 `FireRating` values go from missing to equal: 4 on each of the
R2025 models 12 to 17, 13 on each held-out house pair and 11 on each
held-out office pair, 2024 to 2027.
- `different` and "rvt-rs values Revit does not write" are 0 on every
model.
- Snowdon Towers Architectural's 2024 sample also moves (+7 property
sets in `schema.txt`), and no Revit export scores it.
- `same-project gates` passes.

- [ ] `tools/check-local.sh`: no local builds; `rustfmt --check` passes;
CI runs the rest.

## Audit-honesty checklist

- [x] No claim beyond what the run will show; the doc comment's
measurement line is set from the run before this is marked ready.
- [x] A changelog fragment.
- [x] No private paths or emojis.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk source; no new fixtures.

Part of #1507.
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