Skip to content

research(ifc): Revit's exporter sets curtain members' IsExternal through a cache of their types; the replay is exact on the office (#35) (RE-269) - #1159

Merged
DrunkOnJava merged 8 commits into
mainfrom
re/269-member-is-external-cache
Oct 30, 2026
Merged

DrunkOnJava merged 8 commits into
mainfrom
re/269-member-is-external-cache

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

Explains the largest single gap in W7: Revit's IsExternal on the BIM4LCA office's 10,003 curtain mullions and 260 curtain panels. It is not in the model. revit-ifc's IsElementExternal gives a family instance its host's value through one ElementId cache; the exporter that made the office's exports (24.0.5.432) also puts each member type into that cache as not external once the first curtain wall that uses it has had its property sets created, so every later wall's members of that type read false. Replaying that cache over the walls in ElementId order is Revit's value on every member. No behaviour change: rvt-rs still writes no IsExternal on mullions and panels.

Motivation

W7 (docs/release-1.0-criteria.md), #35. RE-193 §6, RE-226 §2 and RE-241 found the host rule wrong on most mullions and no field of the member, type or wall that decides.

Measured (Measure run 41106058055, -f nordic=true -f r2025=true)

office host rule (RE-193) equal / different cache replay equal / different
as built, 10,003 IfcMember (498 true) 1,424 / 8,579 10,003 / 0
as built, 260 IfcPlate (30 true) 227 / 33 260 / 0
permit, 10,031 IfcMember (498 true) 1,454 / 8,577 10,031 / 0
permit, 269 IfcPlate (30 true) 237 / 32 269 / 0

The two splits inside one wall (1 of 5, 2 of 29) and the wall whose members are all false because it is the first interior wall to use a type are reproduced. The 220 IfcCurtainWall entities in Revit's exports are in ElementId order (0 inversions). Revit's export also writes IsExternal false on each member type's object, which the IFC_v24.3.40 source does not produce (it returns null for a type, from IFC_v24.2.20 on).

Not measured: an exporter after IFC_v24.2.0 on a model with a member type shared across walls. RE1 Architecture (exporter 26.2.0.20): 10 mullions and 2 panels on one interior wall, false by either rule. The R2025 models (25.0.2.419) have no curtain member. The exporter version is not in the .rvt (RE1 was saved by build 20250515 and exported by 26.2.0.20).

Decision (the maintainer, 2026-10-30)

Leave the 10,263 values and their type objects' out and count them apart, as known-wrong exporter output with WalkingLineOffset and mullion CrossSectionArea (RE-235 §5). Not taken: writing the replay on Revit 2024 files (wrong for a 2024 file a later exporter exports), and writing the host rule (Revit's on 1,651 of 10,263). The census change is a separate PR.

Changes

  • probes/examples/probe_is_external_members.rs: per IfcMember and IfcPlate, its type, host, the host's native Function and the type's own Function entry.
  • tools/re/member_is_external_cache_vs_ifc.py: scores the host rule and the cache replay against Revit's export, prints the exporter version from the FILE_NAME header.
  • reports/element-framing/RE-269-curtain-member-is-external-cache.md, a changelog fragment, the W7 row's pointer and the reconnaissance addendum.

Testing

  • End to end on real files: the Measure run above, reproduce command in the report. Unit tests are banned and none are added.
  • No exporter output changes (no change under src/), so no witness replay.

Audit-honesty checklist

  • Changelog fragment under changelog.d/research/
  • python3 tools/release/changelog.py check and python3 tools/ci/api-doc-ids.py pass
  • Clean room: revit-ifc read and cited by file and class (CategoryUtil, ProductWrapper, PropertyUtil, IsExternalCalculator, CurtainSystemExporter), no code copied

Breaking changes

None.

Related issues

Refs #35.

@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Owner review: research only, no src/ change. Checked the revit-ifc reading myself: at IFC_v24.1.0 CategoryUtil.IsElementExternal handles element is ElementType and falls to CacheIsElementExternal(elementId, false); at IFC_v24.3.40 it returns null for an ElementType. The replay is exact on both office files (10,263 and 10,300, 0 different). §5 records the maintainer's 2026-10-30 decision (leave out, count apart as exporter-defect output) and the two options not taken; §6 reproduces from --ref main with a full SHA. The census change that counts the values apart is a separate PR. Armed.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 30, 2026 19:34
@DrunkOnJava
DrunkOnJava merged commit 80442f8 into main Oct 30, 2026
27 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/269-member-is-external-cache branch October 30, 2026 19:46
DrunkOnJava added a commit that referenced this pull request Oct 30, 2026
…part, as the exporter's cache output (W7) (RE-269) (#1170)

