You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Provenance: record the copy each body, profile and outline was drawn from, not only the selected frame #1360
#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.
Activity
fix(ifc): a stair run drawn from its sketch names no value source yet…
docs(mcp): the tool contract as the server writes it, from CI run 418…
fix(ifc): a box with its profile read from another record names the f…
docs(mcp): the tool contract as the server writes it, from CI run 418…
feat(ifc): the copy each body reader took its value from, in the prov…
feat(ifc): value sources for profiles, stair runs and landings (#1368) (
feat(ifc): value sources for room outlines, hollow and I sections and…
feat(ifc): value sources for Areas and for floors drawn along their s…
fix(mcp): fields the server leaves out when empty are optional in the…
chore(release): prepare v0.15.0 (#1399)
fix(research): a read that records value sources keeps the inflated c…