Skip to content

research: probe_1841_framing_usage counts each framing instance's structural usage against the class Revit's export gives it (#1841) - #1853

Merged
DrunkOnJava merged 3 commits into
mainfrom
research/1841-framing-usage
Nov 13, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
research/1841-framing-usage

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

probe_1841_framing_usage counts each framing instance's structural usage (InsertableInst.m_structUsage) against the class rvt-rs writes for it and, given Revit's IFC export of the same file, the class Revit writes. It prints counts only: no name, no ElementId. It is for HWT-25 to run on CHL (#1829), where Revit writes one framing member as IfcMember and rvt-rs as IfcBeam. Part of #1841.

Motivation

#1841's member half. Autodesk's exporter classes a framing instance by a sub-category of its structural usage (revit-ifc, ExporterUtil.GetSpecificCategoryForElement): a brace by the bracing category, which Revit's class table maps to IfcMember. What each stored value means has to come from the files, not the API's enumeration. No model Measure scores against a Revit export has a framing member that Revit's export moves to IfcMember (#1841 comments), so the evidence has to come from CHL.

Changes

  • probes/examples/probe_1841_framing_usage.rs:
    • exports the model as rvt-ifc does;
    • reads m_structUsage from the native record of each element written as IFCBEAM or IFCMEMBER;
    • with a second argument, matches Revit's export by Tag inside the probe;
    • prints, per value, the counts of each side's classes.

Testing

Audit-honesty checklist

  • README / docs reflect the current state after this PR
  • N/A: no user-visible change, so no changelog fragment
  • N/A: no limitation resolved or introduced
  • Commit messages describe WHAT changed and WHY
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • The probe under probes/examples/ states its FACT

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content. revit-ifc is read and cited, never copied (CLEANROOM.md source 5).
  • No new test fixtures

Breaking changes

None.

…uctural usage against the class Revit's export gives it (#1841)

Autodesk's exporter classes a framing instance by a sub-category of its structural usage (revit-ifc, ExporterUtil.GetSpecificCategoryForElement), which is how a brace becomes IfcMember. The usage is InsertableInst.m_structUsage in the schema. No model Measure scores against a Revit export has a framing member Revit writes as IfcMember, so the probe is for HWT-25 to run on CHL with its Revit export: it prints, per m_structUsage value, how many framing instances rvt-rs writes as which class and Revit's export as which, counts only, with no name or ElementId.
…writes no framing, as an empty selection selects every record (#1841)
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Run 43325347288: m_structUsage reads on every framing instance of the samples, and it lines up with rvt-rs's class. This covered the samples of every year, 29 models.

Sample Framing No m_structUsage Usage → rvt-rs class
rst_basic 2023 to 2027 372 2 (IfcMember) 3 → 5 IfcBeam, 4 → 198 IfcBeam, 5 → 102 IfcBeam, 6 → 65 IfcBeam
Snowdon Towers Structural 2024 942 0 3 → 313, 4 → 602, 5 → 25, 6 → 2, all IfcBeam
rac_advanced 2023 to 2027 3,350 36 (IfcMember) 0 → 3,276 IfcMember and 1 IfcBeam; 3 → 2, 4 → 23, 6 → 12 IfcBeam
rac_basic, rme_basic, rme_advanced 144 / 1,450 0 0 → all IfcMember
Snowdon Towers Architectural 2024 1,595 170 (IfcMember) 0 → 1,425 IfcMember

Fixed since: on Snowdon Towers' three MEP models the export writes no framing. The probe still read 12,679 to 25,738 records, because an empty selection selects every record. 12564944 skips the read there, and merges main for the probe-binaries workflow. Windows, macOS and Linux builds of the probe for HWT-25 come from run 43331994944.

@DrunkOnJava
DrunkOnJava merged commit 1bf5b00 into main Nov 13, 2026
66 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/1841-framing-usage branch November 13, 2026 01:53
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