Repository navigation
feat(ifc): a window type's FireRating is read from the family parameter named Fire Rating (#1507) - #1730
feat(ifc): a window type's FireRating is read from the family parameter named Fire Rating (#1507)#1730DrunkOnJava wants to merge 2 commits into
Conversation
…er named Fire Rating (#1507)
|
Measured twice, the second time in full with nine other drafts (run 43086493417, rows on #1636): it moves nothing. No census row with |
…ily parameter never arrives (#1507)
|
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 |
…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.
Summary
Pset_WindowCommon.FireRatingis missing from rvt-rs's export on every model whose Revit export writes one, because the R2025 models' window types hold their0.5has 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 overTABLE_TEXT_PARAMETERSchained with the declared family parameters namedFIRE_RATING_PARAMETER_NAME("Fire Rating"), found byfamily_parameters_named(RE-93's reader, the onetype_window_openingsuses forDefault Sill Heightand RE-187 forWidth/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, aFamilyelement'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.Fire Rating, which an element's ownPset_WindowCommon.FireRatingreplaces, and onto the type object's common set (record_type_common,named_parameter_properties).Evidence
What I read:
Pset_WindowCommon.FireRating, 4 missing on each ofr2025-12tor2025-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).0.5htexts 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 namedFire Ratingin groupidentityDataand sharing one family-local GUID; Revit's export writes0.5hon 3 windows of each model, of the typeWindow-Fixed:24" x 36". RE-185's own conclusion is that Revit's export takes the window'sFireRatingfrom a family parameter with that name.docs/format-reconnaissance.mdanddocs/evidence.md: on the R2025 models a window'sPset_WindowCommon.FireRatingis its type's family parameterFire 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.Fire RatingreachesPset_WindowCommon.FireRatingat all, and why the rule is not restricted to windows — RE-77 already established that Revit fillsPset_<Entity>Common.FireRatingfrom the type's Fire Rating whatever the entity.psets_vs_ifc.txton this machine:Pset_WindowCommon.FireRatingis 4 of 4 equal onnordic-office-as-builtand 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:
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.Fire Ratingin a language other than English (the name is matched literally, asDefault Sill HeightandWidthare); a definition whose id is not inElemTable; aFamilyelement'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: theOpen: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 namedFire Rating. The item stays open, because closing it is a claim the counts have not yet carried.docs/support-matrix.json: thetype-text-parametersnote no longer says a window'sFireRatingstays 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.FireRatingmissing goes 4 to 0 on each ofr2025-12tor2025-17, and the values are equal, not different.0.5hentries per model, and only the placed types produce output, so the extras count is the one that decides whether the rule is exact.Pset_WindowCommon.FireRatingstays 4 of 4 equal onnordic-office-as-built, andPset_DoorCommon.FireRating(55 of 55),Pset_WallCommon.FireRating(100 of 100) andPset_CurtainWallCommon.FireRating(13 of 13) stay equal there and onnordic-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_countand the diagnostics' disagreeing-type-texts warning: the warning should stay atmain's count on every model, and any rise names the types the guard dropped.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.