Skip to content

feat(ifc): write a wall's ExtendToStructure from its native record on Revit 2015 to 2023 (#1158) (RE-284) - #1183

Merged
DrunkOnJava merged 7 commits into
mainfrom
re/284-extend-to-structure-pre2024
Oct 31, 2026
Merged

DrunkOnJava merged 7 commits into
mainfrom
re/284-extend-to-structure-pre2024

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner

Summary

A wall's Pset_WallCommon.ExtendToStructure is written on Revit 2015 to 2023, experimentally, from the same flag of its native record that RE-228 reads on 2024 and 2025 (a JoinToRoofGStep with m_baseOrTop 1). It is equal to the same project's later copy on all 1,983 walls both files hold (24 pairs), and Revit's own exports agree on the 114 walls of BIMcollab's Revit 2015 example and the 4 of modelo_bim (a Revit 2023 file), which are all false.

Motivation

#1158, "done when": measure the readers behind BIMcollab's missing values on 2015 to 2022 against its Revit 2015 export and against the 2023 copies of Autodesk's samples. BIMcollab's 114 ExtendToStructure values were missing (RE-281 section 4).

Changes

  • src/research/native_walls.rs: wall_top_joins (the flag alone, Options::releases = NATIVE_RELEASES) and is_top_joined, shared with native_walls_and_top_joins.
  • src/research/partition_schema_mvp/walls.rs, fields.rs, partition_schema_mvp.rs: attach_wall_top_joins on the releases in WALL_TOP_JOIN_RECORD_REVIT_VERSIONS (2015 to 2023), called in the 2015-to-2023 record path. Nothing else a wall's native record gives on 2024 and later (height, top cut, side quantities) is read there.
  • probes/examples/probe_re284_wall_top_join_pairs.rs; tools/ci/scrub-holdout-results.sh keeps its count lines for a model without a licence.
  • reports/element-framing/RE-284-wall-top-join-pre2024.md, changelog.d/added/wall-extend-to-structure-2015-2023.md, README, docs/status.md, docs/supported-profile.md, docs/release-1.0-criteria.md (W7 measured now) and a dated addendum in docs/rvt-moat-break-reconnaissance.md.

Testing

Unit tests are banned in this repository: none added.

  • tools/check-local.sh passes: this PR's CI. (No local build; rustfmt --edition 2024 --check, python3 tools/release/changelog.py check and python3 tools/ci/api-doc-ids.py pass.)
  • Verified end to end on real Revit files, in the report: Measure 41137770745 (unfiltered: -f base=main -f nordic=true -f r2025=true -f samples=true -f bimcollab=true -f holdout=true, 51e74588 against main at 3811a654, with the 2015-to-2022 samples against their 2023 copies) and 41138445109 (2023 against 2024 copies). BIMcollab and modelo_bim have no licence, so only counts left the runner.
  • Witness verdicts: no Core Interior export moves (94 exports: 58 identical, the 36 that moved are files of Revit 2015 to 2023), so no observation moves.
  • Performance change: not measured on its own; the reader is one pass over the wall records.

Audit-honesty checklist

  • README and the docs reflect the current state: experimental on 2015 to 2022; the joined value is measured against an export on 2024 and 2025 only
  • Changelog fragment under changelog.d/added/
  • Limitations are in the report (section 5) and this body
  • Commit messages describe what changed and why
  • No emojis, no private paths or personal email addresses in committed files
  • A reproducible probe and a dated addendum to docs/rvt-moat-break-reconnaissance.md are included

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • No Autodesk proprietary source, decompiled internals, or NDA'd SDK content
  • No test fixtures were added

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. No Autodesk SDK source, ODA SDK source, leaked internal documentation, NDA material, or decompiled internal Revit implementation code was used, and nothing was copied or translated from revit-ifc.

Breaking changes

None (rvt::research is outside the semver promise; one function is added).

Screenshots or output samples

36 of 94 exports of the unfiltered run gain an ExtendToStructure per wall (the files of Revit 2015 to 2023 with walls); the rest are byte-identical.

Related issues

Refs #1158. Follows #1175 (RE-281).

…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.
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review October 30, 2026 23:13
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Automated review (Claude Code review agent, run by the maintainer). Verdict: ready to merge, nothing blocking.

  • Checked: the source change fails closed. No field is written where wall_top_joins errs or returns nothing, attach_wall_top_joins runs only on Revit 2015 to 2023, and only walls (SWall, ArcWall) get it. The counts in the PR match Measure 41137770745's artifacts: BIMcollab 114 of 114 equal, modelo_bim 4 of 4, and 1,983 of 1,983 over the 24 sample pairs. The diagnostics' parameter_value_count moves by the 180 values added on rac_advanced, so the recount holds. The commits after the measured one are docs only, and every commit is signed.
  • Fixed in 1f6e90ee: the report's reproduce commands named this branch, which is deleted on landing. They now take Measure's scorers from main, with the code at commit 51e74588.
  • Noted, no change: both Revit exports of these releases write ExtendToStructure false on every wall. So the true values (124 walls on rac_advanced, 16 on rac_basic, 6 on rst_advanced) rest on equality with the same projects' later copies, not on a Revit export. The README, the status page, the report and the changelog all say so and label the value experimental, as RE-281's are.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 31, 2026 06:53
@DrunkOnJava
DrunkOnJava merged commit aa91743 into main Oct 31, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/284-extend-to-structure-pre2024 branch October 31, 2026 07:03
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
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.
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