Repository navigation
feat(ifc): write the rectangular wall openings Revit's export has that nothing fills (#1165) (RE-321) - #1305
Conversation
…ites that nothing fills (#1165) (RE-321)
…nd the symbols of the cutters (#1165) (RE-321)
… a rectangular opening cut in a wall (#1165) (RE-321)
…act, and read their saved rectangle (#1165) (RE-321)
…es that nothing fills, and the scorer that counts a sibling file's opening apart (#1165) (RE-321)
# Conflicts: # tools/ci/measure-reference-models.sh
…gs probe (#1165) (RE-321)
…ht, which Revit writes the right way round (#1165) (RE-321)
# Conflicts: # src/lib.rs
…d one whose corners do not lie in the wall's plane is left out (#1165) (RE-321) (#1310) ## Summary Follow-up to #1305 from its second read, which came back after #1305 had landed. #1305's openings took only walls drawn as one extrusion, so in a wall #1304 (RE-320) draws stepped, which #1305's Measure run predates, a rectangular wall opening was left out without a word. A stepped wall keeps its whole prism as `extrusion`, and an opening voids every piece of its body (#1304's review checked this with IfcOpenShell), so `host_of` now accepts a wall whose `BodyHeightSource` is `wall_top_stepped_at_covering_floor`. An opening whose corners spread across the wall by more than 0.02 ft is now left out, which also fails closed on a wall whose axis was not read. The contribution map no longer says curtain-wall cuts and fire hose cabinets are written: #1305 withholds them. ## Changes - `src/ifc/wall_cut_openings.rs`: `is_stepped`; `host_of` accepts stepped walls; the plane-spread check. - `docs/contribution-map.md`: the #1165 row. - `changelog.d/fixed/1165-stepped-wall-openings.md`. ## Testing Unfiltered Measure on this head against `main` (cited below once in): the office's rectangular openings must stay 30 of 30 as built and 24 of 24 at permit, extras unchanged, every other model byte-identical. ## Legal and contribution hygiene - [x] Apache-2.0; no Autodesk proprietary content. ## Related issues Refs #1165.
|
Automated Claude Code review (the maintainer's review agent, read after merge; it read the code and run 41748430211): two blocking items, fixed in #1310. The 30 and 24 office openings were measured before the stepped wall tops (#1304) landed. A stepped wall has a solid shape, so an opening in one would have been dropped without a word: the openings pass now accepts a stepped wall, and #1310 measured both files again. The contribution map also said fire hose cabinets and curtain-wall cuts are written, which this PR withholds; it now lists them as remaining. Also in #1310, an opening is written only when its two corners lie in its wall's plane. That also refuses a wall whose axis was not read, where the plane check would otherwise run against the wall's wider box. |
Summary
Writes the openings Revit's IFC4 export of the BIM4LCA office has for rectangular wall openings and that no door or window fills: 30 of 30 as built and 24 of 24 at building permit, each voiding the wall Revit's export voids, tagged with the opening's ElementId, named for the wall, with Revit's box (within 0.003 ft), GlobalId,
Pset_OpeningElementCommon.ReferenceandPset_EnvironmentalImpactIndicators.Reference(the wall's type name) andQto_OpeningElementBaseQuantitiesWidth,HeightandDepth, all equal to Revit's. Fire hose cabinets and curtain-wall cuts are measured and left out (each also writes openings Revit's export lacks, or a wrong box, with nothing read to tell them apart); RE-321 holds the rules and every number.Motivation
Revit's export holds 224 openings as built (220 at permit) that nothing fills; rvt-rs wrote 27 of them. Their bodies void walls (W6) and their properties are Revit's (W7). This is Refs #1165, not Closes: a door's further cut in a second wall (39 as built), a door's cut in itself (4), a wall's own profile (2), the fire hose cabinets (39, exact, with 1 opening Revit's export lacks as built and 2 at permit) and the curtain-wall cuts (70, box exact on 52) are left, with the evidence, in RE-321 sections 4 and 5.
Changes
src/research/native_wall_cuts.rs: the steps of a wall's native record that name a cutting element, in the record's order (Revit's numbering of the wall's openings), and a rectangular opening's saved corners.src/ifc/wall_cut_openings.rs,IfcEntity::WallCutOpening(new last variant of the non-exhaustive enum) and its writer instep_writer.rs; the GlobalId is revit-ifc'sOpeningUtilhash of the opening's number, the wall's GlobalId and the opening record's.tools/re/unfilled_openings_vs_ifc.py(new scorer, run by Measure on every model; one generic line counts apart an opening rvt-rs writes that Revit's export of the file lacks but its export of a sibling file holds, the maintainer's decision of 2026-11-03, as RE-253),probes/examples/probe_re321_unfilled_openings.rs(the census),reports/element-framing/RE-321-unfilled-openings.md, a changelog fragment, the 1.0 criteria figures it moves.Testing
No unit tests (banned). End to end on real files against Revit's own IFC4 exports; the scorer, probe and commands are in RE-321 section 6.
-f base=main -f nordic=true -f r2025=true -f samples=true -f holdout=true), this head's merge withmainat 0e0582e againstmain: 41748430211main), RE1 Architecture, Einhoven, the 23 R2025 models and every held-out model's counts are byte for bytemain's; nothing in their witness observations movestools/check-local.shpasses: CI runs it, nothing is built locally on this checkoutAudit-honesty checklist
changelog.d/added/probes/examples/and the reportLegal and contribution hygiene
Source/Revit.IFC.Export/Utility/OpeningUtil.cs, classOpeningUtil, methodsCreateOpeningGUID,AddOpeningsToElementandCreateOpening, CLEANROOM.md source 5), read for what its export writes (the opening numbering, the GUID key, the recess test) and described in my own words; none of its code is copied.Breaking changes
None.
IfcEntityis#[non_exhaustive]and the new variant is last.Screenshots or output samples
Measure 41748430211, head against
main, the two office files (the only models whose scorers move):References equalnone in IfcWallopenings) and the two terrain files' 2 each are inmain's export in the same run.Related issues
Refs #1165. Left: a door's further cut in a second wall, a door's cut in itself, a wall's own profile, and the cabinets and curtain-wall cuts (measured, withheld).