Repository navigation
feat(ifc): a face-hosted door or window cuts the opening its symbol's solid makes in its host, with Revit's GlobalId (#824) (RE-225) - #997
Merged
Conversation
… solid makes in the element whose face hosts it (#824)
…among the host's openings, as Revit's export names it (#824)
…ning's GlobalId from (#824)
…instance with the highest ElementId, as in Revit's export (#824)
… openings a host's own geometry carries (#824)
… GlobalId, hashed from its number among the host's openings (#824)
DrunkOnJava
enabled auto-merge (squash)
October 25, 2026 22:29
… variant's discriminant moves, and clippy's two lints are met (#824)
12 of 13 tasks
…tor, as clippy asks (#824)
DrunkOnJava
added a commit
that referenced
this pull request
Oct 25, 2026
…s last two doors (#810) (RE-229) (#998) ## Summary Records RE-229, which RE-225 (#997) cites: no length a door's or window's symbol stores is the width Revit's export gives the BIM4LCA office's doors 1756089 and 1765267, so #810 keeps them open. The same run shows the stored lengths add no source rvt-rs lacks. ## Motivation RE-218 sizes every door and window of the office except two doors, 5.8629 ft wide in Revit's export, whose record box is 5.9766 ft and whose symbol's cut solid is 3.1168 ft (RE-225). revit-ifc takes the width from the closed `ExporterIFCUtils.GetMinSymbolWidth`, so the symbol's stored parameters were the remaining place to look (#810). ## Changes - **`examples/probe_re229_symbol_lengths.rs`**: every length a door's or window's symbol type stores, by family parameter caption or BuiltInParameter id. - **`tools/re/symbol_lengths_vs_ifc.py`**: per parameter, how often its value is Revit's `OverallWidth` or `OverallHeight`, and the doors and windows no stored length gives the width of. - **`reports/element-framing/RE-229-symbol-lengths.md`**: the measured table and the negative. - **`changelog.d/research/symbol-lengths.md`**. ## 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.sh`: CI. - [x] Verified end to end on real Revit files: Measure [40230195608](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40230195608), `-f nordic=true -f r2025=true`, probe and scorer as committed. - Office as built: `Opening_Width` is Revit's width on 269 of 269 windows and 163 of 163 doors, `Aukkoleveys` on 24 of 24; 69 doors store no length equal to their width. - Core Interior and RE1 Architecture: the built-in -1001301 and -1001300 are the width and height of every door and window. - Doors 1756089 and 1765267: no stored length, and no sum or difference of two, is 5.8629 ft. - N/A: performance (no library change). ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR (nothing user-visible changes) - [x] The research entry is a fragment under `changelog.d/` - [x] Resolved limitations updated (none resolved; #810 stays open) - [x] The negative is stated, not rounded away - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files - [x] Reverse-engineering finding: probe, report and measured counts against Revit's own export ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content. The finding comes from public byte observation and Revit's own IFC exports. revit-ifc was read for what its export does and not copied (CLEANROOM.md source 5). - [x] No fixtures ## Breaking changes None.
9 of 10 tasks
DrunkOnJava
added a commit
that referenced
this pull request
Oct 25, 2026
…deleted branch (#1001) ## Summary Sixteen reports' reproduce commands named a branch that was deleted when it landed (`feat/mullion-span`, `feat/bare-named-parameters`, `feat/wall-extend-to-structure`, `feat/824-hatch-openings`, `re/re155-reference-slots` ... `re/re163-content-documents`, `re/878-2015-episodes`, `re/223-flag-census`, `docs/re229-symbol-lengths`), so `gh workflow run` refused them. Each now names the commit that landed (`--ref main -f ref=<sha>`, and `-f base=<parent>` where it measured a change against `main`). CONTRIBUTING's reverse-engineering steps state the rule. ## Motivation A report's reproduce section is how its counts are checked again. Measure's `ref` input takes a commit, and every probe and scorer these reports name is on `main`. ## Changes - **`reports/element-framing/RE-155` to `RE-163`, `RE-208`, `RE-219`, `RE-225` to `RE-229`**: branch refs replaced by the squash commits of #601, #606, #611, #620, #627, #628, #630, #632, #642, #928, #963, #993, #994, #996, #997 and #998. RE-224's `re/saved-mesh-status` is kept: it is the ungated branch its scorer needs, and it stays. - **`CONTRIBUTING.md`**: a report's reproduce commands name a commit, never a branch. ## Testing Unit tests are banned in this repository: do not add them. - [ ] `tools/check-local.sh`: CI. - [x] Every probe and scorer the changed commands name exists on `main` (checked file by file), and each commit is the merge of the pull request that added the report. - N/A: no code change. ## Audit-honesty checklist - [x] README / docs reflect the current state after this PR - [x] No user-visible change, so no changelog fragment - [x] Commit messages describe what changed and why - [x] No emojis in code, docs, or commit messages - [x] No private paths, personal email addresses, or internal jargon in committed files ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk proprietary content - [x] No fixtures ## Breaking changes None.
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
A door or window hosted on a face of another element cuts the opening its symbol's solid makes in that element, as Revit's export writes it. On the BIM4LCA office that is roof 2991742's four 600 mm hatch openings, which were the whole of #824. They are written at Revit's place to 0.0001 ft, through the roof's thickness, with Revit's names, order and GlobalIds (RE-225).
Closes #824.
Motivation
#824: Revit's export cuts four openings in roof 2991742 where its face-hosted roof hatches sit, and rvt-rs cut none. The hatches' symbols cut no loop (RE-215), and RE-221's dump showed no link from a hatch to the roof.
Changes
src/native_symbol_cuts.rs:face_hosted_cuts, in two passes, reads three things for each door and window.m_hostIdnames.GeomOnPlaneRef.m_geomRef.m_elemId. RE-221's dump dropped this because it sits inside a struct.m_complexCutGeoms, whose faces are meshed withnative_saved_mesh::face. The unbounded planes in it add nothing.src/ifc/mod.rs:attach_hosted_cut_openingsplaces each solid by the instance's transform (RE-87). Each gated footprint becomes an opening of the host, extruded through the host's thickness in the host's frame.<host name>:<n>, numbered from the cutting instance with the highest ElementId.src/ifc/entities.rs:IfcEntity::HostedCutOpening, a new variant of the#[non_exhaustive]enum, so not a break.src/ifc/step_writer.rs: writes it as it writes aVoidOpening, with Revit's GlobalId: revit-ifcOpeningUtil's hash ofIfcOpeningElement:<n>:<host GlobalId>(CLEANROOM.md source 5; the key's wording is reproduced as that identifier needs).reports/element-framing/RE-225-symbol-cut-solids-and-hatch-openings.md, with these probes and scorers:examples/probe_re225_symbol_cut_geoms.rsandtools/re/symbol_cut_geoms_vs_ifc.py: the cut solids against Revit's sizes, including BIM4LCA office: 2 doors' OverallWidth is 0.1137 ft wider than Revit's (1756089, 1765267) #810's measured negative for its last two doors;examples/probe_824_sketch_plane_json.rs;tools/re/host_openings_list.py: openings in non-wall hosts, in the site frame;tools/re/opening_guids_vs_ifc.py: which GlobalId key Revit's opening uses.docs/contribution-map.mddrop BIM4LCA office: roof 2991742's four hatch openings are not cut (face-hosted hatches; their symbol's cut geometry is unread) #824.changelog.d/added/hatch-openings.md.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.sh: CI.main,-f nordic=true -f keep_ifc=true, withhost_openings_liston both exports.3YaXsZK7DWAzH8QHq$vLLn,2_vAcrRri2S49gzbvjYOW1,0DdCEMitnLfOdlYT2LDb3G,2bZgoAmVzSxbOlfXcVBbmd), names, order, site-frame box to 0.0001 ft, and depth of 0.973 m and 0.970 m.extract_graphspasses selecting a few dozen ids).Audit-honesty checklist
changelog.d/Legal and contribution hygiene
Breaking changes
None:
IfcEntityis#[non_exhaustive].