Repository navigation
feat(ifc): write Pset_BeamCommon.Roll 0 on a beam whose Cross-Section Rotation is 0 (W7) (RE-276) - #1174
Merged
Conversation
…th is written (W7) (RE-49)
…l location line (W7) (RE-49)
… Rotation is 0 (W7) (RE-276)
# Conflicts: # docs/release-1.0-criteria.md
# Conflicts: # docs/release-1.0-criteria.md # src/ifc/export_content.rs
# Conflicts: # docs/release-1.0-criteria.md # src/ifc/export_content.rs
2 tasks done
Owner
Author
|
Owner review: |
DrunkOnJava
enabled auto-merge (squash)
October 30, 2026 20:26
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.
# Conflicts: # docs/release-1.0-criteria.md
# Conflicts: # docs/release-1.0-criteria.md # src/ifc/export_content.rs
# Conflicts: # docs/release-1.0-criteria.md # src/ifc/export_content.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rvt-rs reads a beam's Cross-Section Rotation from its native record and writes
Pset_BeamCommon.Roll0 on a beam whose rotation is exactly 0. 8 of 8 beams of the BIM4LCA office are Revit's value as built and at building permit; nothing else moves. Stacked on #1173 (beams'Slope): its commit comes first in this branch.Motivation
W7: Revit's IFC4 export writes
Pset_BeamCommon.Rollon each of the office's 8 beams (Putkipalkki - suorakaide:PA-1), 0.0 on all, and rvt-rs wrote none (Measure run 41104131261).revit-ifc's
RollCalculator(CLEANROOM.md source 5; read and cited, no code copied) takes the roll from the beam's Cross-Section Rotation built-in parameter (STRUCTURAL_BEND_DIR_ANGLE), in radians, and answers true even for 0. A built-in parameter keeps its negative id and no name in the file (#255), so the probeprobe_w7_office_gapslooked in the beam's native record: itsFamInstCurveDriverobject holdsm_rotation, a radian value, 0.0 on each of the 8 beams in both files, beside the driver's other instance settings (RE-276). No other member of the record is a rotation:FamilyInstanceholdsm_RefDirandm_zAxis, andInstanceInfoits transform's origin.Changes
src/research/partition_schema_mvp/framing.rs,fields.rs,partition_schema_mvp.rs:attach_beam_rotationsgives each structural-framing elementm_beam_cross_section_rotation(BEAM_ROTATION_FIELD), them_rotationits native record's copies agree on, in oneextract_graphspass over the beams.src/ifc/export_content.rs:add_beam_rollwritesRoll0 where the beam also has the extrusion length (add_beam_length) and its rotation is 0.reports/element-framing/RE-276-beam-cross-section-rotation.md,changelog.d/added/beam-roll.md,docs/release-1.0-criteria.md(W7 lists unrotated beams'Roll).Testing
Measure run 41118816912, unfiltered (
-f base=main -f nordic=true -f r2025=true, every scorer), head 0ba5813 (this branch with main merged: this PR's code, #1173's commit and #1163's old commit) against main 80442f8. The branch has since only merged main again, where #1163 landed.psets_vs_ifcPset_BeamCommon.RollOnly the office's two files change; every other model's outputs,
ifc.sha256included, are identical to main's. The main the run compared against did not yet hold #1163'sSpan(landed since), so the same run also showsSpanand #1173'sSlopegoing from 0 to 8 of 8 equal on each file: as built equal 44,079 to 44,103, missing 13,638 to 13,614; at permit equal 44,261 to 44,285, missing 13,598 to 13,574, the 24 values being 8 each ofSpan,SlopeandRoll. 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_countgoes up by those 24 (44,356 to 44,380 as built, 44,542 to 44,566 at permit), as thePset_values of the file do. Roll's share is 8 on each file.Limits
All 8 measured beams are unrotated, so what
m_rotationcarries for a rotated beam is not measured. A rotated beam gets noRoll(fails closed); a model with rotated beams and Revit's export would decide it. The extraextract_graphspass reads only the beams' records.Breaking changes
None.
Related issues
Refs W7 (
docs/release-1.0-criteria.md), #1173.