Repository navigation
feat(ifc): a door or window set in a curtain grid is one of its curtain wall's parts, with no host wall (B64) - #659
Merged
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Doors naming a curtain wall mis-aggregate
- Opening aggregation now applies the direct named-curtain-wall rule only when every host candidate is a curtain wall (RE-85), so Snowdon wall-inserted doors keep their basic-wall host while panel doors like RE1 445975 still aggregate.
Or push these changes by commenting:
@cursor push 4c7aa4fd82
Preview (4c7aa4fd82)
diff --git a/src/partition_schema_mvp.rs b/src/partition_schema_mvp.rs
--- a/src/partition_schema_mvp.rs
+++ b/src/partition_schema_mvp.rs
@@ -4075,8 +4075,9 @@
/// A door or window set in a curtain wall in place of a panel is one of its
/// parts too, as Revit's export aggregates RE1 Architecture's door 445975
/// under curtain wall 445961 (B64). It takes the curtain wall its record
-/// names, through a grid or directly; a door named by neither is in a wall,
-/// and no record box decides it.
+/// names through a grid, or the one wall it names when every host candidate
+/// is a curtain wall (RE-85); a door in a basic wall that also names a
+/// curtain wall is not aggregated, and no record box decides it.
fn attach_curtain_walls(
rf: &mut RevitFile,
revit_version: u32,
@@ -4182,6 +4183,9 @@
let Some(list) = list else {
continue;
};
+ let host_candidates = element_ids_field(element, OPENING_HOST_CANDIDATES_FIELD);
+ let only_curtain_wall_hosts = !host_candidates.is_empty()
+ && host_candidates.iter().all(|id| curtain_walls.contains(id));
let ids: Vec<u32> = list
.iter()
.filter_map(|&id| u32::try_from(id).ok())
@@ -4195,7 +4199,7 @@
.collect();
let whole = match (on_grid.len(), named.len()) {
(1, _) => on_grid.iter().next().copied(),
- (0, 1) => named.iter().next().copied(),
+ (0, 1) if only_curtain_wall_hosts => named.iter().next().copied(),
_ => None,
};
if let Some(whole) = whole {You can send follow-ups to the cloud agent here.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit a893af104b4bc6f21cb2a2681257329c57a03d8b. Configure here.
…xport (B64) RE1 Architecture's one door with no host wall is Door-Curtain-Wall-Double-Glas 445975, which Revit's export aggregates under curtain wall 445961 with no opening and no host (probe run 37216876941). tests/curtain_wall_doors.rs requires every door and window Revit's export aggregates under a curtain wall to be aggregated by rvt-rs under the curtain wall of the same Tag. Red on main (draft #658, run 37217383444, "Corpus health (tier 2)"): panicked at tests/curtain_wall_doors.rs:126:5: curtain wall doors and windows not aggregated as in Revit's export: ["445975: Revit's curtain wall 445961, rvt-rs's None"]
…, with no host wall (B64)
…n wall part, not one that names a curtain wall (B64, RE-46)
…'s export does (B64; existing test, changed with the maintainer's approval)
DrunkOnJava
force-pushed
the
feat/b64-door-in-curtain-wall
branch
from
October 4, 2026 16:57
9f35576 to
c52ab43
Compare
…ain-wall # Conflicts: # tools/ci/test-targets.txt
DrunkOnJava
enabled auto-merge (squash)
October 4, 2026 17:09
DrunkOnJava
added a commit
that referenced
this pull request
Oct 4, 2026
…64 and B70 in progress, B60 found (#660) Third session 3 progress update: five items landed, B64 (#659) and B70 in progress, new B70 and B71 rows (MEP sample performance), B68 blocked on B70, and RE-167's finding for B60. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only backlog and session notes; no runtime, CI config, or exporter behavior changes in this diff. > > **Overview** > Updates **BACKLOG.md** for maintainer session 3: the ranked table and progress log reflect landed work and new perf backlog, without any code changes. > > **Status moves in the ranked table:** **B44**, **B63**, **B66**, **B53**, and **B69** are marked **done** (with PR refs #651, #645/#656, #657, #653). **B60** and **B64** move from **committed** to **in progress** (RE-167 type GlobalId rule; #659 curtain-wall door aggregation). **B68** is **blocked** on **B70** (MEP sample export timeout). Two new rows: **B70** (`rvt-ifc` ~33.5 min on MEP samples; `attach_mep_systems` / `attach_pipe_type_names` scans) and **B71** (double file walk for export vs diagnostics). > > **Progress log additions** document how each item closed or advanced: B63’s plan-box overlap rule for medicine cabinet 375441; B53/B69 writer fixes (refuse checksummed pages, full gzip members); B44’s three-reader NominalDiameter path; B66 curtain material offsets; B64 curtain-grid door parts; B70’s one-pass-per-stream improvement (30 s walk, byte-identical RE1 MEP IFC); B60’s original-symbol GlobalId finding; and a note that unresolved Bugbot threads block merges until resolved. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit a2c5a15. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
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.


B64: RE1 Architecture's unhosted door 445975 is Door-Curtain-Wall-Double-Glas, which Revit's export aggregates under curtain wall 445961 with no opening and no host (probe run 37216876941). A door or window whose record names a curtain grid (RE-72) whose data names one curtain wall is now that wall's part and gets no host; naming a curtain wall directly is not enough (RE-46: three Snowdon doors name 1506500 and stay standalone). Red on draft #658 (output in the test commit). The pre-existing tests/curtain_walls.rs expected parts gain IfcDoor 1, Revit's own 13, in a separate commit with the maintainer's approval.