Skip to content

feat(ifc): write LoadBearing on structural beams and columns, and their IsExternal on Revit 2015 to 2023 (#1158) (RE-285) - #1226

Merged
DrunkOnJava merged 4 commits into
mainfrom
re/285-load-bearing-2
Oct 31, 2026
Merged

DrunkOnJava merged 4 commits into
mainfrom
re/285-load-bearing-2

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 31, 2026 •

Copy link
Copy Markdown
Owner

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

  • Apache-2.0. revit-ifc was read and cited only (CLEANROOM.md source 5).

Breaking changes

None.

…ir IsExternal on Revit 2015 to 2023 (#1158) (RE-285)
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review October 31, 2026 14:29
…'s type values, and its scorer prints no parameter name but the flag's (#1158) (RE-285)
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Automated Claude Code review (the maintainer's review agent; it read the diff and the Measure artifacts and ran nothing)

  • The source is the code Measure 41206921249 ran on main. BIMcollab gains 212 equal values and modelo_bim 32. The as-built office's Pset_ColumnCommon.LoadBearing goes from 288 equal and 1 missing to 289 of 289. No value differs, and "rvt-rs values Revit does not write" is unchanged on every model.
  • A parameter named LoadBearing replaces the category's value in place through add_named_parameter_sets and is never written twice. RE-286's type values sit on the type objects and cannot collide.
  • On the held-out and BIMcollab runs, the scrub and the scorer emit only counts, IFC class names, built-in parameter ids and 0/1 values.

Addressed in 6baf4fe:

  • named_report used to print any parameter name containing "external" or "bearing". It now prints only the flag's own name, bare or after a Pset_ set name, and prints any value that is not an integer as other, so a model without a licence cannot leak a user-defined name.
  • RE-285 §4 now states that a parameter named LoadBearing on the element's type is not read. No measured model has one.
  • RE-285 §4 now states that BIMcollab's export carries no LoadBearing on the 47 type objects RE-286 writes. That export is Revit 2015's IFC2X3 view run through Solibri's optimizer, so it is counted apart, and only Revit's own IFC4 exports decide whether a value is left out.
  • README row and docs/status.md entry added. The report's status line and office figures are brought up to date, and the changelog now says "no new value" where it said "nothing written".

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 31, 2026 15:05
@DrunkOnJava
DrunkOnJava merged commit f9f71e6 into main Oct 31, 2026
28 checks passed
@DrunkOnJava
DrunkOnJava deleted the re/285-load-bearing-2 branch October 31, 2026 15:11
DrunkOnJava added a commit that referenced this pull request Oct 31, 2026
… the open list drops the two W7 issues that closed (#1230)

The W7 figures in `docs/release-1.0-criteria.md` and the README,
refreshed from Measure runs on `main` at `f9f71e68`, after the W7
changes that landed today (#1204, #1206, #1215, #1223, #1225, #1226).

- **Quantities**
([41213779326](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41213779326),
unfiltered): office as built, 29,262 of 39,388 equal (was 29,223), 1
different, 10,125 missing (was 10,164), none written that Revit's export
leaves out. The +39 are #1215's flat-roof slab quantities.
- **Properties**
([41215480967](https://github.com/DrunkOnJava/rvt-rs/actions/runs/41215480967),
with `--revit-set-placement`, as W7 is measured): as built 289 of 45,525
missing (was 455) and 1 different; at permit 292 of 45,704 (was 452).
Without the option, 1,361 and 1,364 (was 1,421 and 1,418). The earlier
figures stay, as the previous run.
- **Values rvt-rs writes that Revit's export does not**: 10 as built and
14 at permit, the same in every run back to `5d863fba`. The page now
says what they are.
- All but one are on elements Revit's export leaves out: openings, and
at permit a column (RE-239, #792).
- The one, a sanitary terminal's
`Pset_SanitaryTerminalTypeCommon.Reference`, follows from fixture
3095244's class. Revit's export writes it as `IfcFlowTerminal`, rvt-rs
as `IfcSanitaryTerminal` (#792, found from `class_sets_vs_ifc` in the
same run).
- **README, from the same two runs:**
- The IsExternal row is now 2,198 of 2,334 as built and 2,206 of 2,319
at permit, none different. Of the 136 and 113 values missing, all but
one are on type objects; the other is on the building.
- The set-placement row gains 1,072 values, not 966. That adds the 122
stair-flight values from RE-287.
- **The open list** dropped #1186 and #1187, which closed when RE-287
and RE-288 landed.
- `docs/archive/TODO.md`'s two links to `docs/status.md` and
`docs/support-matrix.json` were relative to the wrong folder.

No changelog fragment (no user-visible change).
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