Repository navigation
feat(ifc): write Pset_BuildingStoreyCommon.EntranceLevel on a storey from its Level's parameter (W7) (RE-275) - #1172
Conversation
…m its Level's type (W7) (RE-275)
…from its Level's parameter (W7) (RE-275)
# Conflicts: # docs/release-1.0-criteria.md
…toreys' Reference (RE-275)
…orey-entrance-level # Conflicts: # docs/release-1.0-criteria.md
# Conflicts: # docs/release-1.0-criteria.md
… replaced (W7) (RE-275)
…orey-entrance-level
# Conflicts: # docs/release-1.0-criteria.md
…orey-entrance-level # Conflicts: # docs/release-1.0-criteria.md
…mns' Slope, the building's Reference, door openings' values (W7) (RE-277) (#1176) ## Summary Adds the probe behind the W7 office findings (RE-275, RE-276) and RE-277, which records three office properties that the `.rvt` does not decide, so none is written: columns' `Slope`, the building's `Reference`, and the door openings' `Reference` and `FireExit`. No export changes. ## Motivation W7 listed these gaps on the BIM4LCA office (Measure run 41104131261). The positive ones got their own PRs (pipes' `InvertElevation` #1169, beams' `Span` #1163, `Slope` #1173 and `Roll` #1174, storeys' `Reference` #1171 and `EntranceLevel` #1172). The rest were looked for in the same pass and have no source in the file, which binds future work, so the evidence is written down: - **Columns' `Slope`** (73 of 279 columns as built, 101 of 345 at permit, 0.0 on all): revit-ifc's `SlopeCalculator` reaches a vertical column only through its last step, the largest top-facing face of the last object of the element's geometry, so the property exists where Revit's API returns a solid there. The probe lists each column's native record. Six columns have a record identical in both files and Revit gives them the property at permit only; twelve identical columns on one level split 5 to 7 by whether a join is user-set; no cell of the attachment-by-join table has the property on every column. - **The building's `Reference`** (`Project Information`): not stored in the file as UTF-16 or UTF-8 text but for two RTF help-text lines, so writing it would guess the exporting session's name for the element. - **Door openings' `Reference` and `FireExit`** (140 and 31 as built): on the openings Revit writes where a door cuts a further wall, which rvt-rs does not write; the door's own filled opening has no set in Revit's export, as in rvt-rs's (the scorer now says so, #1161). ## Changes - `probes/examples/probe_w7_office_gaps.rs`: for a model's parameter definitions, every Level (its native record, saved parameters and the record of its type), and every structural column, structural framing element and pipe (decoded fields, saved parameters and native objects' scalar fields), one JSON line each. - `reports/element-framing/RE-277-office-properties-the-file-does-not-decide.md`, `changelog.d/research/office-properties-not-in-the-file.md`. ## Testing Unit tests are not added. The probe ran on GitHub's runners on both office files and the 24 R2025 models: Measure runs 41111710319 (office as built, an earlier version of the probe), 41113408569 (office and R2025, this probe). The report's counts are from those outputs joined with Revit's exports by `Tag`; the commands that reproduce them are in the report. - [x] Verified end to end on real Revit files: the BIM4LCA office (CC BY-SA 4.0) and puzzbobb's R2025 models (Apache-2.0), against Revit's own exports, by the Measure runs above - [x] Reverse-engineering finding: a reproducible probe is included, and the report states its status (negative) ## Breaking changes None. ## Related issues Refs W7 (`docs/release-1.0-criteria.md`), #1161, #1169, #1163, #1171, #1172, #1173, #1174.
# Conflicts: # docs/release-1.0-criteria.md
…orey-entrance-level # Conflicts: # docs/release-1.0-criteria.md
# Conflicts: # docs/release-1.0-criteria.md # research/witness/magnetar-2024-core-interior-slim/observations/rvt-rs.json # research/witness/magnetar-2024-core-interior/observations/rvt-rs.json # src/ifc/entities.rs # src/ifc/mod.rs # src/ifc/storey_properties.rs
|
Owner review: |
Summary
rvt-rs writes
Pset_BuildingStoreyCommon.EntranceLevelon a storey from the yes/no parameter its Level holds. 9 of 9 values on the BIM4LCA office are Revit's, as built and at building permit; no other model changes. Stacked on #1171 (storeys'Reference): its commits come first in this branch.Motivation
W7: Revit's IFC4 export writes
Pset_BuildingStoreyCommon.EntranceLevelon 9 of the office's 10 storeys (true on Level_01, false on 8; none on Sea Level), and rvt-rs wrote none (Measure run 41104131261).revit-ifc's definition of
Pset_BuildingStoreyCommongivesEntranceLevelno calculator (CLEANROOM.md source 5; read and cited, no code copied), so Revit's exporter takes it from a parameter namedPset_BuildingStoreyCommon.EntranceLevel, thenEntranceLevel, on the Level. The office declares the first as a shared parameter (id 3364458) and each Level's native record holds its value: Level_01 yes, Foundation, Basement, Level_02a_Parking, Level_02, Level_03, Level_04, Level_05 and Roof no, Sea Level none (RE-275 section 3). rvt-rs writes the value the Level holds and nothing for a Level that holds none, so a file whose Levels declare no such parameter, as the R2025 models', gets none, as their Revit exports have none.Changes
src/ifc/storey_properties.rs: also reads each Level's saved parameters (native_element_parameters::read) for those two names, the Level's own value (Instance) only.src/ifc/entities.rs:StoreyProperties::entrance_level, andPropertySet::storey_sets_forwrites it afterReference(StoreyPropertiesis#[non_exhaustive], so the field is not a break).docs/release-1.0-criteria.md(W7 lists storeys'EntranceLevel),changelog.d/added/storey-entrance-level.md; RE-275 describes the finding for both properties.Testing
Measure run 41115402144, unfiltered (
-f base=main -f nordic=true -f r2025=true, every scorer), head d80e7c0 against main 6c4bf6a. Against the run of #1171's head, the only models that differ are the office's two files:psets_vs_ifc,Pset_BuildingStoreyCommon.EntranceLevelNone different, none written that Revit's export omits ("values Revit does not write" unchanged: 10 as built, 14 at permit).
diagnostics.decoded.parameter_value_countgoes up by 9 on each file over #1171's (44,354 to 44,363 as built, 44,540 to 44,549 at permit). RE1, Core Interior and the 24 R2025 models are byte-identical to #1171's outputs, so Core Interior's witness needs nothing beyond #1171's refresh.Limits
The value is read from a Level parameter by name. Revit's exporter also reads one by its localized name in a file saved in another language (revit-ifc's
PropertySetEntryMaptries the localized name first): a file whose Level holds a parameter only under a translated name would get none here, which fails closed. No measured model has one.Breaking changes
None.
Related issues
Refs W7 (
docs/release-1.0-criteria.md), #1171.