## Summary

Follows #1159 (RE-269) and the maintainer's decision of 2026-10-30: the
10,267 curtain-member `IsExternal` values Revit's export writes on the
BIM4LCA office as built (10,304 at permit) are the exporter's cache of
element types at work, not the model's. rvt-rs never writes them, so
`tools/re/psets_vs_ifc.py` now counts them apart with the other
known-wrong exporter values (RE-235 §5) instead of as missing. **No
export changes**; only the census and the documents that quote it. No
new RE report: RE-269 covers it.

## Motivation

W7 (`docs/release-1.0-criteria.md`), #35. 10,003 of the census's 12,672
missing values (with `--revit-set-placement`) were curtain mullions'
`IsExternal`, which the model cannot give.

## Measured

`psets_vs_ifc`, the scorer of this branch against `main` at b9e0ce7's
scorer, on the same exports. Property values Revit's export writes on
objects rvt-rs writes (total / equal / different / missing):

| | main | this branch |
|---|---:|---:|
| office as built, with `--revit-set-placement` | 57,773 / 45,045 / 56 /
12,672 | 47,506 / 45,045 / 56 / 2,405 |
| office at permit, with it | 57,915 / 45,227 / 56 / 12,632 | 47,611 /
45,227 / 56 / 2,328 |
| office as built, without it | 57,773 / 44,079 / 56 / 13,638 | 47,506 /
44,079 / 56 / 3,371 |
| office at permit, without it | 57,915 / 44,261 / 56 / 13,598 | 47,611
/ 44,261 / 56 / 3,294 |

Runs: before 41117828966 (with) and 41117835321 (without), after
41117832403 and 41117838385, on `main` at b9e0ce7 and this branch at
6789519. Equal and different are unchanged on all 31 models; only the
two office files move, by 10,267 and 10,304 values. The new lines the
census prints:

```
Revit values known to be wrong, left out (RE-235 §5, RE-269): Pset_MemberCommon.IsExternal on curtain members 10003
Revit values known to be wrong, left out (RE-235 §5, RE-269): Pset_MemberCommon.IsExternal on types 4
Revit values known to be wrong, left out (RE-235 §5, RE-269): Pset_PlateCommon.IsExternal on curtain members 260
```

(permit: 10,031, 4 and 269). The unfiltered run
[41114107468](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41114107468)
(`-f base=main -f nordic=true -f r2025=true -f
ifc_flags=--revit-set-placement`, this branch at 582aa50 against `main`
at a866151) has 1,409 files identical between the two sides, every
`ifc.sha256` among them: no export moved.

The largest of the 2,405 still missing are the glazing set's
`IsLaminated` and `IsTempered` (846 each) and rooms' `OccupancyType`
(234).

## Scope of the count-apart (a choice to confirm)

The census counts a curtain member's value apart only where the export's
own type objects hold `IsExternal` in the member's set, which is how
that exporter's output (24.0.5.432 on the office) differs from a later
one's. RE1 Architecture's 12 members (exporter 26.2.0.20, IFC2X3, no
type holds one) are scored: still missing, 64 as before. If the decision
is to leave every curtain member's value out whatever the exporter,
`curtain_cache_values` is one condition to drop.

## Changes

- `tools/re/psets_vs_ifc.py`: `curtain_cache_values`, the `RE-235 §5,
RE-269` count-apart lines, the docstring.
- `docs/release-1.0-criteria.md` W7 row, `docs/supported-profile.md`,
`docs/support-matrix.json` (the `ifc-is-external` note), README and
ROADMAP (cite RE-269), RE-235 §5 (a row and the counts).
- `changelog.d/changed/psets-curtain-member-is-external.md`.

## Testing

- [x] End to end on real files: the Measure runs above; no unit tests
added.
- [x] No exporter output changes (nothing under `src/`), so no witness
replay.
- [x] `python3 tools/release/changelog.py check` and `python3
tools/ci/api-doc-ids.py` pass.

## Breaking changes

None.

## Related issues

Refs #35, #1018. Follows #1159.
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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