Repository navigation
red: B33 MEP systems test alone (#528) - #629
Closed
DrunkOnJava wants to merge 1 commit into
Closed
DrunkOnJava wants to merge 1 commit into
DrunkOnJava wants to merge 1 commit into
Conversation
DrunkOnJava
force-pushed
the
red/b33-mep-systems
branch
from
October 3, 2026 19:39
4609cb5 to
f213d5d
Compare
Owner
Author
|
Red recorded (run 37148704032): no IfcSystem written. Closing the scratch PR. |
DrunkOnJava
added a commit
that referenced
this pull request
Oct 3, 2026
… (#631) RE-162 (B33, #528). An MEP system is an RbsHvacSystem, RbsPipingSystem or RbsElectricalSystem data object; its members are the exported elements whose own data objects hold its id. HVAC and piping systems are named by the object's first ASCII string, electrical systems by their circuit number (Revit's <unnamed> where it is empty). Writes IfcSystem, IfcRelAssignsToGroup and IfcRelServicesBuildings. Red on main: CI run 37148704032 (draft #629), RE1 Mechanical 5 of 5 systems missing. Green: CI run 37149305337, Corpus health tier 2: test re1_mep_systems_are_revits ... ok (all 26 of Revit's systems on RE1 Mechanical, Plumbing and Electrical, same name and members); every other corpus target unchanged. The doc fix follows that run. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Medium Risk** > Touches IFC export and partition binary heuristics for system membership; incorrect parsing could mis-group MEP elements, but scope is additive with corpus regression tests. > > **Overview** > Adds **end-to-end MEP system export** so rvt-rs can write Revit's HVAC, piping, and electrical systems as **`IfcSystem`** groups, matching Revit's IFC4 pattern (`IfcRelAssignsToGroup` + `IfcRelServicesBuildings`). > > A new **`partition_mep_systems`** scanner (Revit 2024+) finds `RbsHvacSystem`, `RbsPipingSystem`, and `RbsElectricalSystem` data objects, derives names (ASCII string for HVAC/piping, circuit number for electrical), and infers members from elements whose payloads reference the system id. **`partition_schema_mvp`** stamps each exported element with `m_mep_system_<id>` fields; **`export_content`** rolls those into **`IfcEntity::System`** records; **`step_writer`** emits the STEP entities, skipping systems with no exported building-element members. > > Corpus integration test **`re1_mep_systems_are_revits`** compares system names and member tags against Revit's RE1 Mechanical/Plumbing/Electrical IFC exports; CI adds the **`mep_systems`** target. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 7ef40bd. 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.
Scratch PR: the new test mep_systems on its own, to show it red on CI before the implementation. Closed once the red run is recorded.
Note
Low Risk
Test-only and CI manifest change; no production export logic is modified, though CI may fail until MEP system export is implemented.
Overview
Adds a real-file integration test for RE-162 (B33, #528) that will enforce MEP
IfcSystemparity with Revit’s IFC4 export on the RE1 Mechanical, Plumbing, and Electrical models.The new
re1_mep_systems_are_revitstest reads referenceRE1-<discipline>.ifcfromRVT_PROJECT_CORPUS_DIR, parsesIfcRelAssignsToGroup→IfcSystemgroupings by system name and elementTag, exports the matching.rvtviaRvtDocExporter, and asserts each Revit system name maps to the same member tags among elements rvt-rs actually writes. It skips when the corpus env var or files are missing and checks expected system counts (5 / 8 / 13).mep_systemsis registered intools/ci/test-targets.txtas arealtarget so CI runs it with the other corpus tests. This is intended as a red test ahead of the exporter work, not the implementation itself.Reviewed by Cursor Bugbot for commit 4609cb5243b880d14f78057f50a8d8d5b479de08. Configure here.