Repository navigation
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
Conversation
8 tasks done
Owner
Author
|
Owner review: research only, no |
DrunkOnJava
enabled auto-merge (squash)
October 30, 2026 19:34
3 tasks done
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.
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.
Summary
Explains the largest single gap in W7: Revit's
IsExternalon the BIM4LCA office's 10,003 curtain mullions and 260 curtain panels. It is not in the model. revit-ifc'sIsElementExternalgives 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 noIsExternalon 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)IfcMember(498 true)IfcPlate(30 true)IfcMember(498 true)IfcPlate(30 true)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
IfcCurtainWallentities in Revit's exports are in ElementId order (0 inversions). Revit's export also writesIsExternalfalse on each member type's object, which theIFC_v24.3.40source does not produce (it returns null for a type, fromIFC_v24.2.20on).Not measured: an exporter after
IFC_v24.2.0on 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
WalkingLineOffsetand mullionCrossSectionArea(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: perIfcMemberandIfcPlate, 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
src/), so no witness replay.Audit-honesty checklist
changelog.d/research/python3 tools/release/changelog.py checkandpython3 tools/ci/api-doc-ids.pypassCategoryUtil,ProductWrapper,PropertyUtil,IsExternalCalculator,CurtainSystemExporter), no code copiedBreaking changes
None.
Related issues
Refs #35.