Repository navigation
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
Conversation
…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)
…nce its 0-thick layers are left out (#1805)
…s materials on every layer with a width, and that Revit's export also writes 0-wide membranes on 4 (#1805)
DrunkOnJava
marked this pull request as ready for review
November 14, 2026 10:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Pset_SlabCommon.PitchAngleequal 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_layersresolves disagreeing copies throughcurrent_partitionson 2024 and later and onCURRENT_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 droppedlayer 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 gatespass. 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 0on all 34.Carry-proof 43583282604: the final head against
7952aec6, every export, scorers none.tools/check-local.sh: no local builds;rustfmt --checkpasses; CI runs the rest.Audit-honesty checklist
Legal and contribution hygiene
Closes #1805.