Skip to content

feat(ifc): a duct's Length also in Pset_DuctSegmentTypeCommon (#35) - #605

Merged
DrunkOnJava merged 2 commits into
mainfrom
feat/duct-set
Oct 3, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
feat/duct-set

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 3, 2026 •

Copy link
Copy Markdown
Owner

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.


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.

Reviewed by Cursor Bugbot for commit 37b1bc1. Configure here.

)

tests/duct_segment_type_common.rs: every duct rvt-rs writes with Revit's
Tag on RE1 Mechanical must carry Pset_DuctSegmentTypeCommon.Length within
0.1 mm of Revit's.

Red on main (draft #604, run 37140175260, Corpus health tier 2):

---- re1_duct_segment_type_common_length_is_revits stdout ----
thread 're1_duct_segment_type_common_length_is_revits' panicked at tests/duct_segment_type_common.rs:187:5:
25 of the 25 ducts both exports hold lack Revit's
Pset_DuctSegmentTypeCommon.Length (tag, Revit's m, rvt-rs's m); first:
[("428274", 0.2, None), ("435015", 0.011107575950615366, None),
 ("435175", 0.14618932188105463, None), ("438792", 0.01460000000002267, None),
 ("438801", 0.4348446795911576, None)]
test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.78s
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 3, 2026 17:52
@DrunkOnJava
DrunkOnJava merged commit 55c08ee into main Oct 3, 2026
24 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/duct-set branch October 3, 2026 17:55
DrunkOnJava added a commit that referenced this pull request Oct 3, 2026
Phase 0 of session 2: repository state, test inventory, the property-set
gap after #603/#605/#608, RE-157's finding, and ranked items B26 to B43
with the 16 committed for this session. Also records #601 to #608 in
B21's progress and corrects the B23 table's stale statuses.

<!-- CURSOR_SUMMARY -->
---

> [!NOTE]
> **Low Risk**
> Documentation-only maintainer backlog updates; no runtime, CI config,
or application code changes in this diff.
> 
> **Overview**
> Updates **`BACKLOG.md`** for maintainer **session 2 (2026-10-03)**:
session settings now record test policy **(a)** (leave remaining suites
untouched after B23), the **ordered committed queue** (B27→B33 and
related ids), and a fresh **Phase 0** snapshot (git/CI, unit-test
inventory post-mirror deletion, `psets_vs_ifc` gaps, RE-157 pipe inner
diameter).
> 
> Adds a **session-2 work table** for **B26–B43** (16 items committed,
B42/B43 blocked on models), extends the **B21 progress log** with
**#601–#608** and reframes still-open parameter/property-set work toward
the new items, logs **four session findings** (witness CI cycles/B27,
duct segment quirk, etc.), and **marks B23 mirror-deletion areas** as
done in **#574–#577** with Python kept under **B25**.
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
502bb34. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant