Skip to content

Autodesk samples, 2025 against 2026 saves: 6 bodies, 1 profile and 12 level binds differ with no known cause #1864

Open

Description

@DrunkOnJava

What

#1843's element diff, comparing each Autodesk 2025 sample with its 2026 save, lists a few changes with no known cause (run 43337710630, probe_1843_element_diff with probe_pair_release=2026, on #1852 with #1863 merged in; PR #1852 comment 6840311802):

Sample What differs Elements
rac_advanced the body 4
rac_advanced the profile: the 2025 save gives ProfileSource, ProfileVertexCount and ProfileVoidCount, the 2026 save none, and BodySource and ProfileResolved change 1
rac_basic the body; one BodySource 2
rst_basic LevelBindSource: another source on 10, none in the 2026 save on 2, which also lose their LevelElementId 12

The other changes in those pairs have causes and fixes: IsExternal (#1860), and the MEP samples' 25 layered-floor pieces (#1840).

The diff counts these and cannot say which kind they are:

  • Autodesk changed the model between the saves, and the export is right to follow it.
  • Or rvt-rs reads the two saves of one element differently, and one of them is wrong.

rst_basic is the sample whose Levels go unread from Revit 2016 on (#1842), so its 12 level binds may share that cause.

Done when

Activity

  1. added
    area:ifc
    type:bug
    on Nov 13, 2026
  2. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    Rows for the re-read of this issue's 19 elements on main at e57db423, registered before the run. main now holds #1860 (IsExternal), #1863 (the wall areas' sum order), #1867 and #1868 (the Levels that are not building stories) and #1852 (the element diff with the probe); the run is the one that read the 2025 samples against their 2026 saves in this issue's table (probe_1843_element_diff, probe_pair_release=2026, the samples of 2025 and 2026), on that head.

    1. rst_basic: the 12 level binds. None of its Levels is a building story, and fix(ifc): a file whose Levels include no building story is written with no storey, as Revit's export writes it, instead of storeys made up from its elements' heights (#1842) #1868 writes it with no storey, so I expect the pair to list no LevelBindSource or LevelElementId change: 0 of the 12. If any remain, the probe's per-property lines say which property and how many, and they are read before anything else.
    2. rac_advanced and rac_basic: the bodies and the profile. Nothing in main since touches them, so I expect the same 4 bodies and 1 profile on rac_advanced and 2 bodies on rac_basic.
    3. The other pairs. rme_advanced and rme_basic list no change (as at 78516997), and the pairs' identity holds: left = removed + changed + unchanged + set_aside.left and likewise for the right.

    The issue's remaining question, for the elements of row 2, is whether Autodesk changed the model between the saves or rvt-rs reads two saves of one element differently; that is read on this run's per-element lines, which name each one.

  3. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    The rows, read on 43372460252 (main at e57db423): row 1 does not hold, rows 2 and 3 do.

    1. rst_basic: not 0 of 12, still 12. The pair of the 2025 sample against its 2026 save lists 12 changed elements, all in the RvtElementRecordGeometry properties that say how the element's Level was chosen: LevelBindSource on 12 (absent in the 2026 save on 2 of them), LevelElementId on 2 (absent in the 2026 save on both) and LevelBindResolved on 2. fix(ifc): a file whose Levels include no building story is written with no storey, as Revit's export writes it, instead of storeys made up from its elements' heights (#1842) #1868 changed what the export does with a Level that is not a building story (no storey), not whether an element's record names a Level or which of the Levels it names rvt-rs picks, and these three properties record exactly that. So the 12 differ where the two saves' records differ in that, and which save's reading is right is not read yet: the probe prints counts per property, not the elements. The next step is a probe that names the 12 (their class and Tag, and on each side the three values and the Level ids the record's reference list holds), which is what separates a change in the model from a reading that differs.
    2. rac_advanced and rac_basic: holds. 4 changed elements on rac_advanced and 2 on rac_basic, the same counts as at 78516997 (the table on feat(cli): rvt-diff --elements compares two saves of a model element by element, keyed by the GlobalId the IFC export writes (#1843) #1852).
    3. The other pairs: holds, and better. rme_advanced and rme_basic list no change, and added and removed are 0 where they were 25 and 25: the layered floors' pieces that took new GlobalIds on every save (A layered floor's parts take new GlobalIds on every save of a Revit 2027 model (#1829) #1840) now hold, since fix(ifc): an element's further pieces take their GlobalIds from the element's Revit GlobalId, so they hold from save to save (#1840) #1850. The identity left = removed + changed + unchanged + set_aside.left (and the right's) holds on all five pairs, with set_aside 0.

    The 19 elements are now the 12 level binds, the 6 bodies and the 1 profile. This issue stays open.

  4. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    Rows for probe_1864_level_binds (#1876) on rst_basic's 2025 sample against its 2026 save, registered before the run. The run is main at 7e7b69b7 plus the probe (f13e3381), on the samples of 2025 and 2026 with probe_pair_release=2026.

    1. The probe names the 12. rst_basic prints level_bind_elements 12 of <changed>: the 12 of the last run, 10 whose LevelBindSource changes and 2 that lose their bind. Its level_bind_source lines add up to 12, and the other four pairs print level_bind_elements 0. Any other count means the probe and Element-level diff of two saves: what was added, removed or changed, keyed by GlobalId (#1829) #1843's diff key the elements differently, and that is fixed before the elements are read.
    2. The Levels hold between the saves. The two levels lines list the same Level ids, names and elevations, with the same Building Story setting on each. If the 2026 save lists fewer Levels, or another setting, that is read first: a Level one save does not recover would explain a lost bind on its own.
    3. Each of the 12 is one of three things, by a rule set now. Records are equal when container, placement, levels and others (as sets) match and base and top agree to 1e-6 ft; stream and offset differ between saves and are not compared.
    4. The three kinds sum to 12, so no element is read twice or left unsorted.
  5. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    The rows, read on 43378465425 (f13e3381, #1876): rows 1, 2 and 4 hold, row 3's expectation does not.

    1. Holds. rst_basic prints level_bind_elements 12 of 12 changed: partition_element_record_reference_list -> partition_element_record_base_constraint on 10, partition_element_record_base_constraint -> absent on 2. The other four pairs print level_bind_elements 0.
    2. Holds. The two levels lines are identical: the same 9 Levels (ids, names, elevations), each with Building Story off.
    3. My expectation was wrong: none of the 12 is a reading that differs. I expected the 10 to have equal records. By the rule set before the run, all 12 are the second kind: the records differ in what the bind reads. In every one, the 2026 record's reference list names one more Level than the 2025 record's, and it is the same Level: Top of Parapet (196629, 19.6850 ft). Everything else the probe compares is equal on both sides: the box (19.5392 to 19.8309 ft), container, placement, and the other elements the list names (all 7 of each, in the same order).
      • 10 name one Level in 2025 (Level 2 on 6, Foundation on 2, Ref Beam system on 2) and two in 2026. The extra Level is above the beam's base, so RE-59's base constraint picks the Level the single reference gave: LevelElementId is unchanged and only the source differs.
      • 2 (1046284, 1437167) name two in 2025 (Level 2 with Ref Beam system, and with Foundation) and three in 2026. A record naming three matches neither rule (exactly one, RE-27; exactly two, RE-59), so the 2026 save leaves them unbound: LevelBindResolved and LevelElementId go.
    4. Holds. 0 reading differences + 12 records that differ + 0 records missing = 12.

    All 12 are one type of framing member, the CHS 88.9x5.0 tubes, IfcBeam on both saves, and the tubes' centreline (19.68505 ft) is the elevation of Top of Parapet. The bytes show the 2026 record names that Level and do not show why: whether Autodesk re-hosted the tubes on it between the saves or Revit 2026 writes the reference for another reason. So the diff is right to list the 12, and the cause stays open.

    What this leaves is the 2 that lose their bind. A record naming three Levels is left unbound by design (a guess would be a plausible typed answer), and whether a rule for three is right depends on a record of that kind in a model with Revit's own export, which I do not know of. Rows for the count that would find one, over every model Measure holds, follow before it runs.

  6. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    Rows for probe_1842_levels_named (#1878), registered before the run: how many Levels each element record's reference list names, by category, over every model Measure holds. The run is main at 3b745d51 plus the probe (caf3fd9b), counts only, with scorers=none. It serves #1842 as well: CHL's 104 on no storey may be records that name three or more Levels, or none.

    1. The probe prints for every model. One file revit= line per model (102 models, as the last unfiltered probe run), and on every levels_named line n0 + n1 + n2 + n3plus = instances. A model with no output, or a sum that does not match, is a probe fault and is fixed before anything is read.
    2. It finds Autodesk samples, 2025 against 2026 saves: 6 bodies, 1 profile and 12 level binds differ with no known cause #1864's 12. The 2026 save of rst_basic has Structural Framing with n3plus of at least 2, and the pattern lines named=2 ... =1/1/0 on at least 10 instances and named=3plus ... =2/1/0 on at least 2: the third Level, Top of Parapet, lies within the tubes' box. The 2025 save has named=2 ... =2/0/0 on at least 2 and no named=3plus on Structural Framing from these 12.
    3. No model with Revit's own export holds a record that names three or more Levels. I expect n3plus=0 on every category of Core Interior, Snowdon Towers, the RE1 models and Einhoven, since RE-27 and RE-59 were measured on them and found one or two. I do not know it for the 2026 and 2027 held-out models, which have Revit's export too; the count is the first thing this run says about them.
    4. Where three or more occur, the next step is set by where.
      • In a model with Revit's export: the storeys of those elements are scored against Revit's with a candidate rule (the highest named Level at or below the box base, else the lowest) before any rule is written, as RE-59 was.
      • Only in models without one: they stay unbound as a measured negative, and CHL's counts are asked of its reporter through probe-binaries.yml, as this probe prints no name or id.
  7. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    The census rows, read on 43380176820 (caf3fd9b, #1878): rows 1 and 2 hold, row 3 does not, and row 4 sends the question to a smaller set than I expected.

    1. Holds, with one limit. All 102 models the harness runs a probe on print a file revit= line, and n0 + n1 + n2 + n3plus = instances on every levels_named line (0 mismatches). The 19 held-out models, bimcollab-str-2015 and racadv-2015 to 2020 keep counts only in Measure and have no probe output, so this run says nothing about the held-out Revit 2026 and 2027 files.
    2. Holds. rst_basic 2026 and 2027: Structural Framing n3plus=5 (the 2025 save has 3), named=2 ... =1/1/0 on 24 instances (14 in 2025), named=3plus ... =2/1/0 on 2. The 2025 save has named=2 ... =2/0/0 on 2, which become those two. So the third Level, Top of Parapet, lies within the tubes' box in all 12, as Autodesk samples, 2025 against 2026 saves: 6 bodies, 1 profile and 12 level binds differ with no known cause #1864's reading said. The 2025 save already holds 3 records that name three Levels (2/0/1), unchanged in all four saves of 2024 to 2027.
    3. Does not hold: Snowdon Towers does. Core Interior, Einhoven and the RE1 models have n3plus=0, as I expected. Snowdon Towers 2024 has 5: 2 Structural Columns (1/1/1) in the structural sample and 3 Stairs (1/2/0) in the architectural one. I had said RE-27 and RE-59 were measured on those files and found one or two; they found one or two on the records they scored, and these five name three.
    4. Where the three-Level records are. 53 of the 321,349 placed instances (0.016%) in 14 of 102 models, by pattern (Levels at or below the box base / within it / at or above its top): Stairs 0/3/0 20 (rac_advanced, 5 in each of 4 saves), Structural Framing 2/0/1 12 and 2/1/0 4 (rst_basic), Mass 1/2/0 4, Walls 0/2/1 4 and 1/0/2 4 (rac_basic), Stairs 1/2/0 3 and Structural Columns 1/1/1 2 (Snowdon Towers). None is in a model Measure scores against Revit's export (Core Interior, Einhoven, RE1, the BIM4LCA models and the r2025 set have none), so Measure cannot test a rule for them. The only Revit export that has such records is the local Snowdon Towers one, for 5 of them.

    What this settles for #1864: the 2 beams that lose their bind are one of 53 records in the corpus that match neither RE-27's rule nor RE-59's, and nothing Measure holds can say which Level Revit gives them. A rule for three Levels is not written: the generalisation of RE-59's (the highest named Level at or below the base, else the lowest) is the natural one, and 5 records of one local model are too few to call it measured. The records stay unbound and LevelBindResolved says so.

    What it leaves for #1842: CHL's 104 on no storey may be records of this kind, which only a count on CHL can say. The probe prints counts only, so its reporter can run it.

  8. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    #1915 (ready, in CI) settles the 12 level binds' Level: on the kept exports of the 2025, 2026 and 2027 saves of rst_basic, LevelElementId and LevelBindResolved are equal on all 370 beams, and the 12 beams still differ only in the label LevelBindSource (the same Level, bound by the unique name where the list names one Level and by the highest where it names two). What is left of this issue is its 7 bodies: 4 of rac_advanced (one of them with a profile that only the 2025 save gives) and 2 of rac_basic, which rvt-diff --elements counts and does not name.

    Rows for probe_1864_body_diff, registered before the run is dispatched. The probe, on branch research/1864-body-diff, names the elements of two saves of one sample whose body or profile differs, prints each side's body as the export writes it (extrusion size and profile kind, solid kind, location, rotation) with BodySource, ProfileSource, ProfileVertexCount, ProfileVoidCount and ProfileResolved, and prints each save's element record for them (box, container, placement kind, stream). It runs on the 2025 samples against their 2026 saves (probe_pair_release=2026), main at d90c1fa plus the probe. No change to any export.

    1. The probe prints for every sample pair and exits 0. body_diff_elements is 4 of 4 on rac_advanced and 2 of 2 on rac_basic (the counts of the last run; main has moved, so any other number is read before the elements are), and 0 on rme_advanced, rme_basic and rst_basic.
    2. Each element is named with its IFC entity, ElementId and the fields that differ, and each side's body_side line says what the export wrote.
    3. A rule set now for what each one is.
      • Its element record's box, container and placement kind are equal on both sides (box to 1e-6 ft) and the body still differs: the difference is in data the record does not hold (sketch lines, a type's layers) or a reading that differs. The body_side lines say which side resolves a profile and which does not, and a second probe reads that data.
      • Its box, container or placement differ: Autodesk changed the element between the saves, and the export is right to follow it.
    4. Nothing is exported differently.
  9. 4 remaining items

  10. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    Rows for the diff's digest, registered before the run is dispatched. The element diff's body digest took the extrusion even where the writer draws a solid instead, which is how four of the six roofs came to be listed. The digest now takes the mapped item, else the solid, else the extrusion, as step_writer draws them (src/ifc/element_diff.rs, branch research/1864-body-diff at the commit below). The same probe_1864_body_diff runs on the 2025 samples against their 2026 saves.

    1. The roofs that differ only in the undrawn extrusion are no longer listed. rac_advanced lists 1 element (201262) and rac_basic 1 (243274), the two Roofs by extrusion are solids only on Revit 2025: read them on 2024, 2026 and 2027, held to the 2025 save #1479 holds; rme_advanced and rme_basic 0, and rst_basic 0 of 12.
    2. Those two stay, with the sources of the first run (partition_roof_slope and partition_roof_extrusion on the 2025 save, the saved mesh on the 2026 save): they are readings that differ, not a counting fault.
    3. No other count moves. A digest of an element with only one of a mapped item, a solid and an extrusion is the same as before, so no pair lists more elements than in the first run; any pair that does is read before anything else.
    4. Nothing is exported differently. The digest is read by rvt-diff --elements and its probes only; the unfiltered Measure of the pull request shows every export byte-identical.
  11. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    The digest rows, read on 43462494387 (probe_1864_body_diff at f61496f): rows 1 to 3 hold. The 2025 samples against their 2026 saves list 1 element on rac_advanced (201262) and 1 on rac_basic (243274), 0 on rme_advanced and rme_basic, and 0 of 12 on rst_basic. The four roofs that differed only in the undrawn extrusion (167036, 167158, 165755, 724430) are no longer listed, and the two left keep their sources of the first run: partition_roof_slope (134 sketch vertices) and partition_roof_extrusion on the 2025 save, the saved mesh on the 2026 save. Row 4 (nothing is exported differently) is read on the unfiltered Measure of the pull request.

    What is left of this issue is #1479's: the reader of a sketch line's B-spline is listed for Revit 2025 only. I am holding the same two roofs to the 2025 save on the 2024, 2026 and 2027 saves, with the list widened on a branch; the rows are on #1479.

  12. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    #1931 (RE-458) is on main, and #1479 is closed by it. What it does to this issue's 7 bodies:

    What is left of "Done when": the element diff of the rac_advanced pair still lists 201262's representation and rst_basic's pair its 12 LevelBindSource labels, none of them a change in the model. Whether the diff should stop listing a provenance label and a representation that give the same shape is a design question for #1843's diff, not a reader defect; I am leaving this open for it rather than closing it as explained.

  13. added
    priority:P3
    on Nov 14, 2026
  14. DrunkOnJava commented on Nov 14, 2026

    @DrunkOnJava
    OwnerAuthor

    Where this stands on main (8529bb01):

    Widening the list would make the diff quiet by drawing the 2026 roof from its sketch. That puts an unscored reading where Revit's own mesh is written today, so it is not the fix. The question is the one #1856 asks of stair runs: where rvt-rs can draw an element from its sketch and Revit also saved its mesh, which body the export writes. Its count (240 sketch-drawn runs, all with a saved mesh, the sketch 1% to 3% larger on 44 whole scenes) is the evidence to choose from. This issue's last element closes with that choice, and I am leaving it open on #1856 rather than widening a reader here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ifcpriority:P3type:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions