Repository navigation
feat(ifc): a door's or window's opening is the outline its symbol cuts, through the instance's transform (#227) (RE-215) - #946
Merged
Conversation
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
On Revit 2024 and 2025, a door or window whose type gives no opening now cuts its host along the outline its symbol cuts (RE-215), placed by the instance's transform (RE-87). The cut runs through the wall. Against Revit's own export, the openings are now within 0.001 ft:
Part of #227.
Motivation
#227 asks for each door's and window's opening as Revit cuts it, not the element's box. RE-215 (#936) read the outline that the symbol drawing a door or window cuts in its host.
Revit places a door's IFC frame at its opening's corner, which hides where that outline sits, so the opening has to be measured in the instance's own frame.
examples/probe_227_opening_frames.rsandtools/re/opening_frames_vs_ifc.pydo that (run 40118231668). There, the opening's X and Z ranges equal the outline's within 0.001 ft on every door and window measured:Across the wall the opening runs from the outline's plane to its mirror, which is the host's thickness, centred on the origin.
Changes
src/partition_schema_mvp.rs:attach_cut_loop_sizesalso gives each door and window with an outline and a transform, but no opening from RE-93 or RE-94, RE-93's opening fields:push_filler_openingtakes that offset along the axis, and its two existing callers pass 0.examples/probe_227_opening_frames.rsandtools/re/opening_frames_vs_ifc.py, the research above.reports/element-framing/RE-215-symbol-cut-loops.md§7,README.md(the openings row),docs/supported-profile.md,docs/support-matrix.json(native-symbol-cut-sizes),changelog.d/added/loop-openings.md.research/witness/magnetar-2024-core-interior*/observations/rvt-rs.json, regenerated by Measure. 130 more placements and points and 910 more property values; nothing in the verdicts' semantic surface changes.Testing
Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.
tools/check-local.shpasses: CI runs it. Measure built the head with--profile ci, and rustfmt and the let-chain scan pass.Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it
opening_boxes_vs_ifc:openings_vs_ifclikewise: 130 of Core Interior's openings and RE1's 4 within 0.01 ft, none before.If this touches the IFC exporter: the witness verdicts replay or the changed observations are refreshed in this PR. Both rvt-rs observations are refreshed from the run's head output.
Audit-honesty checklist
examples/and the report's dated section are included. The finding extends RE-215, so it is RE-215 §7, not a new number.Legal and contribution hygiene
CONTRIBUTING.md)CLEANROOM.md)Breaking changes
None.