Skip to content

Revit 2027: 84 framing records of one save are read with no ElementId, and the save a day before reads all 84 (#1829) #1838

Closed

Description

@DrunkOnJava

Found by HWT-25's report (#1829) on a confidential Revit 2027 structural model (CHL), read with 0.18.0.

What happens. In the latest save, 84 element records are left out of the export, and its diagnostics count them as element_record_without_element_id. All 84 are steel roof members of one RHS framing family (StructuralFraming). In the same model's backup, saved one day earlier, rvt-rs reads the same 84 GlobalIds with no warning. Revit's own export has them.

What the reader does. A frame of the second prologue (RE-30) carries no ElementId of its own. assign_second_prologue_ids takes the id of the ElementId-keyed record that encloses the frame, in the record chain each partition opens with (RE-35). A frame stays unattributed in two cases:

  • its enclosing record's id is not one Global/ElemTable declares;
  • it lies after the chain.

Which case the 84 are in is not known. The reporter could not reproduce it on a small shareable model across four saves (51, 51, 771 and 809 members, all read).

To separate the cases. probe_re35_record_wrapper, run on both saves, prints per partition how many placed second-prologue instances fall in a declared record, in an undeclared record, or after the chain. It prints counts only, with no ids or names:

cargo run --profile ci -p rvt-probes --example probe_re35_record_wrapper -- CHL.rvt

Done when:

  • the cause is located from that output;
  • if the reader can resolve the 84, it does, and their GlobalIds equal Revit's;
  • if it cannot, the negative is reported with the counts.

Activity

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

    @DrunkOnJava
    OwnerAuthor

    Rows for PR #1874's Measure run, registered before it is dispatched. The change is wording only, in texts that appear only where unexported_element_records is above 0, and none of the 121 published diagnostics.json of the 0.20.0 run (43357862138) has it. So the run should show nothing moved:

    1. Every ifc.sha256 the run records equals main's.
    2. Every diagnostics.json equals main's. A model that carries the item would differ in its first warning, so a difference names a model the 0.20.0 run did not have; it is read before anything else.
    3. Every scorer output the run compares is equal.
    4. same-project gates passes on the head commit.

    The same run also settles whether any measured model carries the item: if none does, the new texts are exercised by the reporter's file alone, which is said in the PR.

  3. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    The four rows, read: all hold. Run 43370128477 (unfiltered: the samples of every year, the BIM4LCA models, puzzbobb's Revit 2025 models, rac_advanced's pairs, BIMcollab's model, the families and the held-out models) on e90f943a, against main at 9f43fe37.

    1. Exports: holds. ifc.sha256 is identical on 146 of 146.
    2. Diagnostics: holds. diagnostics.json is identical on 121 of 121. The warning this PR rewords is the first of a file's warnings and appears only where records of undeclared ElementIds exist, so a model that carried it would differ here; none does.
    3. Scorers: holds. Nothing differs beyond what only the head writes (the probe's output and the across-saves areas). The run's semantic check passes (42 models, 57,056 elements, advisory).
    4. Gates: hold. same-project gates pass on e90f943a.

    So the new texts are exercised by no measured model, as the PR says: the one comparison with Revit's export of the file that carries the item is HWT-25's, as counts. PR #1874 is ready for its read.

  4. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    PR #1874's head moved twice since the run that read the rows above: main is merged in (#1850 and #1852 landed after the run) and the texts are hedged to what was measured on the one model (rvtDevelop's review). The code change is strings only, in texts that appear only where records of undeclared ElementIds exist, which no measured model has, so the earlier unfiltered run stands for the exports and the diagnostics.

    Row for the new run, registered before it is dispatched: same-project gates pass on fbf3cecf. It needs a run of its own because main's gate is now #1850's stricter bodies_across_saves.py, which the earlier head (cut before #1850) would fail on the 25 further slab pieces of each rme save, as #1873's did.

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:elementstype:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions