Skip to content

feat(ifc): write Pset_BuildingStoreyCommon.EntranceLevel on a storey from its Level's parameter (W7) (RE-275) - #1172

Merged
DrunkOnJava merged 13 commits into
mainfrom
w7/storey-entrance-level
Oct 30, 2026
Merged

DrunkOnJava merged 13 commits into
mainfrom
w7/storey-entrance-level

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

rvt-rs writes Pset_BuildingStoreyCommon.EntranceLevel on 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.EntranceLevel on 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_BuildingStoreyCommon gives EntranceLevel no calculator (CLEANROOM.md source 5; read and cited, no code copied), so Revit's exporter takes it from a parameter named Pset_BuildingStoreyCommon.EntranceLevel, then EntranceLevel, 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, and PropertySet::storey_sets_for writes it after Reference (StoreyProperties is #[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.EntranceLevel before after
office as built 9 values, equal 0, missing 9 equal 9, missing 0
office at permit 9 values, equal 0, missing 9 equal 9, missing 0

None different, none written that Revit's export omits ("values Revit does not write" unchanged: 10 as built, 14 at permit). diagnostics.decoded.parameter_value_count goes 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.

  • Verified end to end on real Revit files: the BIM4LCA office (CC BY-SA 4.0) as built and at building permit, and the R2025 models, RE1 and Core Interior, against Revit's own exports, by Measure run 41115402144
  • Revit's IFC4 export is the oracle; nothing is written that it omits, none differs

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 PropertySetEntryMap tries 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.

DrunkOnJava added a commit that referenced this pull request Oct 30, 2026
…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.
…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
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Owner review: EntranceLevel is read as revit-ifc's definition gives it (no calculator, so a parameter): the Level's yes/no instance parameter named Pset_BuildingStoreyCommon.EntranceLevel, then EntranceLevel, and nothing where the Level holds neither (the office's Sea Level). It goes through the saved-parameter reader stable IFC code already uses. 9 of 9 equal on both office files, no other model changes (Measure 41115402144). I merged main after #1171 landed, taking this branch's side in the source hunks (main's #1171 code plus EntranceLevel), main's witness observations (EntranceLevel does not move Core Interior) and main's criteria page with the storeys line widened. RE1's IFC2X3 storey set defines EntranceLevel, and RE1's Levels hold no such parameter, so spatial_property_sets is unaffected; CI confirms. Armed.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 30, 2026 21:28
@DrunkOnJava
DrunkOnJava merged commit 5c5dc18 into main Oct 30, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the w7/storey-entrance-level branch October 30, 2026 21:34
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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