Skip to content

Snowdon: 6 slabs in the Legends phase are not in Revit's export (phase filtering) #328

Closed

Description

@DrunkOnJava

Measured

On Snowdon Towers Architectural (Revit 2024, local only), Revit's own IFC4 export omits 6 slabs, 2287679 to 2287714, that carry no design option (RE-35 §5, RE-40 §3). They are the only elements rvt-rs exports outside Revit's export that the #309 type omissions do not explain.

Each exported element's frame reference list names exactly one OST_Phases (−2000112) record:

phase record name (phase name entry) elements rvt-rs exports that name it in Revit's IFC4 export
32440 Existing 0 –
118390 New Construction 5,839 5,769 (the other 70 are the #309 type omissions)
2287613 Legends 6 0

The phase names come from name entries shaped like RE-40's design-option entries: u64 id · u32 · u32 size · u32 0x0c82 · … · 0xff run · u32 n · UTF-16 name. The Legends phase's description reads "Phase used for creating legends".

What is missing

Revit's IFC exporter exports one phase: by default the phase of the view it exports from, and an element created in a later phase is not shown in it. rvt-rs does not know:

  • which phase the export uses;
  • the phase sequence (the ids are not in sequence order, and the phase records carry no obvious ordinal).

Leaving out "the last phase" or "a phase named Legends" would be a guess, so nothing is filtered yet.

To do

  • Find the phase sequence, for example a phase-order list in Global/Latest or in the phase records' chain bodies.
  • Find the phase an export would use, for example the default 3D view's phase parameter.
  • Then leave out elements created after the export phase (and demolished at or before it, once a demolished-phase reference is found), report them as a skipped item, and require zero exported elements dropped on the files that have Revit exports.

Refs #309.

Activity

  1. DrunkOnJava commented on Sep 23, 2026

    @DrunkOnJava
    OwnerAuthor

    Lead, measured 2026-09-23: a candidate phase sequence.

    Each of Snowdon's three partitions opens, within its first 0x300 bytes, with three counted lists of the form

    u32 4 · u64 32440 (Existing) · u64 118390 (New Construction) · u64 2287613 (Legends) · u64 x · u32 1 · …
    

    where x differs per list (2403931, 2408021, 2408024). If the first three ids are the phase sequence, Legends is the last phase, and elements created in it are not shown in a New Construction view. That would explain the 6 slabs, if Revit's export used New Construction.

    Near the Legends phase's own name entry (Partitions/68 0x6fad516) there is also a list u32 3 · 2287613 · 32440 · 118390, in a different order, so the order is not yet established.

    The lists sit in OST_RvtLinks records (2403931, 2409045, …), i.e. Revit link instances, which carry a host-to-link phase mapping. That supports reading the three ids as the host's phases in sequence. In the first list x is the link record's own id (2403931). The other two values (2408021, 2408024) have no partition record.

    Still missing: which phase the export used.

  2. DrunkOnJava commented on Sep 23, 2026

    @DrunkOnJava
    OwnerAuthor

    More measurements, 2026-09-23. Still no rule, so nothing is filtered yet.

    • Other oracles. Core Interior, RE1 Architecture and Projeto1 have two phases each. Every placed element that names a phase names the second, New Construction (Core: 1,724 elements naming phase 3; RE1: 98 naming 86961). None names Existing, so these files cannot tell "the last phase" from "the phase model views use".
    • Snowdon. The Legends phase (2287613) is named by 19 partition records with no category at +0x12 (the 6 slabs and records around them) and by the 18 Revit link records' phase maps. No view record found names it. The 4 view records that name a phase name New Construction.
    • If the link maps' order (Existing, New Construction, Legends) is the phase sequence, Revit's export used a phase before the last one. So "export the last phase" is ruled out, and so is "export everything up to the last phase".

    The next signal to look for is the phase of the view the export ran from, or the project's IFC export configuration (extensible storage). Both need a file whose Revit export used a non-default phase before they can be verified.

  3. added
    area:elements
    priority:P2
    type:bug
    on Sep 30, 2026
  4. DrunkOnJava commented on Oct 4, 2026

    @DrunkOnJava
    OwnerAuthor

    Progress, 2026-10-04 (#676, B46): the native record path now reads Revit 2025 and 2026. Its framing, record-count and body-size checks hold on all nine 2025 files (RE1 and Autodesk's samples) and all five 2026 samples. Every element body carries m_createdPhaseId and m_demolishedPhaseId, and tests/native_phases.rs checks them on RE1's exported family instances. No RE1 or Core Interior element is demolished, so phase filtering itself still has no 2025 evidence. On RE1 Plumbing, phase is not why Revit's export leaves out tank 442378: it was created in New Construction, is demolished in no phase, and is in the main model.

  5. 19 remaining items

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

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions