Skip to content

fix(ifc): an oblique mullion at an end no longer leaves its mullion out, a partner end beside one or a mullion across inside is kept, and a joint centred under a mullion across is hidden: the offices gain 107 to 108 NetSurfaceArea values and 3 of the 4 different at permit are Revit's (#1767) (RE-438) - #1771

Merged
DrunkOnJava merged 5 commits into
mainfrom
fix/1767-oblique-and-partner-ends
Nov 11, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

Summary

Revit's Qto_MemberBaseQuantities.NetSurfaceArea of a curtain mullion counts an end where an oblique mullion lies at it (all 50 ends with only an oblique neighbour and all 76 with a partner and one, on the BIM4LCA concrete office as built) and an end where a partner meets a mullion across holding the end's point inside its box (all 52), and hides a partner joint where a mullion across is centred on it (the 4 ends of the chain of 50 x 50 mm pieces of the timber office at permit). RE-268's kept-ends rule hid the partner ends beside an oblique mullion, kept the chain's joints and left a mullion out for an oblique mullion or a mullion across inside at an end: 150 of the concrete office as built's 10,003 mullions and 153 of the timber office's 7,876. An end with a partner is now hidden unless an oblique mullion or one across holding its point inside lies at it, an end with no partner is hidden by a mullion across centred on it only, and a mullion is left out for an end with a mullion across inside and no partner (19 and 23; Revit counts such an end on 14 and hides it on 5 that read alike).

What moves (Measure 43092555284, unfiltered with keep_ifc, c106ebdd against main at a0c1c61a; GitHub's artifact outage failed 23 shards at upload and they ran again as the second attempt; the same-project gates pass): 126 exports, 117 identical and 9 differ, by Qto_MemberBaseQuantities.NetSurfaceArea of an IfcMember alone, no element added or removed.

NetSurfaceArea of the offices: equal, different, missing main this change
concrete office as built 9,388, 0, 615 9,496, 0, 507
concrete office at permit 9,416, 0, 615 9,524, 0, 507
timber office as built 7,289, 0, 587 7,396, 0, 480
timber office at permit 7,170, 4, 698 7,280, 1, 591

At permit the 4 values different fall to 1: 3539474, 3539475 and 3135318, the chain of #1767, are Revit's, and the short mitred piece 3029161 is not (0.0025 m² under, unexplained). The quantity census's different 29 to 26 and its equal +433; the property census does not move; rac_advanced 2024 to 2027 gain the same 32 mullions' values in each save and Snowdon Towers Architectural 24 (neither has a Revit value to meet). The rule's count is Revit's on all 131 (concrete) and 130 (timber) mullions it releases, none wrong, by the meshes, and the committed scorer, which reads the rule from the boxes alone, finds the same table and gives Revit's value on all 7,530 mullions it writes one for.

Motivation

#1767: the 4 values still different on the timber office at permit after RE-436, and #1046 (W7). Two throwaway debug builds (Measure 43086563944 and 43090090858, archived) printed what lies at each end of every mullion; RE-438 section 3 holds the table.

Changes

  • src/research/partition_schema_mvp/mullion_ends.rs: Neighbours::unread and hidden; four failure-first tests of the pure helper kept_ends (a joint centred under a bar is hidden, an oblique brace keeps a partner end and does not leave its mullion out, a bar across inside leaves an unpartnered end unread and a partnered one kept, an oblique mullion where one across is centred is not read).
  • tools/re/mullion_ends_vs_boxes.py: holds RE-432, RE-436 and RE-438 and prints what Revit does at an end by what lies at it.
  • reports/element-framing/RE-438-mullion-ends-beside-oblique-and-across.md, the reconnaissance addendum, the criteria entry, docs/status.md and changelog.d/fixed/1767-mullion-ends-beside-oblique-and-across.md.

Testing

Not done

Related issues

Refs #1767, #1790, #1046, #1636.

…ut, a partner with a mullion across inside is read, and a joint centred under a mullion across is hidden (#1767) (RE-438)
…and tabulates what Revit does at each end (#1767) (RE-438)
… exports move, the offices gain 107 to 108 NetSurfaceArea values, 3 of the 4 different at permit are Revit's (#1767) (RE-438)
@DrunkOnJava DrunkOnJava changed the title fix(ifc): an oblique mullion at an end no longer leaves its mullion out, a partner with a mullion across inside is read, and a joint centred under a mullion across is hidden (#1767) (RE-438) fix(ifc): an oblique mullion at an end no longer leaves its mullion out, a partner end beside one or a mullion across inside is kept, and a joint centred under a mullion across is hidden: the offices gain 107 to 108 NetSurfaceArea values and 3 of the 4 different at permit are Revit's (#1767) (RE-438) Nov 11, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 11, 2026 21:42
@DrunkOnJava
DrunkOnJava merged commit 6439e62 into main Nov 11, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1767-oblique-and-partner-ends branch November 11, 2026 22:15
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
… the report it carries from it (#1791) (#1792)

## Summary

The RE-id guard (`tools/ci/check_re_id_reuse.py`, in the PII guard job)
no longer fails a pull request for a report it carries from the pull
request it is stacked on. It read the reports a pull request adds
against `main` and failed the later of two open pull requests that added
one id. A stacked pull request holds its base's commits, so the base's
report is in its file list at the same path: #1791 (stacked on #1771)
was told to renumber RE-438, a report #1771 added and #1791 did not
write. The same path is one report seen twice. The same id at another
path, and a second file under the base's id, still fail.

## Motivation

A false red on `fast / PII guard` for #1791 (`RE-438 is also added by
#1771, opened first ... renumber this report`). Renumbering would have
broken the citations of RE-438 in #1771; the guard was wrong, not the
numbering.

## Changes

- `tools/ci/check_re_id_reuse.py`: a path an earlier open pull request
adds that this pull request adds too is no clash (`p not in paths`); the
docstring says why.
- `tools/ci/test_check_re_id_reuse.py`: three failure-first tests of the
pure `reused` judgement: the stacked pull request's inherited report
beside its own next id passes; a stacked pull request that adds a second
file under the base's id fails ("names 2 new reports"); a clash with a
different pull request's id at another path still fails beside a shared
one.
- `docs/maintaining.md`: the sentence that describes the rule.

## Testing

- [x] `python3 tools/ci/test_check_re_id_reuse.py`: 13 tests pass (10
before, 3 new), run the way CI runs them.
- [ ] `fast / PII guard` on this pull request; `full / CI passed` on the
final head. #1791's guard re-runs green once this lands and its branch
merges `main`.

No output of `rvt-ifc` changes, so no Measure.

## Audit-honesty checklist

- [x] No user-visible change: CI tooling only, no changelog fragment.
- [x] No reverse-engineering finding.
- [x] No emojis, no private paths in committed files.

## Legal and contribution hygiene

- [x] Apache-2.0. No Autodesk proprietary source, internals or NDA
material.
- [x] No new test fixtures.

## Breaking changes

None.

## Related issues

Refs #1791, #1771.
DrunkOnJava added a commit that referenced this pull request Nov 11, 2026
… (#1789)

## Summary

On the BIM4LCA housing terrain model, 23 elements carry an "Export to
IFC As" of `IfcGeographicElement` and Revit's own export writes every
one of them as that entity, while rvt-rs wrote them as `IfcFurniture`
(9), `IfcBuildingElementProxy` (12) and `IfcSlab` (2). The value was
read but not honoured: `EXPORT_OVERRIDE_TARGETS` had no
`IfcGeographicElement` entry, so `lookup_export_override_for` found
nothing and each element kept its category's entity. This adds the
target, limited to the four classes the export diagnostics name, with
the element's own or its type's "IFC Predefined Type" where that is an
`IfcGeographicElementTypeEnum` enumerator.

The two floors are the ones #1772 opened with (Tags 1455094 and 1455321,
`Floor:AP-nostopaikka.sijainti`): they are `IFCSLAB(..., '1455094',
.USERDEFINED.)` today and carry the six `Qto_SlabBaseQuantities` values
Revit does not write.

## Evidence

**The rule.** An element of class `Floor`, `Furniture`, `Planting` or
`SpecialtyEquipment` whose own or its type's "Export to IFC As" is
`IfcGeographicElement` is written as `IFCGEOGRAPHICELEMENT`, with
`PredefinedType` the element's own or its type's "IFC Predefined Type"
where that is one of IFC4's `IfcGeographicElementTypeEnum` values,
`TERRAIN`, `USERDEFINED` and `NOTDEFINED`, and `$` where it is not.

**What it covers, from `evidence/nordic-housing-terrain-concrete`**
(rvt-rs's diagnostics for the same model name exactly these 23:
"IfcGeographicElement on Furniture 9, IfcGeographicElement on Planting
9, IfcFlowTerminal on SpecialtyEquipment 3, IfcGeographicElement on
SpecialtyEquipment 3, IfcGeographicElement on Floor 2"):

- `class_sets_vs_ifc.txt`: Revit's 65 `IfcGeographicElement` are 0 same,
23 written as another class (`IfcFurniture` 9, `IfcBuildingElementProxy`
12, `IfcSlab` 2) and 42 absent. The 23 are exactly the elements carrying
the value; the 42 absent are `Toposolid` (5), `U2BicyclePost` (6) and
`Sub-Division` (31), classes rvt-rs does not map at all and which this
change does not touch.
- `predefined_types_vs_ifc.txt`: Revit's `IfcGeographicElementType`
carry `TERRAIN` 30, `USERDEFINED` 11, `NOTDEFINED` 1, and on the 23
elements Revit writes `USERDEFINED` on 20 and `NOTDEFINED` on 3. rvt-rs
reads those same values as the element's own or its type's "IFC
Predefined Type", so each of the 23 gets Revit's value: the 9 furniture,
6 planting, 3 specialty equipment and 2 floors `USERDEFINED`, the 3
planting `NOTDEFINED`. Checked in `rvt-rs.ifc`: 1421668 is
`IFCFURNITURE(..., .USERDEFINED.)`, 1414066 and 1393277 are
`IFCBUILDINGELEMENTPROXY(..., $)`, 1405092 `IFCBUILDINGELEMENTPROXY(...,
$)`, 1455094 `IFCSLAB(..., .USERDEFINED.)`.
- `qtos_vs_ifc.txt`: the six "rvt-rs quantities Revit does not write"
are all on the two floors (`Depth` 1, `GrossArea` 2, `GrossVolume` 1,
`NetVolume` 2), "Revit's Qto_SlabBaseQuantities: none". Traced in the
code: every slab quantity is gated on the entity, not the class.
`add_slab_gross_area` returns at `ifc_type != "IFCSLAB"`, `level_slab`
and `shaped_floor_body` likewise, and `add_slab_pitch` is only reached
through those two, so no slab set survives the entity change.
`Pset_SlabCommon` is not written either: `reference_set_kinds` filters
`STANDARD_PROPERTY_SETS` by `applies_to(ifc_type, ...)` and the set
applies to `IFCSLAB` alone, and `is_external_set` has no arm for the new
entity.
- `psets_vs_ifc.txt`: Revit writes no `Pset_SlabCommon` on the two
floors, no `Pset_FurnitureTypeCommon.Reference` on the 9 furniture and
no `Pset_BuildingElementProxyCommon` on the 12 proxies; all three are in
its "rvt-rs values Revit does not write" list, so they go with the
class. The measurement will give the new total (49 today).
- `type_objects_vs_ifc.txt`: "entity disagrees: 23
`IfcGeographicElement`" and "typed in ours: 501 of 501". Without a type
entity the 23 would lose their type object, so `type_entity_for` gains
`IFCGEOGRAPHICELEMENT` (tail `PredefinedType`, IFC4's
`IfcGeographicElementType` declaring nothing after `ElementType`) and
`revit_ifc_type_entity_name` gains its revit-ifc name for the hashed
GlobalId of a second type object of one type, as RE-417 did for
`IfcSolarDevice` and `IfcTransportElement` (commit 134db97). Each of
the 23 is then typed by an `IfcGeographicElementType` with `USERDEFINED`
or `NOTDEFINED`, both of which Revit writes.

**What it leaves out.** The value is acted on for the four classes only
(`OVERRIDE_CLASS_LIMITS`), because that is what is measured; revit-ifc
takes the entity from the value on any `IfcProduct`
(`ExporterUtil.GetExportType`), so the limit is the evidence's, not
Revit's. An element of those classes carrying the value but no "IFC
Predefined Type" is written with `$`: what Revit writes for one is not
measured, so the target's default is `None` rather than a guess. The 42
`IfcGeographicElement` of Revit's export that rvt-rs does not write at
all are `Toposolid`, `U2BicyclePost` and `Sub-Division`, unmapped
classes outside this task. The three `IfcFlowTerminal` on
`SpecialtyEquipment` are a different value with no target and stay
`IfcBuildingElementProxy`, as they are; the diagnostics will still count
them ("3 element(s) carry an "Export to IFC As" value the export does
not apply ... IfcFlowTerminal on SpecialtyEquipment 3").

**The body** is unchanged: geometry is chosen by the decoded class, not
the entity, so the 23 keep the bodies they have today.

**No other model moves.** The office as-built diagnostics list only
`IfcShadingDevice`, `IfcWall` and `IfcCovering` values, and the concrete
housing as-built carries no `IfcGeographicElement` value at all, so no
element of either changes class.

**The measurement this pull request must name**, on both housing terrain
models: of Revit's 65 `IfcGeographicElement`, how many rvt-rs writes as
that class (23 are written as another class today: `IfcFurniture` 9,
`IfcBuildingElementProxy` 12, `IfcSlab` 2, and 42 are absent and stay
absent), "rvt-rs quantities Revit does not write" 6 to 0, and no class
count moving on any other model.

## Changes

- `src/ifc/category_map.rs`: the `IfcGeographicElement` target, its
class limit to `Floor`, `Furniture`, `Planting` and
`SpecialtyEquipment`, the `IfcGeographicElementTypeEnum` enumerators in
`OVERRIDE_ONLY_ENUMERATORS`, and the doc comments.
- `src/ifc/step_writer.rs`: `IFCGEOGRAPHICELEMENT` typed by
`IFCGEOGRAPHICELEMENTTYPE`, and that entity's revit-ifc name for the
hashed GlobalId.
- `changelog.d/changed/1772-geographic-element.md`: the fragment.
- `docs/supported-profile.md`, `docs/evidence.md`,
`docs/support-matrix.json`: the honoured value and the evidence for it.

No unit tests added; no test pins a value this moves.

## What was not checked

I could not compile or run anything, so CI must confirm that the new
target, the class limit and the enumerator list build and pass clippy,
and that the writer emits `IFCGEOGRAPHICELEMENT(..., 'Tag',
.USERDEFINED.)` and `IFCGEOGRAPHICELEMENTTYPE(..., .USERDEFINED.)` with
the attribute counts IFC4 declares. The measurement must confirm, on
both terrain models, the class counts above, the six quantities going to
0, the `PredefinedType` of the 23 and of their type objects, the
property sets that go with the old classes, and that no other model's
class counts move. The timber terrain model's own diagnostics and export
were not in the evidence I could read: its 23 elements are assumed to be
the same as the concrete model's, and the measurement is what settles
it.

## Measured

Unfiltered Measure 43100947234 with the held-out pairs (head `4d047255`:
#1787's commit and this change's on top, against `main` at `e8a99d03`;
rows registered on #1636 before it was read; 42 shards and both
same-project gates pass). Only the four terrain models move for this
change.

| Model | Revit's `IfcGeographicElement` written as that class | written
as another class | "quantities Revit does not write" | "values Revit
does not write" |
|---|---:|---:|---:|---:|
| Housing terrain, concrete | 0 to 23 of 65 | 23 to 0 | 6 to 0 | 49 to 6
|
| Housing terrain, timber | 0 to 23 of 65 | 23 to 0 | 6 to 0 | 49 to 6 |
| Office terrain, concrete and timber | 0 to 1 of 105 each | 1 to 0 each
| unchanged | 2 to 0 each |

- `PredefinedType` same as Revit on the 20 `USERDEFINED` elements of
each housing terrain model and on the office terrain's one, differs 0;
the 3 Revit writes `NOTDEFINED` on are unset.
- "different" is unchanged in both censuses, and no value becomes
missing (1,575 and 1,578 property values equal before and after on the
housing terrain models).
- The cause was confirmed beforehand from rvt-rs's own diagnostics for
the housing terrain model: 26 elements carry an "Export to IFC As" value
the export does not apply, 23 of them `IfcGeographicElement`. The three
enumerators equal IfcOpenShell's IFC4 schema tables.

## Still open

- The 42 (housing) and 104 (office) terrain elements Revit writes as
`IfcGeographicElement` that rvt-rs does not write at all.
- The 3 elements Revit writes `NOTDEFINED` on.
- #1751 (a sloped floor's `Depth`) can come back once this lands: the
floor it tripped on is no longer a slab.

## Testing

- Built, linted and tested by CI on this head; nothing was built on a
workstation.
- Measure 43100947234 measured 4d04725, which is #1787's head 438473f
with this patch cherry-picked on top; the same-project gates verdict
(pass) and the semantic verdict are on that commit, not on this branch's
own head. #1787 has landed (`ed57e095`) and `main` is merged in here as
`7ccd202a`, a clean merge: `git diff origin/main 7ccd202 -- src` is
byte-equal to `git diff 438473f 4d04725 -- src` (index lines apart),
and the delta outside `src` is byte-equal to this branch's own commit's.
`main` also holds #1773 and #1771 since the run; neither touches
`category_map.rs` or the two lines of `step_writer.rs` this changes.
Measure 43108424934 measures this change again on `main` at `e7ac68e7`
with everything else unlanded.
- No test was added, and no pinned count moves: only the four terrain
models' exports change.

## Breaking changes

None.
DrunkOnJava added a commit that referenced this pull request Nov 12, 2026
…ght (#1016) (#1783)

## Summary

Revit's IFC4 export of the BIM4LCA office as built writes
`Qto_SpaceBaseQuantities.Height` on 308 minus 44 family-instance spaces;
rvt-rs
writes it on the 234 rooms and on none of the 30 Areas. This change
writes an
Area's `Height` as the height of its body, from its Level up to the
Level above,
on Revit 2024 to 2027, and leaves a Revit 2015 to 2023 Area without one,
since
no export of that release's Area height is measured.

## Evidence

**The task is real and still open.** `docs/rooms.md:134` lists exactly
this value
under "What is not measured" for Areas ("which Revit writes on an Area
and rvt-rs
does not yet"), and the Areas row of `docs/support-matrix.json` says the
same. No
issue closes it against us: #1016 is the open W7 quantity umbrella and
puts the
remainder on #1046, #1165, #1203 (closed, columns), #1207 (spaces'
`GrossVolume`,
stepped rooms' `NetVolume`, Revit 25's area quantities), #1208 and
#1209, none of
which names an Area's height; #763 is closed and is about the 44
family-instance
spaces. `RE-317` §2 measured the value as the same number as the Area's
extrusion
depth on all 30 Areas of both office files, and `RE-324` §"not measured"
leaves it
out for 2015 to 2023. Nothing in the code or docs is a decision against
writing
it.

**Where the 14 are.** From `qtos_vs_ifc.txt`: `Height: 248, equal 234,
different 0,
missing 14`, `on IfcSpace x14`, and 6 more "on a repeated key, against
the object
held: missing 6"; `rvt-rs quantities Revit does not write: 0`, so rvt-rs
writes
`Height` on exactly 234 spaces. `space_kinds_vs_ifc.txt` splits the 308
`IfcSpace`
into 234 rooms, 30 Areas and 44 family instances. In `revit.ifc` a
family-instance space's `Qto_SpaceBaseQuantities` holds `GrossVolume`
and
`NetVolume` and no `Height` (e.g. `#787354`), while every one of the 30
Area
spaces carries a one-quantity `Qto_SpaceBaseQuantities` that is an
`IfcQuantityLength('Height',…)` equal to that Area's
`IfcExtrudedAreaSolid` depth
(e.g. `#69195`, height `3399.9999999999982` and depth
`3399.9999999999982`). The
Areas are `GFA 250mm` 1-5, `GFA` K/1/2/3/P/4/5, `BUSINESS SPACE` LIIK1,
`OFFICE`
TSTO1-TSTO11 and `HEATED NETAREA` K/1/2/3/4/5a.
`tools/re/qtos_vs_ifc.py` keys a
space by its `Name` and counts a repeated key apart: the 6 names shared
by two or
three Areas (1, 2, 3, 4, 5, K) are exactly its 6 "repeated key" heights,
and the
14 missing are the 14 uniquely named Areas — LIIK1, TSTO1 to TSTO11, P
and 5a.
There are no other `IfcSpace` without `Height` in the office's export.

**The rule.** rvt-rs already holds the number: a drawn Area carries
`AREA_BODY_HEIGHT_FIELD` (`m_area_body_height`), the elevation of the
next
building story less its Level's (`RE-317`), and extrudes its body by it.
Against
Revit's own `Height` in the same file the two agree inside the census's
1e-5
relative tolerance: area `1` 3.400000 m against 3399.9999999999982 mm,
TSTO5
3.950000 against 3949.9999999980364, 5a 5.970000 against
5970.0000000000118.
So an Area that rvt-rs draws gets that number; an Area it refuses keeps
none. A
room and a family-instance space are untouched (`ROOM_HEIGHT_FIELD` is
read
unchanged, and neither kind has an Area field).

**What stays out, and why the releases are gated.** A given Revit
release's export
is the oracle only where it exists: the Area height is measured on Revit
2024
(the office, both files, 30 of 30). Revit 2025 to 2027 Areas hold the
same body
height as that save — the same-project gate compares it, with `lowest
and highest
vertex`/`height` in `tools/re/areas_across_saves.py` — and `revit-ifc`
takes the
height from the Level distance for every release (cited in `RE-317` §2),
so they
are written too, labelled like the Areas themselves. A Revit 2015 to
2023 Area
keeps none: the only export of one is an IFC2X3 export whose quantities
are not
measured (`RE-324`). The gate cannot be 2024 alone:
`tools/re/readers_across_saves.py`
compares the sample projects' saves from `FIRST_YEAR = 2024` against the
2025 save
and fails a property written here and not in the reference, and
`Qto_SpaceBaseQuantities.Height` is in its `ADDED` list. An Area that
rvt-rs
refuses a body for still has no `Height`, so on a project where Revit
writes one
on a refused Area the value stays missing, not wrong.

## Changes

- `src/research/partition_area_records.rs`: `AREA_SPACE_HEIGHT_FIELD`
(`m_area_space_height`) and `AREA_HEIGHT_REVIT_VERSIONS` (`2024` to
`2027`), and
a drawn Area's `body.height_feet` is pushed under the new field on those
  releases only.
- `src/ifc/export_content.rs`: `add_space_height` takes that field as
well as
  `ROOM_HEIGHT_FIELD` and writes it as `Qto_SpaceBaseQuantities.Height`.
- `docs/rooms.md` (the room sentence and the unmeasured bullet),
`docs/supported-profile.md` (the space quantity sentence) and the Areas
row of
`docs/support-matrix.json`: an Area's height is written on Revit 2024 to
2027,
  and 2015 to 2023 stays out.
- `changelog.d/fixed/area-space-height.md`: the entry.

No test pins this value, so `tests/` is unchanged.

## Measured

One Measure run scored this change together with nine others it was
drafted beside (run 43086493417, head `f5f54467`, base `5e3ac5b0`: every
model, with the BIM4LCA office and housing, the Revit 2025 models,
Autodesk's samples of every release, rac_advanced, BIMcollab and the
held-out pairs; every shard and both same-project gates passed; rows
registered on #1636 before it was read). Each change writes a value of a
different name, so the rows below are this change's alone. Both sides'
exports were kept, and the 58 sample saves, which no Revit export
scores, were compared value by value. After the second read the stack
was rebuilt on `main` as seven changes (the pipe change left it, and the
roof and floor-opening rules were narrowed to square-cornered outlines)
and measured once more in full (run 43100937918, head `53c19487` against
`e8a99d03`, rows registered first, read on #1636): all shards and both
same-project gates pass, "different" and "values Revit does not write"
are unchanged on every model, and the rows below repeat except where a
line says otherwise.

| Model | `Qto_SpaceBaseQuantities.Height` equal, before | after |
different |
|---|---:|---:|---:|
| Office as built, at permit | 234 of 248 each | 248 of 248 each | 0 |
| Timber office as built, at permit | 231 of 244 each | 244 of 244 each
| 0 |
| Concrete housing as built | 82 of 89 | 88 of 89 | 0 |
| Concrete housing at permit | 81 of 88 | 87 of 88 | 0 |
| Timber housing as built | 84 of 91 | 90 of 91 | 0 |

- Both same-project gates pass, and rac_advanced's 2026 and 2027 saves
hold the `Height` of 116 spaces of their 2025 save (from 91), none
differing.
- Sample saves: 198 Areas in 6 saves gain the value (25 in each
rac_advanced save of 2024 to 2027, 96 in Snowdon Towers Architectural, 2
in Structural).

## Still open

- A 2015 to 2023 Area gets none: the only export of one of their Areas
is an IFC2X3 one whose quantities are not measured (RE-324).

Stack: this is change 4 of 7; each branch holds the ones before it, so
its own diff is its last commits until those land. First draft: #1756,
then #1777.

## Testing

- Built, linted and tested by CI on this head; nothing was built on a
workstation.
- Verified end to end on real Revit files against Revit's own exports:
the Measure runs named above, which anyone can repeat with `gh workflow
run measure.yml --ref main -f ref=<this head> -f
base=e8a99d03be8a76a2c8871ea8cc28d036653ec6e2 -f nordic=true -f
r2025=true -f samples=true -f racadv=true -f bimcollab=true -f
holdout=true`.
- No test was added: no unit test, and no pinned count moves except
where the body says so.
- `main` has moved since those runs (#1769 re-meshes trimmed faces, and
#1771, #1773, #1781, #1782, #1787 and #1789 landed). This head,
`0f82cb8e`, is `main` at `d1a5c0ee` merged in, with one docs line merged
word by word; its change against `main` is this pull request's own
commit and nothing else (byte-equal outside `docs/`, word-equal inside).
Measure 43108424934 measured the nine batch changes together on `main`
with #1769 (`3f2a04c4` against `e7ac68e7`, rows registered on #1636
first): every count above repeats, and the same-project gates pass.

## Audit-honesty checklist

- [x] Docs state what this change writes and what it leaves out
- [x] A changelog fragment under `changelog.d/`
- [x] No emojis, private paths or personal data in committed files
- [x] Limits are in the body above and in the code's doc comments

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA
material. Where revit-ifc (CLEANROOM.md source 5) is cited, it is read
and cited by file and class, and no code is copied.
- [x] No fixture with real-world personal data

## Breaking changes

None.
DrunkOnJava added a commit that referenced this pull request Nov 12, 2026
… and Height (#1165) (#1784)

## Summary

The 25 openings of the BIM4LCA office as built whose
`Qto_OpeningElementBaseQuantities.Depth` Revit's export writes and
rvt-rs's does not are the openings rvt-rs writes for a door that also
cuts a second wall (`ifc::wall_cut_openings`'s `door_cut`, `quantities:
false` since RE-338). They are written with no quantity set at all. This
change writes their `Depth`, the extent the opening is extruded across
that wall by, and leaves their `Width` and `Height` out.

## Evidence

- `evidence/nordic-office-as-built/qtos_vs_ifc.txt`: `Depth: 308, equal
283, different 0, missing 25`, all 25 `on IfcOpeningElement x25`; a
further 59 openings rvt-rs does not write are counted apart, and `rvt-rs
quantities Revit does not write: 0`.
- `evidence/nordic-office-as-built/unfilled_openings_vs_ifc.txt`, by
kind of cutter and host: `IfcCurtainWall in IfcWall` 27 of 27,
`IfcFireSuppressionTerminal in IfcWall` 39 of 39, `none in IfcWall` 30
of 30, `none in IfcSlab` 36 of 36 and `IfcSlab in IfcSlab` 1 have `Depth
equal`; `IfcDoor in IfcWall` is the one kind with `revit: 39, written:
25` and `Depth in Revit's: 25` but no `Depth equal` line — rvt-rs writes
those 25 openings and no `Depth` on any.
- The counts close exactly: 283 equal = 187 openings of a door or window
whose symbol cuts an outline (the filled openings, whose `Depth` the
writer already writes) + 96 of the 99 wall-cut openings it writes (three
curtain walls are written that Revit's export lacks); 283 + 25 = 308. So
the 25 are precisely the door-in-second-wall openings, and Revit writes
`Depth` on every one of them.
- What Revit's value is. RE-321 §3 (the rectangular, cabinet and
curtain-wall openings, all 96 equal) and RE-244 (the 187) find `Depth`
to be the extrusion's depth, i.e. the extent the opening passes through
the wall by, which is what `thickness_feet` already is for a wall-cut
opening. On a door's second-wall opening that extent is the door's own
width: `revit.ifc`'s opening `#77141` (Tag 1383546, unfilled, voiding
`Basic Wall:VS-2:1352055`) carries `Width` 100, `Height` 2100, `Depth`
810 mm — the profile is the second wall's plane (the door's own wall
thickness by the door's height) extruded 810 mm across it, and 810 mm is
the door's own opening's across extent, which RE-338 §3 measured as the
door's own opening box (equal to rvt-rs's box within 0.01 ft on 25 of 28
as built, and on all 25 these openings are the ones written). `Depth` =
3048 mm on exactly the 11 openings where the second wall runs *along*
the door's wall, which rvt-rs leaves out
(`door_second_wall_parallel_to_door_wall`, 9 of the 14 it leaves out of
the 39).
- Rule, and what stays out: `Depth` is written on every wall-cut opening
whose host holds that quantity (all 607 walls that rvt-rs writes hold a
`Width` here, and with `--no-base-quantities` the list is empty and
nothing is written). `Width` and `Height` stay missing on the 25:
Revit's export swaps them on a door's opening (RE-244, RE-235 §5) and
nothing read says it does not on this one, even though `#77141`'s are
the rectangle's extents. So `Width` 152 (missing 56) and `Height` 152
(missing 56) are unchanged, and the 14 door openings rvt-rs does not
write are untouched.

## Changes

- `src/ifc/step_writer.rs`: the wall-cut opening's quantity set is now
written where its host holds the quantity, not only where `Width` and
`Height` are written too; `Width` and `Height` are still pushed only for
the rectangular, cabinet and curtain-wall openings, so their output is
byte for byte what it was, and a door's second-wall opening gains a set
holding `Depth` alone.
- `src/ifc/entities.rs`, `src/ifc/wall_cut_openings.rs`: the doc
comments of `quantities` say why that opening takes only its `Depth`.
- `docs/supported-profile.md` and `docs/release-1.0-criteria.md`: the
sentences listing what an opening a door cuts in a second wall carries
gain the `Depth`, and say that its `Width` and `Height` stay out.
- `changelog.d/added/1165-door-second-wall-opening-depth.md`: new
fragment.

## Measured

One Measure run scored this change together with nine others it was
drafted beside (run 43086493417, head `f5f54467`, base `5e3ac5b0`: every
model, with the BIM4LCA office and housing, the Revit 2025 models,
Autodesk's samples of every release, rac_advanced, BIMcollab and the
held-out pairs; every shard and both same-project gates passed; rows
registered on #1636 before it was read). Each change writes a value of a
different name, so the rows below are this change's alone. Both sides'
exports were kept, and the 58 sample saves, which no Revit export
scores, were compared value by value. After the second read the stack
was rebuilt on `main` as seven changes (the pipe change left it, and the
roof and floor-opening rules were narrowed to square-cornered outlines)
and measured once more in full (run 43100937918, head `53c19487` against
`e8a99d03`, rows registered first, read on #1636): all shards and both
same-project gates pass, "different" and "values Revit does not write"
are unchanged on every model, and the rows below repeat except where a
line says otherwise.

The first draft wrote `Depth` alone. `Height` was added after reading
four such openings in Revit's export of the office (Width, Height and
Depth 100 / 2100 / 810 and 300 / 2100 / 1210 mm, the same way round as
on any rectangular opening; the table is in the last comment on #1749).

| Model | `Depth` equal, before | after | `Height` equal, before | after
| newly different |
|---|---:|---:|---:|---:|---:|
| Office as built | 283 of 308 | 308 of 308 | 96 of 152 | 121 of 152 | 0
|
| Office at permit | 262 of 295 | 295 of 295 | 75 of 137 | 108 of 137 |
0 |
| Timber office as built | 286 of 302 | 302 of 302 | 101 of 142 | 117 of
142 | 0 |
| Timber office at permit | 247 of 281 | 263 of 281 | 74 of 121 | 90 of
121 | 0 |
| Concrete housing as built, at permit | 72, 62 of 79 | 75, 65 of 79 |
18, 6 of 35 | 21, 9 of 35 | 0 |
| Timber housing as built, at permit | 67 of 68 each | 68 of 68 each | 7
of 19 each | 8 of 19 each | 0 |

- The timber office at permit read 9 `Depth` values different before and
reads the same 9 after.
- Sample saves: one opening in each rac_basic save of 2024 to 2027 gains
the two values.

## Still open

- `Width`, which Revit's export writes too, stays out: Revit's is the
thickness of the wall the door stands in, and rvt-rs's outline is 0.2 mm
wider than that on two of the four openings read, which the scorer would
count as different.
- A second wall that runs along the door's wall is still not written.

Stack: this is change 5 of 7; each branch holds the ones before it, so
its own diff is its last commits until those land. First draft: #1755,
then #1779.

## Testing

- Built, linted and tested by CI on this head; nothing was built on a
workstation.
- Verified end to end on real Revit files against Revit's own exports:
the Measure runs named above, which anyone can repeat with `gh workflow
run measure.yml --ref main -f ref=<this head> -f
base=e8a99d03be8a76a2c8871ea8cc28d036653ec6e2 -f nordic=true -f
r2025=true -f samples=true -f racadv=true -f bimcollab=true -f
holdout=true`.
- No test was added: no unit test, and no pinned count moves except
where the body says so.
- `main` has moved since those runs (#1769 re-meshes trimmed faces, and
#1771, #1773, #1781, #1782, #1787 and #1789 landed). This head,
`44bafde9`, is built on #1783's merged head `0f82cb8e`, so until #1783
lands its diff against `main` also shows #1783's change; its own change
(`0f82cb8e..44bafde`) is this pull request's two commits and nothing
else (byte-equal outside `docs/`, word-equal inside). It is armed only
after #1783 has merged. Measure 43108424934 measured the nine batch
changes together on `main` with #1769 (`3f2a04c4` against `e7ac68e7`,
rows registered on #1636 first): every count above repeats, and the
same-project gates pass.

## Audit-honesty checklist

- [x] Docs state what this change writes and what it leaves out
- [x] A changelog fragment under `changelog.d/`
- [x] No emojis, private paths or personal data in committed files
- [x] Limits are in the body above and in the code's doc comments

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA
material. Where revit-ifc (CLEANROOM.md source 5) is cited, it is read
and cited by file and class, and no code is copied.
- [x] No fixture with real-world personal data

## Breaking changes

None.
DrunkOnJava added a commit that referenced this pull request Nov 12, 2026
…Area where its outline is square-cornered (#1016) (#1786)

## Summary
`Qto_OpeningElementBaseQuantities.Area` is now written on an opening a
floor's sketch makes where its outline is not a rectangle, and on no
other unfilled opening. On the BIM4LCA office as built that is the 5
openings the census lists as missing, and the 31 rectangular sketch
openings, on which Revit's export writes no `Area`, keep none.

## Evidence
The census (`evidence/nordic-office-as-built/qtos_vs_ifc.txt`):
`Qto_OpeningElementBaseQuantities.Area: 5, equal 0, different 0, missing
5` (line 42), all on `IfcOpeningElement` x5 (line 123); 3 more on
openings rvt-rs does not write (line 7) and 1 on a repeated key (line
78).

Matching the two files of the office by Tag, the 5 are the same five
objects: **3190490, 3143563, 3146720, 3147725, 3151525**, all named
`Floor:VP-1:418397` in both files, each an opening of a floor's sketch
(RE-151) that rvt-rs already writes, with its box and its `Reference`
values equal.

- **What Revit's value is.** In every one of the 13 opening quantity
sets of Revit's export that hold an `IFCQUANTITYAREA`, the `Area` is the
area of the polygon the opening's body extrudes: e.g. 3.4096666 m2 for
opening 3190490, whose profile is a 890 x 3890 mm rectangle less a 230 x
230 mm notch (3.409662 m2 from rvt-rs's own outline, read in its file's
metres), and 9.634416 m2 for 3146720 against 9.634423 m2 from that
outline. The same holds for the four roof hatch openings (tag 2991742),
the two wall profile openings (1671974) and the door opening that cuts
two walls (1623922), which this change does not touch.
- **What tells the 5 apart.** rvt-rs writes 36 openings of a floor's
sketch on this file. Of those, exactly 5 have an outline that is not a
rectangle (a 6-corner outline with a notch, closed by a repeated last
point) and 31 are 5-point rectangles — and the 5 are Revit's 5, the 31
Revit's 31, on which Revit writes `Width` and `Height` and no `Area`.
Nothing else separates them: the 5 sit in five different floors
(1384047, 1451421, 1457693, 1457785, 1474132) among openings of the same
name, the same kind and the same depth.
- **A second model against the rule.** The housing as built's rvt-rs
export holds 11 openings of a floor's sketch (`Floor:VP-2`,
`Floor:AP-1`, `Floor:VP-1.OL`, `Floor:VP-1.KL`), all 5-point rectangles,
and its census misses no `Area` at all: the rule adds nothing there.
- **Rule.** On an opening a floor's sketch makes
(`IfcEntity::VoidOpening`, not a face-hosted cut) whose outline has more
than four corners, write `Area`, the outline's shoelace area in square
feet, as the wall profile opening's `Area` is written (RE-381). Read
from evidence: 5 of 5 equal on the model measured, none on the 31 Revit
gives none.
- **What it leaves out.** A quadrilateral that is not a rectangle (no
measured export has one, and nothing tells it from the 31); every other
kind of unfilled opening (a roof's hatch, a curtain wall's cut, a
cabinet's, a door's in a further wall, a wall's own profile opening),
which have their own rules; and a door's or window's opening. It also
does not touch the existing 3 `Area` values rvt-rs writes on the timber
office where Revit writes `Width` and `Height` instead (RE-402) — that
is the wall profile opening's rule, not this one.
- **`--no-base-quantities`.** The value is written only where rvt-rs
writes base quantities at all, the gate a door opening's `Depth` and a
wall profile opening's `Area` have (RE-242): with the flag every `Qto_`
set is empty and no opening quantity is written.

## Changes
- `src/ifc/step_writer.rs`: in the loop that writes an opening of a
floor's sketch, a boolean of whether any `Qto_` set still holds
quantities, and, on such an opening whose outline has more than four
corners, its `Area` as `IfcQuantityArea`, the outline's area (the
shoelace expression the wall profile opening's `Area` already uses).
- `docs/supported-profile.md`, `docs/evidence.md`: the two sentences
that list the openings' base quantities now say the floor sketch
opening's `Area` is written.
- `changelog.d/fixed/40-floor-void-opening-area.md`.

## Measured

One Measure run scored this change together with nine others it was
drafted beside (run 43086493417, head `f5f54467`, base `5e3ac5b0`: every
model, with the BIM4LCA office and housing, the Revit 2025 models,
Autodesk's samples of every release, rac_advanced, BIMcollab and the
held-out pairs; every shard and both same-project gates passed; rows
registered on #1636 before it was read). Each change writes a value of a
different name, so the rows below are this change's alone. Both sides'
exports were kept, and the 58 sample saves, which no Revit export
scores, were compared value by value. After the second read the stack
was rebuilt on `main` as seven changes (the pipe change left it, and the
roof and floor-opening rules were narrowed to square-cornered outlines)
and measured once more in full (run 43100937918, head `53c19487` against
`e8a99d03`, rows registered first, read on #1636): all shards and both
same-project gates pass, "different" and "values Revit does not write"
are unchanged on every model, and the rows below repeat except where a
line says otherwise.

| Model | `Qto_OpeningElementBaseQuantities.Area` equal, before | after
| different |
|---|---:|---:|---:|
| Office as built | 0 of 5 | 5 of 5 | 0 |
| Office at permit | 0 of 6 | 6 of 6 | 0 |
| Timber office as built, at permit | 0 of 12 each | 12 of 12 each | 0 |

- "quantities Revit does not write" is unchanged on every model, the
timber office's 3 included.
- Before the narrowing Core Interior gained 20 `Area` sets on floor
sketch openings that are not rectangles, which no Revit value scores
(its export writes no base quantities); after it none is written there.
- Sample saves: 12 openings gain the value, 10 in Snowdon Towers
Architectural and 2 in Structural.
- **Narrowed after the second read:** an outline with a corner that is
not a right angle now gets none. Revit takes the area from the sketch's
curves, and an arc reaches the outline as chords within 0.0005 ft, whose
polygon is short of it by more than the scorer's 1e-5 on a small radius.
The counts above, Core Interior's 20 and the samples' 12 included, are
from before the narrowing. **After it (the final run):** all four office
counts are kept (5 of 5, 6 of 6, 12 of 12, 12 of 12, none different),
and Core Interior's export is byte-identical: none of its 20 openings
passes, so no witness observation moves and no refresh is needed.
- **Tightened again:** the `Area` is written only where the outline has
more than four square corners, counted without the joints it runs
straight through, so a rectangle one of whose edges is two sketch lines
(five points, four corners) is left out: whether Revit calls that loop a
rectangle is not measured. The helper that counts them is pure and has
seven tests of the ways it can fail.

## Still open

- A rectangle gets no `Area` (Revit's export writes its `Width` and
`Height` there), and a four-cornered outline that is not a rectangle is
left out as unmeasured.

Stack: this is change 7 of 7; each branch holds the ones before it, so
its own diff is its last commits until those land. First draft: #1758,
then #1780.

## Testing

- Built, linted and tested by CI on this head; nothing was built on a
workstation.
- Verified end to end on real Revit files against Revit's own exports:
the Measure runs named above, which anyone can repeat with `gh workflow
run measure.yml --ref main -f ref=<this head> -f
base=e8a99d03be8a76a2c8871ea8cc28d036653ec6e2 -f nordic=true -f
r2025=true -f samples=true -f racadv=true -f bimcollab=true -f
holdout=true`.
- No test was added: no unit test, and no pinned count moves except
where the body says so.
- `main` has moved since those runs: the eight batch changes before this
one landed, with #1769, #1771, #1791 and others. This head, `422e9432`,
is `main` at `000fc1af` merged in. The merge resolved one conflict in
`src/ifc/export_content.rs`, where this pull request's own commits
rewrite the corner helper #1785 added, by taking this branch's side; the
resolved `export_content.rs` and `step_writer.rs` are byte-equal to the
files Measure 43108424934 measured at `3f2a04c4`, and the change against
`main` is this pull request's own three commits (byte-equal outside
`docs/`, word-equal inside).
- Because a source conflict was resolved, this head has an unfiltered
Measure of its own against `main`, with kept exports: run 43133784518,
rows registered on #1636 before it is read. Its same-project verdict and
the advisory semantic verdict land on this head.
- Autodesk's sample saves have no Revit export in Measure, so nothing
scores them; the kept exports are read by element instead. In run
43113322070 (all nine batch changes on `main`) the only sample saves
that gain this value are the two Snowdon Towers 2024 saves,
Architectural 10 and Structural 2 openings, with no existing value
changed or removed. Revit's own IFC4 export of the architectural file
was made without base quantities, so those 12 `Area` values are written
where no Revit export can check them.

## Audit-honesty checklist

- [x] Docs state what this change writes and what it leaves out
- [x] A changelog fragment under `changelog.d/`
- [x] No emojis, private paths or personal data in committed files
- [x] Limits are in the body above and in the code's doc comments

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary source, decompiled internals or NDA
material. Where revit-ifc (CLEANROOM.md source 5) is cited, it is read
and cited by file and class, and no code is copied.
- [x] No fixture with real-world personal data

## Breaking changes

None.
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