Repository navigation
feat(ifc): write a wall's IsExternal and the parameters named for a property on Revit 2015 to 2023 (#1158) (RE-283) - #1182
Merged
Conversation
…ative reader (#1158) (RE-282)
…t 2015 to 2023 (#1158) (RE-283)
…admitted to a release (#1158) (RE-282) Reading it in every reader moved three Revit 2023 exports no export checks (connector ports on the 2023 samples, a material association on Einhoven); each reader is admitted on its own measurement instead.
…y the wall Function reader itself (#1158) (RE-283)
…operty from the saved parameters on Revit 2015 to 2023 (#1158) (RE-283)
… a property on Revit 2015 to 2023 (#1158) (RE-283)
DrunkOnJava
marked this pull request as ready for review
October 30, 2026 23:50
# Conflicts: # README.md # docs/release-1.0-criteria.md # docs/support-matrix.json # docs/supported-profile.md
…skips its per-element pass on a file that defines none (#1158) (RE-283)
# Conflicts: # docs/rvt-moat-break-reconnaissance.md # docs/status.md # src/research/partition_schema_mvp.rs
…n empty selection selected them all (#1158) (RE-283)
Owner
Author
|
Automated review (Claude Code review agent, run by the maintainer). Verdict: ready to merge after these changes.
|
DrunkOnJava
enabled auto-merge (squash)
October 31, 2026 07:52
# Conflicts: # docs/rvt-moat-break-reconnaissance.md
This was referenced Oct 31, 2026
Merged
DrunkOnJava
added a commit
that referenced
this pull request
Oct 31, 2026
…es (#1046) (RE-293) (#1223) ## Summary Stacked on #1205 (RE-290): this branch contains its commits, so the diff shows both until #1205 lands. rvt-rs now also writes `Qto_WallBaseQuantities.Height`, the body's, on every wall the second RE-270 rule gives `GrossSideArea`, `NetSideArea`, `GrossVolume` and `NetVolume` (a wall joined to roofs, floors or footings that lie clear of it): 47 more office walls as built and 58 at building permit, Revit's on every one, none different and none Revit's export leaves out (RE-293). ## Motivation #1046 step 1 (walls). Revit's export writes a wall's `Height` on exactly the walls it writes the four on (579 of 607 as built and 565 of 589 at permit; the others carry only a `NetVolume`), and on every wall of the office where the four are Revit's, rvt-rs's extrusion is as tall as Revit's solid: 117 of 117 as built (49 with no roof or floor join, 68 roof-joined) and 128 of 128 at permit (48 and 80), none different (RE-293 §2). The second rule already vouches that the wall is a rectangular prism its joins leave whole, so the height of its extrusion is the vertical span of Revit's solid, and the rule adds no condition of its own. Where a wall's top is joined to a roof Revit's `Height` is the attached wall's, so walls the second rule does not take stay unwritten (RE-293 §5). The rule takes none of the walls Revit writes only a `NetVolume` on; that is a measured result on this corpus (no `Height` is written where Revit writes none), not a guard in the rule. The evidence is one building, the BIM4LCA office in Revit 2024, with no out-of-sample test: the R2025 models and the held-out models take no wall by the second rule, so none of them tests it. ## Changes - `src/ifc/export_content/wall_areas.rs`: `add_bounded_wall_quantities` writes `Height` (the body's) beside the four on each wall it takes. - `reports/element-framing/RE-293-wall-height-bounded.md`. - README, W7 on the criteria page, the supported profile, the reconnaissance addendum, `changelog.d/added/wall-height-bounded.md`, and Core Interior's witness observations (7 more walls' `Height`, from CI's `octetproof-core-interior` artifact; both verdicts replay PASS with the verdict files unchanged). ## Testing Unit tests are banned in this repository; none added. Measure [41183229365](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41183229365): this branch (f5d4ab5, RE-290 and `main` merged in) against `main` (9066ded), every model and every scorer, with the held-out models (`-f base=main -f nordic=true -f r2025=true -f holdout=true`). The base is a newer `main` than the head by one landing (RE-283's wall parameters, #1182), which is why Einhoven's `diagnostics.json` and modelo_bim's property set census differ in that run; the quantities do not depend on it. Run [41180588895](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41180588895) (6317d42 against RE-290's head a07a850) shows what `Height` alone moves. | model | quantities | equal on `main` | with #1205 | with #1205 and this PR | different | Revit omits (rvt-rs writes) | |---|---:|---:|---:|---:|---:|---:| | office as built | 39,388 | 28,162 | 28,278 | 28,325 | 1 to 1 (the mullion) | 0 to 0 | | office at building permit | 39,679 | 28,076 | 28,220 | 28,278 | 1 to 1 | 0 to 0 | | R2025 models (24) | 1,515 | 775 | 775 | 775 | 0 to 0 | 0 to 0 | | RE1 Mechanical, Plumbing | 31, 63 | 31, 63 | 31, 63 | 31, 63 | 0 | 0 | `Qto_WallBaseQuantities.Height`: 81 to 128 of 579 as built (+47), 70 to 128 of 565 at permit (+58), R2025 93 of 138 as before; against #1205's head alone the office goes 28,181 to 28,228 and 28,155 to 28,213. Core Interior's and RE1 Architecture's exports were made with base quantities off (RE-242): the 7 `Height` values now written on Core Interior's walls are counted apart (2,268 on `main`, 2,292 with #1205, 2,299 with this PR); RE1 Architecture's 92 are unchanged. Held-out models (same run, scrubbed counts): the AA house (846 quantities, 127 equal, 0 different, 719 missing), modelo_bim (220, 7, 0, 213) and teste_export_2025 (44, 10, 0, 34) have the quantity counts of `main`'s on all three, so no `Height` is written there. The AA house's 2 quantities Revit's export does not write (slab `Width`, RE-295) and teste_export_2025's 3 (covering `Width`, RE-250 and RE-297) are on `main` already, not this change's. Left out and measured (RE-293 §5): `Height` on every wall the second rule does not take. - [x] Verified end to end on real Revit files (BIM4LCA office, CC BY-SA 4.0; puzzbobb's R2025 models, Apache-2.0): Measure above and `tools/re/wall_quantities_vs_ifc.py` reproduce it - [x] Witness observations refreshed in this PR - [x] No local build: `rustfmt` only; CI is the gate ## Audit-honesty checklist - [x] README, W7, the supported profile and the reconnaissance addendum say what is and is not written - [x] Changelog fragment under `changelog.d/added/` - [x] Limitations are in RE-293 §5 and this body - [x] Reverse-engineering finding: scorer, addendum and report included (the scorer is RE-270's) ## Legal and contribution hygiene - [x] Apache-2.0; clean-room: revit-ifc is read for what Revit's exporter writes and cited (`PropertyUtil.CreateWallBaseQuantities`), not copied ## Breaking changes None. ## Related issues Refs #1046, #1016. Stacked on #1205.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 31, 2026
…ir IsExternal on Revit 2015 to 2023 (#1158) (RE-285) (#1226) ## Summary Write `LoadBearing` (true) in the common set of every structural column and structural framing element, as revit-ifc's `LoadBearingCalculator` gives it from the category alone (CLEANROOM.md source 5, read and cited), unless a parameter named for it says otherwise. On Revit 2015 to 2023, experimentally, also write their `IsExternal`, not external: the last step of `CategoryUtil.IsElementExternal`. Related: #1158. This is the stopped #1158 agent's RE-285 work, rebuilt on `main` after RE-283 (#1182) and RE-284 (#1183) landed. It replaces #1184. ## Changes - `partition_schema_mvp`: `LOAD_BEARING_CLASSES`, `attach_load_bearing` on both record paths, and `IS_EXTERNAL_LAST_STEP_RECORD_CLASSES`, which now names the same two classes. - `ifc::export_content::add_load_bearing` writes it where IFC4's set defines `LoadBearing`. - `probes/examples/probe_re285_flag_candidates.rs`, `tools/re/native_flags_vs_ifc.py` (counts only for unlicensed files), and the held-out scrub, which keeps their count lines. - The RE-285 report, the W7 line, the supported profile and `changelog.d/added/structural-load-bearing.md`. ## Testing Unit tests are banned here; none added. RE-285's own runs (41138533136, unfiltered with the samples, BIMcollab and the held-out models) measured: - BIMcollab's Revit 2015 export: 91 of 91 beams and 15 of 15 columns for each property. - modelo_bim (Revit 26.2's exporter): 8 of 8 beams and columns for `IsExternal`, and 8 of 9 for `LoadBearing`. - The BIM4LCA office as built: one column gains Revit's value. None is different. Measure [41206921249](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41206921249) ran the rebuilt change unfiltered against `main`, with the samples, BIMcollab and the held-out models. BIMcollab gains 212 equal values, modelo_bim 32 (`LoadBearing` on all 9 beams and 9 columns, the ninth through RE-286's type objects), and the office as built 1. Nothing new is different, and nothing is written that Revit's export leaves out. 58 exports move: BIMcollab, modelo_bim, the two offices and the 2015 to 2027 samples. ## Legal and contribution hygiene - [x] Apache-2.0. revit-ifc was read and cited only (CLEANROOM.md source 5). ## Breaking changes None.
DrunkOnJava
added a commit
that referenced
this pull request
Oct 31, 2026
…evel, and none where no parameter is named for it (#1227) From the read-only code-quality pass (item 4). Each storey's `EntranceLevel` (RE-275) was read through `native_element_parameters::read`. That read selects every `FamilySymbol`, `Family`, `MaterialElem` and system type record by class, so it can add type values and name ElementId values. A Level has no type, and only its own instance value is used. - `native_element_parameters::read_own_defined` reads the records of the given ids alone. `read_defined` is unchanged and shares the body with it. - `ifc::storey_properties::read` uses it with a definition filter, so a file that defines no parameter named `Pset_BuildingStoreyCommon.EntranceLevel` or `EntranceLevel` skips the per-element pass entirely (#1182's filter). Output is unchanged by construction: a Level has no master symbol, so the class-selected records never contributed to it. A Measure run with `timing` and every model checks byte identity and time, against the merge base `08c6a627`. No changelog fragment (no user-visible change). **Measured** ([41213627883](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41213627883), against `08c6a627` on one runner, median of three alternating runs per file): - Byte-identical on all 90 exports. - `rvt-ifc` time for all 66 timed files together: 483 s before, 449 s after (median file 0.92). - On 51 files, every run with the change beat every run without it: most samples by 7 to 13%, the MEP samples by 3 to 13%, and the BIM4LCA office at permit by 3%. - The other 15, mostly the structural basic samples, Einhoven and Core Interior, are within noise. Ten of their medians are higher, by 3 to 28 ms (at most 2%), and their runs overlap with the base's. The gain comes from files that define no `EntranceLevel` parameter. They no longer pay for a native pass over every type, family and material record.
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
A wall's
IsExternaland the project and shared parameters named for a standard property are written on Revit 2015 to 2023, experimentally. A wall's type Function (BasicWallType.m_function) is read from its native records, and parameters namedIsExternal,<set>.IsExternalor for a property of one of IFC4's sets come from the saved parameters (RE-281), as the partition data gives them on 2024 and later. The Function is equal to the same project's later copy on 1,982 of 1,983 walls (24 pairs); against Revit's own exports it is Revit's value on all 114 walls of BIMcollab's Revit 2015 example (IsExternalandLoadBearing, from two parameters on the walls) and all 4 of modelo_bim's (a Revit 2023 file), where it was missing in full.Motivation
#1158, "done when": measure the readers behind BIMcollab's 817 missing values on 2015 to 2022 against its Revit 2015 export and against the 2023 copies of Autodesk's samples. Reading every ElementId in either
Identifiershape was tried first and moved three Revit 2023 exports no export checks (RE-282, #1181), so this reader reads the one id it needs itself.Changes
src/research/native_wall_types.rs:NATIVE_RELEASES, the wall's type id throughnative_json::identifier_i64.src/research/partition_schema_mvp/parameters.rs,fields.rs,partition_schema_mvp.rs:attach_native_named_parameters,attach_record_is_externalandNATIVE_NAMED_PARAMETER_REVIT_VERSIONSon the 2015-to-2023 record path;WALL_TYPE_FUNCTION_REVIT_VERSIONSis 2015 to 2025. Doors, windows and slabs get noIsExternalthere: their Function is not read.probes/examples/probe_re283_wall_function_pairs.rs;tools/ci/scrub-holdout-results.shkeeps the probe's count lines for a model without a licence.reports/element-framing/RE-283-wall-function-and-named-parameters-pre2024.md,changelog.d/added/wall-is-external-2015-2023.md, README,docs/status.md,docs/supported-profile.md,docs/release-1.0-criteria.md(W7 measured now),docs/support-matrix.json(ifc-is-external) and a dated addendum indocs/rvt-moat-break-reconnaissance.md.Testing
Unit tests are banned in this repository: none added.
tools/check-local.shpasses: this PR's CI. (No local build;rustfmt --edition 2024 --check,python3 tools/release/changelog.py checkandpython3 tools/ci/api-doc-ids.pypass.)-f base=main -f nordic=true -f r2025=true -f samples=true -f bimcollab=true -f holdout=true,9a133e1fagainstmainat3811a654, with the 2015-to-2022 samples against their 2023 copies), 41138447208 (2023 against 2024 copies) and 41146044699 (the exports of six 2015 samples diffed: onlyIsExternalon walls). BIMcollab and modelo_bim have no licence, so only counts left the runner.Audit-honesty checklist
changelog.d/added/docs/rvt-moat-break-reconnaissance.mdare includedLegal and contribution hygiene
Contributor declaration (
CLEANROOM.md): based on public byte observations of Autodesk's published sample projects, BIMcollab's public example project and the held-out models, rvt-rs's own readers and its prior reports; revit-ifc was read and cited (a parameter named for a property is read before anything else), not copied. No Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code was used.Breaking changes
None (
rvt::researchis outside the semver promise).Screenshots or output samples
36 of 94 exports of the unfiltered run move: the 33 samples of Revit 2015 to 2023, Einhoven, BIMcollab and modelo_bim; each gains
IsExternalon its exported walls. Every file of 2024 to 2027 is identical.Related issues
Refs #1158. Follows #1175 (RE-281); see #1181 (RE-282).