Repository navigation
feat(ifc): a pipe's Length in its flow-segment property sets (#35) - #595
Merged
Merged
Conversation
Revit's export of the RE1 Mechanical and Plumbing models gives every pipe Pset_FlowSegmentPipeSegment.Length and Pset_FlowSegmentDuctSegment.Length, its length between its ends. The new real-file target checks that every pipe rvt-rs writes with Revit's Tag carries both, within 0.1 mm of Revit's, each file read in its own length unit. Red on main (draft #594, run 37136045232, Corpus health tier 2): thread 're1_pipe_lengths_are_revits' panicked at tests/segment_length.rs:193:9: RE1 Mechanical: 12 of the flow-segment Lengths of the 6 pipes both exports hold are not Revit's (tag, set, Revit's m, rvt-rs's m); first: [("441731", "Pset_FlowSegmentDuctSegment", 1.1400000000000001, None), ...] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.75s
Revit's export of the RE1 models gives every pipe Pset_FlowSegmentPipeSegment.Length and Pset_FlowSegmentDuctSegment.Length (IfcPositiveLengthMeasure), its length between its ends. Each pipe whose ends RE-131 reads now carries both.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 3, 2026
Records B21's progress (#588 to #595) with its red runs and pinned-data approvals, what stays open and why, and two findings logged this session. <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only backlog and session notes; no runtime or export behavior changes in this PR. > > **Overview** > Moves backlog item **B21** (0.5.0 parameters, milestone #35) from **open** to **in progress** and adds a progress log for work measured against Revit RE1 property sets. > > The log records landed or in-flight PRs **#588–#595**: room Floor Finish and `Pset_SpaceCommon`, common `Reference` / `Family:Type` naming, the Measure `psets_vs_ifc` scorer, and pipe segment `Length`, including red CI runs, integration tests (`space_common`, `common_reference`, `segment_length`), and maintainer-approved pinned property-set / witness updates. It also lists **still-open** parameter gaps (duct length, `FireRating`, non-text booleans, storey/building psets) and notes **#155**, **#223**, and **#228** as untouched. > > A new **Findings logged this session** section captures two research notes: an extra RE1 Plumbing export element rvt-rs emits that Revit does not, and the #227 63rd opening dependency on reading a wall edited profile. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 2daea1a. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
DrunkOnJava
enabled auto-merge (squash)
October 3, 2026 16:23
DrunkOnJava
added a commit
that referenced
this pull request
Oct 3, 2026
…#597) psets_vs_ifc compared numbers at six significant figures. A pipe length rvt-rs writes a micrometre off Revit's (the writer rounds metres to six decimals) counted as different: 2 of RE1 Mechanical's and 10 of Plumbing's Lengths on #595. Numbers of the same value type are now equal within a relative 1e-5, with an absolute floor of 1e-5 in the compared unit. Measure run 37137013931, on main with #595: - RE1 Plumbing: equal 370, different 0 (was 360 and 10). Both flow-segment Lengths are equal on 63 of 63 pipes. - RE1 Mechanical: equal 110, different 0 (was 108 and 2). 6 of 6 pipes are equal; the 25 ducts are missing until #599.
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 3, 2026
Records #595, #597 and #599 in B21's progress, with the property-set scores measured on main at #599's merge (Measure run 37138175399). <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Documentation-only backlog update; no runtime, export, or CI logic changes in this diff. > > **Overview** > Updates **B21** (parameters milestone) in `BACKLOG.md` to reflect work merged through **#599**, not new product code. > > **#595** is recorded as done (pipe `Length` in both flow-segment sets, with `tests/segment_length.rs` and its red run). **#597** notes that the `psets_vs_ifc` Measure scorer now treats numeric properties as equal within a relative **1e-5** tolerance so tiny writer rounding no longer counts as a mismatch. **#599** documents RE-134 duct curve fields (width, height, type at the connector anchor) plus per-duct type, `Length`, and `Reference`, with `tests/duct_fields.rs` and draft **#598**’s red run. > > Adds a **Measure run 37138175399** snapshot table (equal counts per RE1 model, none “different”) and notes progress posted on **#35**, **#96**, and **#227**. The open-items list drops the duct-`Length`/RE-134 note because **#599** covers it. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 2e023ef. 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, third slice of #35.
Revit's export of the RE1 models gives every pipe Pset_FlowSegmentPipeSegment.Length and Pset_FlowSegmentDuctSegment.Length (IfcPositiveLengthMeasure), its length between its ends. Each pipe whose ends RE-131 reads now carries both.
Measure (run 37136386732, psets_vs_ifc, equal Revit values before → after)
The scorer counts 2 values on Mechanical and 10 on Plumbing as different. Those are within 0.1 mm: the scorer compares at 6 significant figures, while the writer rounds metres to 6 decimals. A tolerance follows in the scorer. Every other model is identical to main.