Skip to content

Design options: frame slot +0x2a names the option; leave out non-primary options once the primary flag is found #319

Closed

Description

@DrunkOnJava

What is measured

The element frame's third "never set" sentinel slot, +0x2a (the 24 bytes at +0x1a are three u64 slots), holds a design option ElementId when the element belongs to one. Measured on Snowdon Towers Architectural (Revit 2024, local only) against the VIM export's Vim.DesignOption table and Revit's own IFC4 export:

slot +0x2a VIM design option primary recovered-category instances in Revit's IFC4 export
2059970 Middle Stair yes 18 (+9 slab edges) all
2059967 Continuous Bleachers no Stairs no 17 (+9 slab edges) none
1500727 Simple Dome no 1 (+1 generic model) none
unset – – 4,920 4,920 minus the #309 type omissions

Revit's export writes the main model and each option set's primary option, and leaves out every non-primary option. The slot explains:

What is missing

rvt-rs cannot yet tell a primary option from a non-primary one:

  • The option records (category −2006114) are byte-identical in shape.
  • The option-set records (−2006112) list their options in ascending id order, with no marker.
  • The primary is 1500724 (the smallest of its set) in one set and 2059970 (the largest) in the other, so order does not decide it.

To do

  • Find where Revit stores the set's primary option (candidates: Global/Latest document data, a parameter block in the partitions).
  • Once it is found, leave out instances in non-primary options, report them as a skipped item, and add OST_EdgeSlab (59 exported by Revit, 9 omitted, all 9 in option 2059967).

Refs #309. Evidence: reports/element-framing/RE-35-partition-record-wrapper.md §5, reports/element-framing/RE-37-fixture-site-circulation-categories.md §3.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions