Skip to content

feat(elements): a wall, floor, ceiling or roof lists its type's saved parameters (#35) (RE-256) - #1065

Merged
DrunkOnJava merged 5 commits into
DrunkOnJava:mainfrom
puzzbobb:issue35-system-types
Oct 27, 2026
Merged

DrunkOnJava merged 5 commits into
DrunkOnJava:mainfrom
puzzbobb:issue35-system-types

Conversation

@puzzbobb

Copy link
Copy Markdown
Contributor

Summary

A wall, floor, ceiling or roof now lists its type's saved parameters after its own in rvt-elements and Python's decoded_elements(), as a family instance already did (RE-256). Each one's native record names its type in a single member (m_WallAttributesId, m_floorAttributesId, m_ceilingAttributesId, m_roofAttributesId). On Snowdon Towers, every one of these type values that Revit's export writes is Revit's: 4,297 of 4,314. The 17 left are stair landings, which name no type this way.

Motivation

#35 (M4-07) asks for type-vs-instance precedence, and my RE-207 comment of 2026-10-22 left "the type parameters of walls and floors" for a later slice. RE-207 follows only FamilyInstance.m_masterSymbolId, so a system-family element listed none of its type's values: on Snowdon, 1 of the 1,380 walls, floors, ceilings and roofs Revit's export types had any (an in-place wall, which is a family instance). This also gives the type's built-in values, such as Type Mark and Assembly Code, under their ids, which naming the built-in parameters (#255) will build on.

Changes

  • src/native_element_parameters.rs: a table SYSTEM_TYPE_LINKS of (element record class, member naming the type, type record class): SWall/ArcWall m_WallAttributesId, FaceWall m_typeId (BasicWallType), Floor m_floorAttributesId (FloorAttributes), Ceiling m_ceilingAttributesId (CompoundCeilingType), ProfileRoof/Roof m_roofAttributesId (RoofAttributes). read also reads the type classes' records, and follows the member as it follows m_masterSymbolId. The type's values come after the element's own, at level type, and a parameter the element holds is not repeated.
  • src/native_metadata.rs: a CompoundCeilingType's and a RoofAttributes's SymbolInfo.m_name is read as its Type Name (-1002001), as a BasicWallType's and a FloorAttributes' already is.
  • Test: tests/element_parameters.rs (r2025_walls_take_their_wall_types_name): each wall of R2025 models 01, 08 and 18 lists its type's name at level type, from the type record whose ElementId is the Tag of the IfcWallType Revit's export relates the wall to.
  • Probe: examples/probe_35_system_type_links.rs. Scorer: tools/re/system_type_parameters_vs_ifc.py.
  • Report: reports/element-framing/RE-256-system-family-type-parameters.md.
  • Docs: the README's element-parameters row, a dated RE-256 entry in docs/status.md, a dated addendum in docs/rvt-moat-break-reconnaissance.md, and changelog.d/added/system-family-type-parameters.md.

The commits run feat → test → research → docs.

Testing

Unit tests are banned in this repository: do not add them. Show the change working end to end on real files instead.

  • tools/check-local.sh passes (fmt, clippy, rustdoc, build, real-file / CLI / contract checks)

    • cargo fmt --all -- --check passes.
    • cargo clippy --workspace --all-targets --all-features -- -D warnings passes.
    • cargo doc -p rvt --no-deps passes with RUSTDOCFLAGS='-D warnings'.
    • cargo +1.87 check --profile ci --all-targets (the MSRV job) passes.
    • RUSTFLAGS='-D warnings -D unnameable_types' cargo check --lib --bins passes.
    • tools/ci/verify-real-files.sh --profile ci --no-fail-fast passes 264 of 264. It ran with RVT_SAMPLES_DIR (phi-ag d2eb1f3's Autodesk families), RVT_PROJECT_CORPUS_DIR (magnetar fd755e1 with RE1 and r2025/) and RVT_NORDIC_LCA_DIR (the BIM4LCA office as built and at permit and the housing on terrain) set, so the new test ran rather than skipped.
  • Verified end to end on real Revit files: the command, the files (and their licence), and the measured result against Revit's own export are in the PR body, with the script or probe that reproduces it

    • rvt-elements --no-typed MODEL.rvt on main and on this branch, then tools/re/system_type_parameters_vs_ifc.py. It compares each property Revit's export writes in its own sets on the type object of a wall, slab, covering or roof with the element's type-level values. The oracle is Snowdon Towers Architectural (Revit 2025) with my export made with "Export Revit property sets", the RE-210 evidence. That export can't be redistributed, so this part is local only, as RE-210's was:
    property main this branch parameter
    Identity Data.Type Name 1 1,363 of 1,380 -1002001
    Identity Data.Assembly Code 0 1,362 of 1,362 -1002500
    Identity Data.Type Mark 0 889 of 889 -1001405
    Identity Data.Fire Rating (walls) 0 683 of 683 -1001206
    Materials and Finishes.Parapet Cap Material 1 1 of 1 1996136 (project)
    • Revit's other type properties are not saved values of the type: Width is the layers' sum, Function and the wrapping settings are written as labels, Assembly Description is looked up from the code, and the analytical properties come from the materials. Two coincidences are not counted: a slab type's Coarse Scale Fill Color 0 equals its Function 0, and two wall types' names equal their material's.
    • On every model, rvt-elements' output differs from main's only by the added type-level values. No other field of any element changes, and no element is added or lost: Snowdon Architectural; the BIM4LCA office as built and at permit and the housing on terrain (VTT, CC BY-SA 4.0); and the 23 R2025 models (puzzbobb, Apache-2.0, Sloped roofs need a Revit 2024/2025 pitched-roof oracle #356). The counts are in the report's §4.
    • rvt-ifc writes the same file as main on all of them, apart from the timestamp. With --revit-property-sets it does too, except on the two office files, where 5 roof types also carry their project parameter U_value (1.0) in Identity Data: the type's record is read now, and RE-210 writes a type's named parameters. The office was exported without Revit's property sets, so whether Revit writes it there isn't measured.
  • If this touches the IFC exporter: the witness verdicts replay (see CONTRIBUTING.md) or the changed observations are refreshed in this PR

    • The default export is unchanged on every model above, Core Interior included in the real-file suite's witness tests.
  • If this is a performance change: reran tools/bench.sh and attached the before / after

    • Not a performance change. The type records are read in the same pass over the file as the family types.

Audit-honesty checklist

  • README / docs reflect the current state after this PR — no claims of features that are not actually shipped in this PR
  • A user-visible change has its entry as a fragment under changelog.d/<section>/ (see changelog.d/README.md), not in CHANGELOG.md
    • changelog.d/added/system-family-type-parameters.md; tools/release/changelog.py check passes.
  • If a limitation was resolved, the "Known limitations" / "What works today" section in the relevant docs is updated
    • The README row now names walls', floors', ceilings' and roofs' type parameters.
  • If a new limitation was introduced, it is documented in the PR body and in-code
  • Commit messages describe WHAT changed and WHY, not "fix things" or "updates"
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
    • The test, probe and scorer take their paths from RVT_PROJECT_CORPUS_DIR or arguments. The commits are authored and committed with GitHub's noreply address, and signed.
  • If this is a reverse-engineering finding: a reproducible probe under examples/ 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 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md)
  • Any new test fixtures use synthetic values (testuser, 111111, FY-20XX, etc.) and contain no real-world PII
    • No fixtures.

I declare that this format finding comes only from public byte observations of the reference models and Revit's own exports of them (CLEANROOM.md source 1); no Autodesk or ODA SDK source, disassembly or NDA material was used.

Breaking changes

None. rvt-elements and Python list more entries, all at level type; no entry changes.

Screenshots or output samples

An R2025 wall (01_Walls, 2787):

{"group_type_id": null, "kind": "built_in", "level": "type", "name": null, "parameter_id": -1002001,
 "source_class": "BasicWallType", "source_element_id": 1982, "storage_type": "String", "value": "Wall 1", ...}

Related issues

Refs #35. Follows #887 (RE-207).

puzzbobb and others added 4 commits October 27, 2026 09:47
… parameters after its own (DrunkOnJava#35) (RE-256)

RE-207 gave only a family instance its type's values, through
m_masterSymbolId. A wall's SWall, ArcWall or FaceWall record names its
BasicWallType, a floor's its FloorAttributes, a ceiling's its
CompoundCeilingType and a roof's its RoofAttributes; each now lists that
type's values after its own, at level type. A ceiling and a roof type
also carry their SymbolInfo name as SYMBOL_NAME_PARAM.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0132AzpjsYWLoGtTmw6rC3GF
@puzzbobb
puzzbobb requested a review from DrunkOnJava as a code owner October 27, 2026 10:02
@DrunkOnJava DrunkOnJava changed the title feat(elements): a wall, floor, ceiling or roof lists its type's saved parameters after its own (#35) (RE-256) feat(elements): a wall, floor, ceiling or roof lists its type's saved parameters (#35) (RE-256) Oct 27, 2026
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 27, 2026 10:38
@DrunkOnJava
DrunkOnJava merged commit 8978040 into DrunkOnJava:main Oct 27, 2026
28 checks passed
@DrunkOnJava DrunkOnJava mentioned this pull request Oct 27, 2026
9 of 11 tasks
DrunkOnJava added a commit that referenced this pull request Oct 27, 2026
## Summary

Prepares v0.10.0 (RELEASE.md steps 4 to 8). It bumps the version files,
assembles the `[0.10.0]` changelog section from `changelog.d/`, and
rewrites the README's release section. Merging this is not the release;
the signed tag on its squash commit is.

## Motivation

`main` holds a stable batch since 0.9.0: 12 base-quantity rules from the
W7 round, each measured equal to Revit's export with none different,
plus two diagnostics fields and puzzbobb's type parameters (#1065). On
the BIM4LCA office as built that is 21,065 quantities, against 0.9.0's
20,157. Griffin approved 0.10.0 with this scope on 2026-10-27.

## Changes

- **Version files** (0.9.0 to 0.10.0):
  - `Cargo.toml`;
  - `rvt-py/Cargo.toml` and its `=0.10.0` pin on `rvt`;
  - `rvt-wasm/Cargo.toml`;
  - the `rvt` pin in `tools/stream_evidence/Cargo.toml`;
  - `viewer/package.json`;
  - `CITATION.cff` (`date-released: 2026-10-27`);
  - `.release-please-manifest.json`;
  - the workspace crates' entries in `Cargo.lock` and `fuzz/Cargo.lock`.
- **`CHANGELOG.md`**: `python3 tools/release/changelog.py assemble`
moved the 19 fragments in (Added, Research). Then `[Unreleased]` became
`[0.10.0] — 2026-10-27`, with an introduction, a credit to puzzbobb
(#1065), and "Upgrading from 0.9": no code change, since
`DecodedExportDiagnostics` is `#[non_exhaustive]`. `[Unreleased]` is
left empty.
- **`README.md`**: "Release 0.10.0 and main" says what 0.10.0 adds in
brief, and the support section's link points at it.

## Testing

Unit tests are banned in this repository: do not add them. Show the
change working end to end on real files instead.

- [ ] `tools/check-local.sh` passes: this PR's CI. There are no code
changes; the version string changes the IFC header.
- [x] Verified end to end on real Revit files: no behaviour changes.
Measure 40489426210 found all 31 models byte-identical between #1065's
head and main.
- [ ] If this touches the IFC exporter: the IFC header carries the
version (#417). Both Core Interior `rvt-rs.json` observations and their
verdicts are refreshed from this PR's CI run (its
`octetproof-core-interior` artifact) in a follow-up commit here,
differing only in `witness_version` and the verdict hashes.
- N/A: performance.

## Audit-honesty checklist

- [x] README / docs reflect the current state after this PR
- [x] The changelog section is assembled from the fragments;
`changelog.py check` passes with none left
- N/A: no limitation resolved or added
- [x] Commit messages describe what changed and why
- [x] No emojis in code, docs, or commit messages
- [x] No private paths, personal email addresses, or internal jargon in
committed files
- N/A: not a reverse-engineering finding

## Legal and contribution hygiene

- [x] Apache-2.0
- [x] No Autodesk proprietary content
- [x] No fixtures

## Breaking changes

None. They would be listed under "Upgrading from 0.9" in `CHANGELOG.md`.
@puzzbobb
puzzbobb deleted the issue35-system-types branch October 27, 2026 12:48
@DrunkOnJava

Copy link
Copy Markdown
Owner

Thank you, @puzzbobb: this shipped in v0.10.0 (crates.io, PyPI and the CLI archives), with the credit in its changelog. Before merging, Measure found every default export byte-identical to main on all 31 reference and R2025 models (run 40489426210), as your PR said.

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.

2 participants