Repository navigation
feat(ifc): write Pset_PipeSegmentOccurrence.InvertElevation as a height above the model's zero, and on a Revit 2024 vertical pipe (W7) - #1169
Conversation
…ht above the model's zero, and on a Revit 2024 vertical pipe (W7) (RE-157)
…d, until the unused API goes (W7)
# Conflicts: # docs/release-1.0-criteria.md
|
Owner review: the change moves the invert from above the pipe's storey to above the model's zero, for every pipe, measured on the office's 12 vertical pipes (Level_01 at 55.5 m: 12 of 12 equal on both files) with RE1's 69 unchanged. The generalisation to horizontal pipes on an upper storey (unmeasured; the PR's Limits say so) is consistent with revit-ifc: |
…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.
Summary
Pset_PipeSegmentOccurrence.InvertElevationis a height above the model's zero, not above the pipe's storey, and a vertical pipe's needs no inner diameter. rvt-rs now writes it that way: all 12 of the BIM4LCA office's pipes are Revit's value as built and at building permit, where none was written; RE1's 69 are unchanged.Motivation
W7: Revit's IFC4 export writes
InvertElevationon the office's 12 pipes (Pipe Types:JSV-3, 55.32 m each) and rvt-rs wrote none (Measure run 41104131261).Two things stopped it, both in the invert rule RE-157 measured on RE1:
pipe_inverts_above_storeystook the storey's elevation off. Every RE1 pipe is on Level 1 at elevation 0, so the two readings gave the same numbers. The office's 12 pipes are vertical, onLevel_01(55.5 m); each extrusion starts 179.19 mm below that storey's placement, so the lower end is at 55,320.81 mm, and that is the value Revit writes. Above the storey it would be -179.19 mm. The invert is the height in the model's frame.pipe_invert_heightread the inner diameter before it asked whether the pipe is vertical, and a Revit 2024 pipe's diameter is not read (MEP ports and pipe cylinders outside Revit 2024 and 2025: no 2026 or 2027 MEP model has a Revit export to measure against #869), so a 2024 pipe got nothing. A vertical pipe's invert is its lower end, with no diameter. A horizontal pipe still needs it and a 2024 one still gets none: no measured model has one.Changes
src/ifc/export_content.rs:pipe_invert_heightreturns the lower end of a vertical pipe before reading the inner diameter;pipe_inverts_above_storeys, which took the storey's elevation off, is gone andsrc/ifc/mod.rsloses its call. The publiccomputed_invertsfield it read stays, unread, so the stable API does not change.reports/element-framing/RE-157-pipe-inner-diameter.md: section 6, a dated correction, and a pointer from section 4.tests/invert_elevation.rs: its header says "above the model's zero", as Revit's value is.docs/release-1.0-criteria.md: W7 lists pipes'InvertElevation.changelog.d/changed/pipe-invert-model-height.md.Testing
Measure run 41112675273, unfiltered (
-f base=main -f nordic=true -f r2025=true, every scorer, head 13f12ce against main 514bca8); run 41109551247, on the head before the last commit (which only keeps a public field), gave the same rows. Only the office's two files change. Every other model's outputs,ifc.sha256included, are identical to main's: RE1 Mechanical's 6 and Plumbing's 63 inverts, equal before, are the same bytes after, and Core Interior, RE1 Architecture and Electrical and the 23 R2025 models do not move.psets_vs_ifcPset_PipeSegmentOccurrence.InvertElevationdiagnostics.decoded.parameter_value_countgoes up by the 12 values on each file (44,344 to 44,356 as built, 44,530 to 44,542 at permit), as thePset_values of the file do. The IFC schema check (schema.txt) differs only in its set count.Limits
The reading "above the model's zero" rests on the office, the one model whose pipes stand above a storey at zero; RE1 cannot tell the two apart. A horizontal or sloped pipe on a storey above zero is not measured: no model has one.
Breaking changes
None.
pipe_inverts_above_storeyswaspub(super).TypedProductionAppend::computed_invertsis a public field that nothing reads any more; it stays until the unused stable API is removed in one breaking change before 1.0.Related issues
Refs W7 (
docs/release-1.0-criteria.md), #869.