Skip to content

fix(ifc): a hosted door whose flip was not read gets no type GlobalId hashed with a guessed flip (#1947) - #1952

Merged
DrunkOnJava merged 1 commit into
mainfrom
fix/1947-flip-unread
Nov 13, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
fix/1947-flip-unread

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

revit_model_global_ids hashes a door's or window's type GlobalId with its flip (RE-167), taking element_flips.get(element).unwrap_or(false). element_flips holds only the doors whose host frame and facing were read. RE-167 measures that a door with no host is not flipped; a hosted door whose flip was not read was also hashed as not flipped, which is a guess. A hosted door with no read flip now gets no Revit type GlobalId, and the writer derives one, as for any type rvt-rs cannot match. A hostless door keeps false.

Testing

The unfiltered Measure with the samples is in this PR's comments. global_ids_vs_ifc shows whether any door type that matched Revit by the guessed flip stops matching. If any does, the guess was right there, and that is the case to look at before this lands.

Refs #1947.

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • A user-visible change has its entry as a fragment under changelog.d/fixed/

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Measure run 43518051555 on 8d10719b against main 702fd70c (nordic, r2025, samples, every scorer): ifc.sha256 equal on 101 of 101 models and diagnostics.json equal on 101 of 101, so no reference model reaches the changed branch and no export moves. same-project gates passes on 8d10719b. The change rests on the code read in the description; it is output-neutral on every model we can measure.

@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 13, 2026 23:37
@DrunkOnJava
DrunkOnJava merged commit 0f1de95 into main Nov 13, 2026
65 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1947-flip-unread branch November 13, 2026 23:57
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