Skip to content

fix(ifc): a gutter is an IfcFlowSegment typed by an IfcPipeSegmentType GUTTER unless its own value names IfcPipeSegment, as Revit's export writes it (#1989) (RE-468) - #2006

Merged
DrunkOnJava merged 4 commits into
mainfrom
fix/1989-gutters-flow-segment
Nov 14, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
fix/1989-gutters-flow-segment

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

A gutter is written as an IfcFlowSegment typed by an IfcPipeSegmentType GUTTER, as Revit's IFC4 export writes it, unless its own or its type's "Export to IFC As" names IfcPipeSegment, which Revit acts on (the BIM4LCA office's 24 gutters). An IfcCovering value on a gutter is no longer acted on, as Revit ignores it. The "ducts" of #1989 are the three Gutter elements (family HLV-1.125) of each BIM4LCA housing file, which duct_bodies_vs_ifc counts with the flow segments. Closes #1989. Measure 43587477298 (ceaaf72d against main, unfiltered) moves the four large housing files and the Vitoria 2018 pair:

  • Class: the 3 gutters of each housing file read IfcFlowSegment where 2 read IfcCovering and 1 IfcPipeSegment: "same" 0 to 3 of 3 on the concrete and the timber housing, as built and at permit. Ducts written for Revit's 3: 1 to 3 of 3, every world box within 0.01 ft (worst 0.00000 ft).
  • Properties: the 2 Pset_CoveringCommon.IsExternal values the two covering gutters carried go (values Revit does not write 26 to 24, 27 to 25, 31 to 29, 27 to 25); equal and different values do not move. No count that equals Revit's falls.
  • Held-out Vitoria 2018 pair (counts only): its 2 gutters read IfcFlowSegment as Revit's IFC2X3 export has them (same 0 to 2 of 244; Pset_PipeSegmentTypeCommon.Reference missing 2 to 0).
  • Unchanged: the two housing terrain files, the office files (their gutters keep IfcPipeSegment) and the R2025 models.

Motivation

#1989: RE-402 reads 3 ducts in Revit's export of the housing and 1 in rvt-rs's, the box 3.0 ft off. The 3 are gutters, the offset is gone since the scorer's site-frame repair, and rvt-rs wrote all three in the wrong class. RE-468 has the evidence, including the probe of their export parameters (Measure 43583970009).

Changes

  • src/ifc/category_map.rs: the Gutter default is IFCFLOWSEGMENT; IfcPipeSegment is an override target limited to gutters; OVERRIDE_CLASS_EXCLUSIONS lists IfcCovering on a gutter as ignored.
  • src/ifc/step_writer.rs: IFCFLOWSEGMENT takes no PredefinedType; its type object is an IFCPIPESEGMENTTYPE GUTTER.
  • RE-468, docs (evidence.md, support-matrix.json, one-project-rules.md), a changelog fragment.

Testing

Measure 43587477298: ceaaf72d against main at 32ed4e6a, unfiltered with nordic, r2025, samples, holdout and racadv.

  1. Holds. duct_bodies_vs_ifc, class_sets_vs_ifc, psets_vs_ifc and saved_meshes_vs_ifc move as the Summary states on the four housing files; nothing else moves on the 42 models with a Revit export. 120 of 126 exports and 97 of 102 diagnostics.json files are identical to main's; the 6 and 5 that differ are the four housing files and the Vitoria pair.
  2. Not shown. The gutters' names (Gutter:HLV-1.125:<ElementId>) and ObjectType still differ from Revit's, and rvt-rs writes none on them (RE-468 section 6).
  • tools/check-local.sh: no local builds; rustfmt --check passes; CI runs the rest.

Audit-honesty checklist

  • The Summary states each change the run showed, with its count.
  • A changelog fragment.
  • No private paths or emojis.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk source (revit-ifc's ExporterUtil.GetProductExportType is cited for what Revit writes, not quoted); no fixtures.

Breaking changes

None.

Related issues

Closes #1989.

…e GUTTER unless its own value names IfcPipeSegment, as Revit's export writes it (#1989) (RE-468)

The "ducts" of #1989 are the BIM4LCA housing's three gutters. Revit's IFC4
export writes each, in each of the six files, as an IfcFlowSegment typed by an
IfcPipeSegmentType GUTTER; rvt-rs wrote two as IfcCovering ROOFING (their own
"Export to IFC As", which Revit ignores on a gutter) and one as IfcPipeSegment.
The office's 24 gutters carry an IfcPipeSegment value and Revit writes them as
IfcPipeSegment GUTTER, so that value is acted on, for gutters.
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 14, 2026 11:25
DrunkOnJava added a commit that referenced this pull request Nov 14, 2026
…, so a semantic-diff beyond the first 30 is found (#2010) (#2011)

## Summary

The Semantic check lists every artifact of a Measure run (`gh api
--paginate`, `per_page=100`) before it decides the run has no
`semantic-diff`. It read the first 30 of the run's 46, so on a run where
`semantic-diff` is not among the newest 30 it said "has no semantic-diff
artifact (no base, or no dump on either side), so no check run is
written" and the pull request got no verdict. Measure 43587477298 (draft
#2006) is such a run: the artifact exists (62,661 bytes), and two
semantic checks dispatched for it (43589932366, 43590094818) wrote
nothing; the same listing finds it on 43585759293 and 43583771747, which
hold the same 46 artifacts in another order. Closes #2010.

## Motivation

#2010. A check that reports an artifact absent when it is present is a
false green for the arm script: `arm.sh` reads "no semantic verdict" as
nothing to judge.

## Changes

- `.github/workflows/semantic-check.yml`: the artifact count reads every
page.

## Testing

Run 43590218954 dispatches the changed workflow from this branch against
Measure 43587477298: it finds the artifact, scores 12 elements added,
removed or changed on 42 models, and writes the check run on the
measured commit as `NOT MEASURED` because a run from a branch carries no
Jev key. The verdict itself needs the workflow on `main`; it is
dispatched again from there after this lands. `actionlint` and
`yaml.safe_load` pass on the file.

## Audit-honesty checklist

- [x] The Summary states each change the run showed, with its count.
- [x] No private paths or emojis.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk source; no fixtures.

## Breaking changes

None.

## Related issues

Closes #2010.
@DrunkOnJava
DrunkOnJava merged commit cf8cfd6 into main Nov 14, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1989-gutters-flow-segment branch November 14, 2026 12:06
DrunkOnJava added a commit that referenced this pull request Nov 14, 2026
…ped as a gutter, and the NOTDEFINED_DEFAULTS ramp line names Snowdon's two ramps (#1989) (#1713) (#2016)

## Summary

Two comments, no code. `category_map.rs`: the gutter mapping says why
`type_entity_for` may type every `IFCFLOWSEGMENT` as a gutter
(`IfcPipeSegmentType` `GUTTER`): the gutter mapping is the one way
rvt-rs reaches an `IfcFlowSegment` (no `EXPORT_OVERRIDE_TARGETS` value
names it), so a class written as one by another path needs its type
keyed on its own class first (#1989, owed since #2006). `fields.rs`: the
`NOTDEFINED_DEFAULTS` ramp line names Autodesk's Snowdon Towers 2024
sample, whose 2 ramps take the default and agree with Revit's own export
of that sample (the sample is on Measure; Revit's export of it is local
only, so no Measure scorer reads it; owed since #2008).

## Motivation

Both were raised in the review of their pull requests (#2006, #2008) and
left for the next change to those lines. They record a limit of a rule
and a measurement that no Measure run shows.

## Changes

- `src/ifc/category_map.rs`: four comment lines above the `Gutter`
mapping.
- `src/research/partition_schema_mvp/fields.rs`: four comment lines in
`NOTDEFINED_DEFAULTS`'s documentation.

## Testing

Output-neutral: the diff changes comments only, so no export, scorer or
behaviour moves and no Measure run applies. `rustfmt --check` passes on
both files; CI builds and checks the rest.

- [ ] `tools/check-local.sh`: no local builds; `rustfmt --check` passes;
CI runs the rest.

## Audit-honesty checklist

- [x] The Summary states each change the diff shows.
- [x] No private paths or emojis.
- [x] No capability claim changes, so no status document moves.

## Legal and contribution hygiene

- [x] Apache-2.0; no Autodesk source; no fixtures.

## Breaking changes

None.

## Related issues

Part of #1989 and #1713 (both closed or shipped; this only records their
limits).
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.

Ducts on the BIM4LCA housing: 1 of Revit's 3 written, its box 3.0 ft off (RE-212, RE-370, RE-371)

1 participant