Skip to content

Revit 2015, BIMcollab's structural example: 241 of 241 element GlobalIds differ from an export that went through another tool; the rule holds on rac_advanced 2015 #878

Closed

Description

@DrunkOnJava

What

On the first Revit 2015 project with Revit 2015's own IFC export, BIMcollab's structural example (RE-198), rvt-rs gives 0 of the 241 elements Revit's GlobalId. Every element, storey and the project get the GlobalId rvt-rs derives from the document (17wfBnbaD1xR_N52DKY4…), so revit_global_ids returned nothing for the file.

revit_global_ids reads the episode number from 28-byte Global/ElemTable records at RECORD_EPISODE_OFFSET_28, measured only on Revit 2023 (RE-108). It returns an empty map when the history does not parse or the records are another length. Either the 2015 Global/History layout differs from the one EpisodeHistory::parse reads, or the 2015 record carries the episode elsewhere.

Revit's GlobalIds for this file are still checkable: the model was renamed after the export, but an unchanged element keeps its UniqueId. Type objects already agree on 113 of 129 type GlobalIds (RE-167's path).

Evidence

  • Measure run 39580240447, -f bimcollab=true, main at 2dbc8b8: global_ids_vs_ifc gives differs: 241.
  • File: 02_BIMcollab_Example_STR.rvt, sha256 8cd1f122…e193, pinned in research/bimcollab-models.tsv.

Done when

Revit 2015's GlobalIds are rebuilt and scored on a 2015 file other than this one, or on this one once it has been spent as a development model. RE-198 measured it before any fix. The episode offset or history layout is recorded with byte evidence, and global_ids_vs_ifc on the BIMcollab model reports the result.

