Repository navigation
red: duct segment type common test alone (#35) - #604
Closed
DrunkOnJava wants to merge 1 commit into
Closed
DrunkOnJava wants to merge 1 commit into
DrunkOnJava wants to merge 1 commit into
Conversation
Owner
Author
|
Red run recorded (run 37140175260: 25 of 25 RE1 Mechanical ducts lack Pset_DuctSegmentTypeCommon.Length); the test is cherry-picked onto the item branch with that output. |
DrunkOnJava
added a commit
that referenced
this pull request
Oct 3, 2026
…605) Revit's IFC4 export of RE1 Mechanical gives every duct Pset_DuctSegmentTypeCommon with Length, the same value as its two flow-segment sets (which rvt-rs already matches, 31 of 31). rvt-rs now writes it on ducts. Revit also writes the set on RE1 Mechanical's 6 pipes but on none of RE1 Plumbing's 63, so the pipes are left out: IFC4 defines the set for duct segments. Shape is not written, as the round versus rectangular switch is not read (RE-134). Test: tests/duct_segment_type_common.rs (real target). Red on main: draft #604, run 37140175260, 25 of 25 ducts lack the set; the output is in the test commit's message. Core Interior has no ducts, so no pinned count moves. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Adds one more property set on duct exports using the same length already written elsewhere; pipes and geometry paths are untouched. > > **Overview** > Duct IFC export now emits **`Pset_DuctSegmentTypeCommon`** with a **`Length`** property (same value as the existing flow-segment length sets), matching Revit’s RE1 Mechanical IFC4 behavior. Pipes are unchanged—only the duct branch adds this third property set when segment length is known. > > A new **real-file** test (`duct_segment_type_common`) exports `RE1-Mechanical.rvt`, compares `Pset_DuctSegmentTypeCommon.Length` on shared duct tags against Revit’s reference IFC (0.1 mm tolerance, per-file length units), and **`tools/ci/test-targets.txt`** registers the target for CI. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 37b1bc1. 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 duct_segment_type_common 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 registration; no production export logic changes in this PR.
Overview
Adds a real-file corpus test for issue #35 that locks Revit parity for duct
Pset_DuctSegmentTypeCommon.Lengthon the RE1 Mechanical model.The test exports
RE1-Mechanical.rvtwithRvtDocExporter, parses STEP/IFC forIFCDUCTSEGMENTelements by RevitTag, and comparesLengthinPset_DuctSegmentTypeCommonagainst Revit’s referenceRE1-Mechanical.ifc(read fromIFCFLOWSEGMENT), within 0.1 mm after normalizing each file’s length unit. It expects 25 overlapping ducts and skips whenRVT_PROJECT_CORPUS_DIRor corpus files are missing.tools/ci/test-targets.txtregistersduct_segment_type_commonunder therealclass so CI runs this gate (intended to fail until export implements the property set).Reviewed by Cursor Bugbot for commit f8c95fe. Configure here.