Repository navigation
feat(ifc): the Reference of Revit's common property sets, the type's name (#35) - #592
Merged
Merged
Conversation
) RE-154: Revit's export gives every element of the RE1 models Pset_QuantityTakeOff.Reference and, where its entity has one, its Pset_<Entity>Common.Reference (and on walls and slabs the reinforcement- pitch set's), each the type's name. The new real-file target checks, on the four RE1 models, that every element rvt-rs writes as Revit's entity with Revit's Tag and Name carries each of those values with Revit's value type, and that rvt-rs writes no Reference Revit does not. Red on main (draft #591, run 37133676030, Corpus health tier 2): thread 're1_common_references_are_revits' panicked at tests/common_reference.rs:214:9: RE1 Architecture: 93 of Revit's Reference values on elements rvt-rs writes as Revit does are not in rvt-rs's export, in {"Pset_BuildingElementProxyCommon", "Pset_CoveringCommon", "Pset_CurtainWallCommon", ...} test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.21s
…name (#35) RE-154: on all four RE1 models Revit's export gives every element Pset_QuantityTakeOff.Reference and its entity's common set's Reference (Pset_WallCommon, Pset_DoorCommon, Pset_DistributionFlowElementCommon and so on), and walls and slabs Pset_ReinforcementBarPitchOf{Wall,Slab} .Reference, each the type's name, the first three as IfcIdentifier and the last as IfcLabel. No stored parameter holds it; rvt-rs reads the type name from the partition name entries (RE-38). Each element named Family:Type:ElementId now gets those sets. Only the entities measured on the RE1 exports are listed (walls, slabs, doors, coverings, curtain walls, members, plates, railings, proxies, flow terminals, fittings and segments, furnishing and distribution control elements); any other gets none. A door or window written as its opening (RE-84) gets none.
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: Reference sets miss IFC4 types
- Extended
reference_property_setsmatch arms to include the IFC4 entity names the exporter emits so distribution, furnishing, and alarm elements receivePset_QuantityTakeOffandPset_DistributionFlowElementCommonReference values.
- Extended
Or push these changes by commenting:
@cursor push bf1c81ff30
Preview (bf1c81ff30)
diff --git a/src/ifc/export_content.rs b/src/ifc/export_content.rs
--- a/src/ifc/export_content.rs
+++ b/src/ifc/export_content.rs
@@ -910,10 +910,20 @@
"IFCPLATE" => &[("Pset_PlateCommon", true)],
"IFCRAILING" => &[("Pset_RailingCommon", true)],
"IFCBUILDINGELEMENTPROXY" => &[("Pset_BuildingElementProxyCommon", true)],
- "IFCFLOWTERMINAL" | "IFCFLOWFITTING" | "IFCFLOWSEGMENT" => {
- &[("Pset_DistributionFlowElementCommon", true)]
+ "IFCFLOWTERMINAL"
+ | "IFCFLOWFITTING"
+ | "IFCFLOWSEGMENT"
+ | "IFCDUCTSEGMENT"
+ | "IFCDUCTFITTING"
+ | "IFCPIPESEGMENT"
+ | "IFCPIPEFITTING"
+ | "IFCAIRTERMINAL"
+ | "IFCSANITARYTERMINAL"
+ | "IFCLIGHTFIXTURE"
+ | "IFCELECTRICAPPLIANCE" => &[("Pset_DistributionFlowElementCommon", true)],
+ "IFCFURNISHINGELEMENT" | "IFCFURNITURE" | "IFCDISTRIBUTIONCONTROLELEMENT" | "IFCALARM" => {
+ &[]
}
- "IFCFURNISHINGELEMENT" | "IFCDISTRIBUTIONCONTROLELEMENT" => &[],
_ => return Vec::new(),
};
std::iter::once(("Pset_QuantityTakeOff", true))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 ddc3249. Configure here.
…eference sets (#35) Walls, slabs and other system-family elements carry the type-without- geometry flag too (their types have no geometry-material map), so the first cut left them out: tests/common_reference.rs, 'RE1 Architecture: 65 of Revit's Reference values ... are not in rvt-rs's export', first wall 415431. RE-84's opening-only rule is for doors and windows.
…ated witness observations, for the Reference sets (#35) With the maintainer's approval. Core Interior's 360 walls, 132 doors and 80 slabs now carry the Reference sets Revit's export writes, so step.IFCPROPERTYSET moves 1086 -> 2670 in both project-count manifests (project_count_fixtures: 'step.IFCPROPERTYSET: actual 2670, expected 1086 +/- 8'). The witness observations are copied from Measure run 37134311032 at 6d69e03; the surface is unchanged.
DrunkOnJava
enabled auto-merge (squash)
October 3, 2026 15:53
…pes rvt-rs writes (#35) Bugbot: rvt-rs writes IfcDuctSegment, IfcPipeSegment, IfcAirTerminal, IfcFurniture, IfcAlarm and so on, where Revit's export writes the IfcFlowSegment, IfcFlowFitting, IfcFlowTerminal, IfcFurnishingElement and IfcDistributionControlElement supertypes, so the first cut gave them no Reference sets.
…s supertype (#35) Bugbot: the test matched entities exactly, so the IfcDuctSegment, IfcAirTerminal, IfcFurniture ... elements rvt-rs writes were never compared with Revit's IfcFlowSegment, IfcFlowTerminal, IfcFurnishingElement ... and their missing Reference sets went unseen.
…35) RE1 Plumbing's water closet tank 442378 is in rvt-rs's export and not in Revit's at all ('Reference values Revit's export does not hold: 442378 Pset_DistributionFlowElementCommon Water Closet Tank_M, None'). Whether an element should be exported is the element scorers' measure; this test is about the Reference of elements both write.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 3, 2026
…th and Reference (#35, #96) (#599) B21, fourth slice of #35, and part of #96. RE-134 found where a duct's or pipe's curve object keeps its fields, at its RbsCurveConnectorManager anchor: width at +8, height at +16, type id at +64. This reads them in code. - The anchors are one per curve. Each goes to the one element whose box holds the points of the first two connector entries after it. A neighbour joined at one end holds only that end. The first cut, which used the first entry in the stream, missed 13 ducts. - A duct now carries its type and that type's name. An axis-aligned duct also carries its length: the box dimension its section leaves. - It gets both flow-segment Length sets, as pipes do (#595), and its type's name as Reference (#592). - Its system family follows its shape, which is not read, so it keeps its Duct-<id> name. - **Test (separate commit):** tests/duct_fields.rs on RE1 Mechanical's 25 ducts. Red on main in draft #598 (run 37136951323): 100 of 100 values missing. It passes on the runners (CI run 37137543874). **Measure** (run 37137540566, RE1 Mechanical, head against main) | | before | after | |---|---|---| | Pset_DistributionFlowElementCommon.Reference | 48 of 73 | 73 of 73 | | Pset_QuantityTakeOff.Reference | 49 of 74 | 74 of 74 | | Flow-segment Length, each set | 5 of 31 | 29 of 31 | | Type names | 49 of 74 | 74 of 74 | The 2 Lengths counted as different are within 0.1 mm. This branch's scorer predates the tolerance in #597. Every other model is identical to main.
This was referenced Oct 3, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Oct 4, 2026
…679) BACKLOG.md: statuses for B45, B46, B54, B55, B56, B60, B64, B68, B70 and B71; new rows B72 to B77; the afternoon's progress log (red and green runs, Measure evidence, the B38 and B47 findings, rule notes). CHANGELOG.md [Unreleased] stopped at #592 (B76). It now has an entry for each user-visible change since, through #677, grouped as the file groups them (Added, Changed, Fixed, Research). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Markdown-only updates to BACKLOG and CHANGELOG; no application, test, or CI logic changes in this diff. > > **Overview** > **Documentation-only (B76):** brings maintainer backlog and public release notes in line with session 3 work already merged in other PRs—no runtime or exporter code changes. > > **`BACKLOG.md`** updates the ranked table (e.g. B45–B46, B55–B56, B60, B64, B68–B71 marked **done**; B47 **blocked** on MEP-sample evidence; B54 **in progress** on #673). It adds backlog rows **B72–B77** (type GlobalIds, `typed-no-geometry` gap, 2024 ordinals, changelog debt, `--saved-meshes` gating). A new **Session 3, afternoon** progress log records PRs, CI runs, Measure evidence, and rule notes; **Findings** are revised (B38 phase refutation, B55 opening, B74/B77). > > **`CHANGELOG.md` `[Unreleased]`** is extended from #592 through **#676**: **Added** (wall-profile opening, native 2025/2026 + phases, railing types, duct/pipe end ports, type GlobalIds, curtain doors/materials, space containment, MEP systems, parameters/CLIs, etc.), **Changed** (single export walk B71, MEP export perf B70, witness slim step B27), **Fixed** (`--saved-meshes` scope B77, `rvt-write` B69, diagnostics B49), and **Research** entries for RE-155–RE-168 and corpus pins. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 5f1e5fe. 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.


B21, second slice of #35 (RE-154, #590).
On all four RE1 models, Revit's export gives every element these Reference values, each holding the type's name:
No stored parameter holds the value; rvt-rs reads the type name from the partition name entries (RE-38).
Commits
Measure (run 37135379188, head against main, after the Bugbot fix for the IFC4 flow, furniture and alarm subtypes)
Every scorer output is identical to main, and tests/common_reference.rs passes on the runners (CI run 37135701455). Because the test judges only elements both exports hold, it leaves out RE1 Plumbing's water closet tank 442378: rvt-rs exports it and Revit does not.