Activity

  1. added
    area:ifc
    priority:P2
    type:bug
    on Oct 21, 2026
  2. 43 remaining items

  3. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    The unfiltered run of the writer change, 43498066087 (head e5516b73, base 2b815423), against rows 11 to 14 registered above, and the exports kept from both builds, 43500234436:

    Row 11 holds. global_ids_vs_ifc reads the project, site and building 1 of 1 each, from 0 of 1, on the 50 models predicted: Core Interior, the 24 r2025 models, the RE1 four, 16 held-out files, rac_advanced 2017 to 2020 and the spent Vitoria. No other model's project-level line moves: the 13 that were 1 of 1 stay (the 12 BIM4LCA models and the held-out Revit 2021 file), and the four that no rule here explains (rac_advanced 2015 and 2016, BIMcollab's example, the held-out Vitoria project) read what they read.

    Row 12 holds. The storeys go from none equal to every storey of Revit's equal on 10 files of 2017 to 2022: 4 of 4, 5 of 5, 8 of 8, 7 of 7, rac_advanced 2017 to 2020 5 of 5 each, the spent Vitoria 7 of 7, and 10 of the 16 storeys rvt-rs writes on the BIM Whale file, which are the 10 in Revit's export. The held-out Revit 2021 file whose storeys are stored goes from 6 of 9 to 8 of 9. No storey line moves on any model of 2023 or later.

    Row 13 holds, with the cause one file wider than I registered. The spent Vitoria "Before": 1,297 of its 1,314 elements are Revit's, from none (the bar was 1,233, the census's 1,298 the ceiling), and its 73 rooms 73 of 73, from none. The held-out Vitoria project, whose project-level ids no rule gives: 1,420 of its 1,441 elements, from none, and 73 of 73 rooms. So the history parse that refused four 0x1e entries was the cause for both Revit 2018 projects' elements; what stays unexplained on the second is its project, building, site and storey ids, and the 17 and 21 elements that differ. No other model's element or room count moves.

    Row 14 holds except on that one file. diagnostics.json is equal on all 121 models that publish one and the same-project gates pass (check run on e5516b73). The scorer lines of one model move beside the GlobalIds, the held-out Vitoria project's class sets, MCP answers, room names, space overlaps and space profiles, and all of them are its 73 rooms pairing by GlobalId now where they paired by centroid: a consequence of row 13, and no other model has a scorer line that moves outside the GlobalId lines.

    Nothing but GlobalIds changes. 22 exports kept from both builds (Core Interior, the RE1 Architecture, an r2025 model, the BIM4LCA office as built, and the 2018 to 2022 saves of rac_advanced, rac_basic and rst_basic): with every GlobalId made equal, the two builds' exports differ in two lines each, the file name's time and the owner history's time, which are the clock. Core Interior changes 8 GlobalId lines (the project, site and building, three aggregations and two more), the 2018 rac_basic 35 (its six storeys and what they own), and the BIM4LCA office none.

    What else moves, and is not scored: 17 family exports (rac_basic_sample_family 2017 to 2027 and the six bim4gib families) get their project, building and site from the family file's header GUID. No Revit export of a family exists to compare, so the claim is the writer's: the id is stable across saves and releases of the family, like the project's.

    The PR follows as a draft, ready after the 0.22.0 tag, which is pushed.

  4. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    The read of #1934 by the second session found two places where the writer would have written an id nobody measured, and both are fixed at a6ee9016: the project-level rule is read on Revit 2017 to 2027 only (it was open-ended, so a 2028 file would have taken it), and a storey's episode id is written on 2023 to 2027 only (on 2015 to 2022, when the project GUID is missing, it would have written the episode's id, which RE-220 found is Revit's on 0 of 45 storeys, where the writer used to derive one). The module doc and the report now say what the code does.

    Rows for the unfiltered run that gives the changed head its gates verdict, 43506982243 (head a6ee9016, base ff40a492, every flag), registered before it reports:

    1. Rows 11 to 13 read as in run 43498066087: 50 models' project, building and site 0 of 1 to 1 of 1, 10 files' storeys to all of Revit's, the two Vitoria projects' elements 1,297 of 1,314 and 1,420 of 1,441 (the base is main now, and main has 0.22.0).
    2. The two fixes move no scorer line against run 43498066087's head on any of the 146 models: no model is of Revit 2028, and the storeys of rac_advanced 2015 and 2016 (the only models of those releases with a project GUID and no stored storeys) read 0 of 5 either way.
    3. diagnostics.json is equal on all 121 and the same-project gates pass.
  5. DrunkOnJava commented on Nov 13, 2026

    @DrunkOnJava
    OwnerAuthor

    #1934 is on main (040fc011; it ships in the release after 0.22.0 with any other GlobalId move). The final unfiltered Measure of it (43506982243, a6ee9016) says this about Revit 2015:

    • The rule is not what fails on a Revit 2015 file. rac_advanced 2015 and 2016: 5,436 of 5,515 elements have Revit's GlobalId (79 are not in Revit's export), and they had it on main before fix(ifc): the project's own GUID gives Revit 2017 to 2027 files their project, building and site GlobalIds and Revit 2017 to 2022 files their storeys', and a history with an entry closed by 0x1e is read (#878, #1929) (RE-459) #1934, so the episode rule already rebuilt a Revit 2015 file's element GlobalIds. The "scored on a 2015 file other than this one" of this issue's Done-when is met by it. The byte evidence is RE-459: the history layout (an entry may close with 0x1e, which refused two Revit 2018 projects and gave 0 of 1,314 and 0 of 1,441 elements, now 1,297 and 1,420), and the project's own GUID in the header, which gives the project, building and site on Revit 2017 to 2027 and the storeys on 2017 to 2022.
    • This issue's file still reads differs: 241 on elements, with its project, building and site equal (stored strings, 1 of 1 each) and its storeys 0 of 5 equal but all 5 among Revit's. RE-459 §3: the file stores its ids as strings, 269 of the 292 products of its export equal a stored string but for the first character, and RE-208's 229 of 241. That export is the one that went through another tool (Solibri's optimizer, RE-198), so what it measures is not Revit's own writing, and nothing in the file is left to rebuild that the stored strings do not already give.

    What settles the last file is Revit's own export of a Revit 2015 file we can read, which nobody has sent (#1197). Retitled to say that; the issue stays open for it.

  6. changed the title [-]Revit 2015: the elements' own GlobalIds are not rebuilt (0 of 241 on BIMcollab's structural example; project, site, building and storeys are)[/-] [+]Revit 2015, BIMcollab's structural example: 241 of 241 element GlobalIds differ from an export that went through another tool; the rule holds on rac_advanced 2015[/+] on Nov 13, 2026
  7. DrunkOnJava commented on Nov 14, 2026

    @DrunkOnJava
    OwnerAuthor

    Closing: each item of this issue's "Done when" is met on main.

    What would still add evidence is Revit's own export of a second Revit 2015 project anyone can fetch. That is an output only a Revit installation can make, so it is now an item of #1197, where such requests are collected.

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions