Skip to content

Provenance: record the copy each body, profile and outline was drawn from, not only the selected frame #1360

Closed

Description

@DrunkOnJava

#1325 (PR #1350) gives each element one byte location: the partition element record frame the exporter selected. On Revit 2024 and later that is the greatest vertical extent, then the higher-numbered partition; on 2008 to 2023 it is the newest. The readers that draw an element's body, profile or outline often take their data from another copy:

  • the sketch-line readers take the current copy (Copies::Current, native_document::current_partitions, RE-216);
  • walls and beams keep the copies that agree (Copies::Agreeing);
  • saved meshes, stairs and the native readers read native records by member name.

On Core Interior 171 of 360 walls carry two frames that disagree. For such an element the cited bytes may not be the bytes the export drew it from. #1350 states this as a caveat. The goal is an answer auditable down to the bytes the export used.

Change

  • Each reader that chooses a copy records the copy it used for each value it writes that is not read straight from the selected frame. For a body, profile, outline, height or opening, it records the stream (or native record) and offset, and the copy rule (selected, current, agreeing, native).
  • The record sits next to the trust marker the reader already sets (BodySource, ProfileSource, SpaceOutlineSource and the rest), in the provenance table only, behind the same opt-in switch. It never goes into the IFC.
  • The MCP get_element and explain_element provenance list these value sources.

Done when

  • On Core Interior and the BIM4LCA office, every element whose BodySource names a record-based reader has a value source.
  • An E2E test reads the bytes at each recorded offset and finds the record the reader decoded. For walls, that is the copy whose plan box the body uses.
  • An element whose frame and value source differ is counted, by reader.
  • The feat(ifc): the provenance of every decoded element, down to the byte (#1325) #1350 caveat is replaced by the recorded source.

Activity

  1. added
    area:ifc
    area:partitions
    priority:P1
    type:feature
    on Nov 4, 2026
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:ifcarea:partitionspriority:P1type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions