Skip to content

fix(elements): a host type whose layer copies disagree takes its current copy on Revit 2020 too, giving the one file measured Revit's layer widths on all 5 floors (#1805) (RE-466) - #2003

Merged
DrunkOnJava merged 6 commits into
mainfrom
fix/1805-current-copy-2020
Nov 14, 2026

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 14, 2026 •

Copy link
Copy Markdown
Owner

Summary

A wall, floor, roof or ceiling type whose layer copies disagree now takes its current partition's copy on Revit 2020, as it does on Revit 2024 and later (RE-446). Before, such a type was dropped on every release before 2024, and its elements got no layer set (RE-466).

On the held-out Revit 2020 file, read as counts and the one export of 126 that moves:

  • layer sets written: 12 to 17;
  • whole layer sets within 0.001 ft of Revit's: 12 of 12 to 17 of 17;
  • layer names equal to Revit's, in order: 23 to 28;
  • Pset_SlabCommon.PitchAngle equal 10 to 15 of 18; properties equal 497 to 502, different 0 before and after.

The element-materials census: same set 98 to 99, IfcSlab different 2 to 6. All 6 differing sets (2 already on main) contain fewer layers than Revit's, and each is Revit's, names in order, once the layers Revit writes 0 thick are left out (6 of 6). Those are membranes. rvt-rs leaves them out because Revit's Snowdon IFC4 export does (RE-53), so Revit's exports disagree on them and this PR keeps leaving them out. The rise is that disagreement, not a wrong material.

Only 2020 takes the rule (CURRENT_COPY_32BIT_REVIT_VERSIONS): none of Autodesk's 34 samples of 2015 to 2023 has a type whose copies disagree, so the held-out file is the only one that exercises it.

Motivation

#1805. RE-446 limited the current copy to 2024 and later because the held-out 2020 file's floors gained materials Revit's export does not give. Two causes: the category-material read, fixed from Autodesk's samples in #1997 (RE-464), and the membranes above. The held-out file shaped neither the reader nor the rule.

Changes

  • src/research/partition_compound_structure.rs: scan_type_layers resolves disagreeing copies through current_partitions on 2024 and later and on CURRENT_COPY_32BIT_REVIT_VERSIONS (2020).
  • tools/re/element_materials_vs_ifc.py: says how a different set differs and counts the elements a shared Tag keeps out of the comparison.
  • tools/re/layer_sets_vs_ifc.py: says which way a layer count differs, and whether the set is Revit's once its 0-thick layers are left out.
  • tools/ci/scrub-holdout-results.sh: keeps those counts on held-out files. Until now it dropped layer sets whose count differs from Revit's, because its pattern allows no capital before a colon.
  • docs/export-diagnostics.md, reports/element-framing/RE-466-current-layer-copy-revit-2020.md, a changelog fragment.

Testing

  • Measure 43578558197: 7952aec6 (the code; later commits change doc comments, scorers and the report) against its merge-base, unfiltered, with nordic, r2025, samples, holdout and racadv. 125 of 126 exports identical, 102 of 102 diagnostics identical, same-project gates pass. Figures as above.

  • Held-out counts with the extended scorers: 43582032493, 43582471166 and 43582862119.

  • Probe 43577510927 (held-out counts): the unnamed layers' category material is Revit's on 4 of 4. Samples 43560071868: copies_disagree 0 on all 34.

  • Carry-proof 43583282604: the final head against 7952aec6, every export, scorers none.

  • tools/check-local.sh: no local builds; rustfmt --check passes; CI runs the rest.

Audit-honesty checklist

  • No claim beyond what the runs show; a held-out file shaped nothing; the membrane disagreement is stated with its count.
  • A changelog fragment.
  • No private paths or emojis.

Legal and contribution hygiene

  • Apache-2.0; no Autodesk source; no fixtures. Clean-room: byte observations of Autodesk's public sample projects only.

Closes #1805.

…ent copy on Revit 2020 too, where the one file measured holds Revit's widths and materials on all 5 floors (#1805) (RE-466)
…t differs and counts the elements a shared Tag keeps out, as counts on held-out files (#1805)
…rs from Revit's, and the held-out scrub keeps that line, which its pattern dropped (#1805)
…s materials on every layer with a width, and that Revit's export also writes 0-wide membranes on 4 (#1805)
@DrunkOnJava DrunkOnJava changed the title fix(elements): a host type whose layer copies disagree takes its current copy on Revit 2020 too, where the one file measured holds Revit's widths and materials on all 5 floors (#1805) (RE-466) fix(elements): a host type whose layer copies disagree takes its current copy on Revit 2020 too, giving the one file measured Revit's layer widths on all 5 floors (#1805) (RE-466) Nov 14, 2026
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 14, 2026 10:34
@DrunkOnJava
DrunkOnJava merged commit b7edecc into main Nov 14, 2026
165 checks passed
@DrunkOnJava
DrunkOnJava deleted the fix/1805-current-copy-2020 branch November 14, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant