Repository navigation
fix(elements): a wall, floor, ceiling or roof type edited since an earlier save takes its current partition's layers on Revit 2024 and later (#1802) (RE-446) - #1807
Merged
Conversation
…r keeps for an element framed in several partitions against Revit's body (#1710) (RE-444)
…the newest, the scorer uses the probe's own choice, and the report says the probe models the selector (#1710) (RE-444)
…r keeps the newest frame, not the one with the greatest height (#1710) (RE-444)
…e timber office at permit's 18 and 52 differences to 1 and 1, 5 of 126 exports move (#1710) (RE-444)
…1): the same five exports move, quantities equal 159,338 to 159,508
…its current partition's copy, not none (#1802) (RE-446)
…and RE-444's of the type each wall frame names
…sal, and its rustdoc links no private item (RE-446)
…evit 2024 and later only; a type whose copies disagree stays dropped on 2008 to 2023 (RE-446)
… layers' provenance rule can be current (RE-446)
…angelog fragment (#1802) (RE-446)
This was referenced Nov 12, 2026
Open
DrunkOnJava
marked this pull request as ready for review
November 12, 2026 05:35
This was referenced Nov 12, 2026
DrunkOnJava
added a commit
that referenced
this pull request
Nov 12, 2026
…ight for a wall whose line drifts off an axis, and no per-end rule that is (#1806) (RE-447) (#1822) ## Summary RE-447 records a measured negative. A wall whose location line drifts about 5e-8 ft across a model axis is drawn from its line's ends, not its joined record box's, and neither is Revit's end everywhere. No per-end rule read from the wall's joins chooses right at every end. No export changes. `tools/re/wall_ends_list.py` now lists every wall with an end off by more than the tolerance, rather than the 40 largest, which hid most of these ends. ## Motivation After #1807 (RE-446) gave two walls of the BIM4LCA concrete housing at permit their type's thickness, an end of each moved from exact to 0.886 and 0.935 ft off Revit's (#1806). #1811 tried three bodies. This report keeps the measurement so nobody re-probes it, and points the ends at #1814. ## Changes - `reports/element-framing/RE-447-drifting-wall-ends.md`: the three bodies tried, every one of the 21 ends where the box and the line differ, the per-file counts, the rules tried and where Revit's end lies. - `tools/re/wall_ends_list.py`: lists every wall off by more than the tolerance, not the 40 largest. `--list N` still caps the list. - `changelog.d/research/447-drifting-wall-ends.md`, and an RE-447 pointer in `docs/release-1.0-criteria.md` beside #1806. ## Testing - **Measure runs:** [43264161874](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43264161874) and [43272620592](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43272620592), both unfiltered, and [43273535656](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43273535656) (the four moved models, every wall end, and `probe_re252_wall_ends`). All ran against `main` 314eeac. The three cited commits are archived under `refs/archive/2026-11-12/cited/`. - **Rules:** I scored the rules of §5 myself on all 21 ends, from the probe's `ends` field and the per-end errors. The end's own `JoinEndGStep` being non-empty picks right at 19 of 21, and "the box where it lengthens the wall" at 17. A Tendrils worker proposed the candidates; every count in the report was re-run here. - **Planes:** the check moves each line end by its error to Revit's end and finds the nearest crossing plane of `planes` on the named walls. - All 9 ends where the line is nearer fall within 0.0001 ft of a layer plane inside a wall's faces. - 4 of the 12 ends where the box is nearer fall on a face. - The other 8 name walls the reader gives no line, so they cannot be checked. - **Checks:** `python3 tools/release/changelog.py check` and `python3 tools/ci/api-doc-ids.py` pass. ## Audit-honesty checklist - [x] Claims match what ships: nothing is written differently. The report says the best rule was fitted on these ends and that no held-out drifting wall exists. - [x] Changelog fragment under `changelog.d/research/` - [x] No emojis or private paths - [x] Probe: `probes/examples/probe_re252_wall_ends.rs` (already on `main`) ## Legal and contribution hygiene - [x] Apache-2.0 - [x] No Autodesk source, decompiled internals or NDA material. Only byte observations of the BIM4LCA files and Revit's own IFC exports of them (CLEANROOM.md sources 1 and 3). ## Breaking changes None. https://claude.ai/code/session_01L1QUmYwb7cHmeCQU8FD2Ge
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, ceiling or roof type edited after an earlier save is rewritten into a newer partition and the older copy stays, and
scan_type_layersdropped a type whose copies gave different lists, so every type edited since had no layers. On Revit 2024 and later it now takes the copy of the partition the element index routes the type to (RE-216), none if it routes none; Revit 2008 to 2023 keep dropping such a type (#1805). Measure 43155545709: 126 exports, 120 identical, 6 move, no element added or removed, and in each only the 180 elements of a type whose copies disagree. Each gains its type object (IfcWallType, IfcCoveringType, IfcSlabType or IfcRoofType: Identity Data.Type Name, Other.Category, Family Name), Other.Family and Family and Type, Pset_EnvironmentalImpactIndicators.Reference, its class's Reference (Pset_WallCommon, Pset_CoveringCommon, Pset_SlabCommon, Pset_RoofCommon), Pset_ReinforcementBarPitchOfWall.Reference on walls, RvtElementRecordGeometry.FamilyName and FamilyNameSource system_family_by_category (also trust_markers.FamilyNameSource), a layer set, and Qto values (wall Width, NetVolume, Height and side areas; covering GrossArea; slab Depth, GrossVolume, NetVolume; opening Depth, Height, Width):Costs: 12 walls and 16 coverings change body, two wall ends going from exact to 0.27 and 0.29 m off (Concrete housing at permit: two wall ends that were exact are 0.27 and 0.29 m off once the walls' types have their layers (1347019, 1347016) #1806); the 19 new types carry no IsExternal (W7: type objects' common-set values (IsExternal, LoadBearing, FireRating, Manufacturer) on the BIM4LCA office's types #1185).
Motivation
The BIM4LCA timber office at building permit had 12 walls with no IfcWallType, Width or Reference (8 of the type
VS-2.CLTpinta, 4 ofSPR-1), and RE-444 (#1799) retypes two more walls into the first. The newest frame of each of the office's 728 multi-framed walls names exactly one type, so the type is right; its layers were dropped because its copies disagree:VS-2.CLTpintais 140 + 13 + 13 = 166 mm inPartitions/374and 140 + 18 = 158 mm inPartitions/410, and Revit'sWidthof the retyped walls is 0.158 m. Nine wall types in three files disagree (the office at permit, the concrete housing as built and at permit), and on every one the partition the element index routes the type to is the latest. The same scan serves floor, ceiling and roof types, so 108 coverings, 4 slabs and 2 roofs of the housing files were untyped as well.Closes #1802. Refs #1046, #1016 (W7), #1636.
Changes
src/research/partition_compound_structure.rs:scan_type_layerscollects every decoded copy of a type's layers;choose_copy(pure) takes the first where all agree, the routed partition's where they disagree (native_document::current_partitions, Revit 2024 and later only) and none where no partition is routed, none of the copies is in it or its copies disagree; the element'swall_type_layersandroof_type_layerssources get the rulecurrentthere. Five failure-first tests ofchoose_copy.probes/examples/probe_re446_type_layer_copies.rsandprobe_re444_frame_type_slots.rs: every copy a wall type has, and what each frame of a multi-framed wall names as its type.reports/element-framing/RE-446-type-layer-copies.md, the reconnaissance addendum, the criteria entry,docs/export-diagnostics.md(the two rows nowagreeingorcurrent),changelog.d/fixed/1802-type-layers-of-a-type-edited-since-a-save.md, and RE-444's run and equal counts in its two entries (145 and 43144816471, which the merged PR had not updated).Testing
Measure 43155545709 (unfiltered, keep_ifc, held-out; head 0047fbf against main 1d76c82; same-project gates pass; the first run, 43151004964 on a09e1f5, took the current copy on every release and moved the same six exports and held-out bimspeed-frigento-2020, byte for byte main's now). Census of 42 models, equal/different/missing: quantities 159,508/5/14,337 to 159,866/5/13,962; properties 202,046/10/11,706 to 202,534/10/11,237; values Revit does not write stay 17 and 273; no row gains a different or loses an equal. Timber office IfcWall: Width equal 572 to 586 of 586, Reference 572 to 586, NetVolume 514 to 525, openings' Depth 270 to 284 of 284, Height and Width 92 to 99 and 76 to 83 of 124; layer sets written 553 to 560, whole sets within 0.001 ft of Revit's 552 of 552 to 559 of 559; wall ends within 0.001 ft 311 to 316 of 586; wall_curve_lengths_feet gains 1416616 (41.100722), 1636357, 2114950, 3065979, 3066427, 3071333, 3094656; body_sources join_trimmed 490 to 486, centreline_layer_joins 223 to 227; parameter_value_count 46,393 to 46,445; total_entities 76,184 to 76,226. Concrete housing as built: parameter_value_count 6,942 to 7,090, total_entities 10,614 to 10,734, wall_curve_lengths_feet gains 1347014; at permit: body_sources join_trimmed 244 to 220, centreline 30 to 34, centreline_layer_joins 107 to 127, 24 wall curve lengths, parameter_value_count 6,674 to 6,856, total_entities 10,273 to 10,396; the 5 SPR-1 coverings' wall_type_layers source is rule current, Partitions/1143, 2 copies; wall ends within 1.0 ft 322 to 325 of 345, ends of 1347019 and 1347016 exact to 0.285 and 0.270 m off. Timber housing: parameter_value_count 7,960 to 8,030 and 7,732 to 7,766, total_entities 12,176 to 12,246 and 11,743 to 11,777.
probe_re444_frame_type_slotsMeasure 43145747467.0047fbf1anda09e1f5eand RE-444's head985cdb70are archived asrefs/archive/2026-11-12/cited/<12 hex>. The merge of main (a2a77c33, v0.19.0) is clean: the sorted+and-lines ofgit diff -U0outside docs, changelog and reports are identical to those of main's own delta (1d76c82fto09b18bd3), andsrc/research/partition_compound_structure.rsand the probes are byte for byte the measured head's. The change adds one element-index lookup for a file whose host types disagree and no read otherwise, so it is not timed.full / CI passedon the final head.Not done
IfcSlabdifferent sets 2 to 6), and its export cannot be dated against its save (#1805).main, are 0.935 and 0.886 ft off beside ends that are nearer (the worst end of each wall, and of 1426918, falls: wall ends within 1.0 ft 322 to 325); the cause is not read (#1806).IsExternal, which no type has (W7: type objects' common-set values (IsExternal, LoadBearing, FireRating, Manufacturer) on the BIM4LCA office's types #1185, Revit's newer exporters do not write it); 17 walls'Lengthmove from missing to the walls counted apart (RE-252), none written.NetSurfaceAreaRE-444 stopped writing (#1803) and wall 2177212's body (#1407) are not this cause.Related issues
Closes #1802. Refs #1805, #1806, #1803, #1407, #1185, #1046, #1636.