Skip to content

Snowdon Towers Architectural: 84 ElemTable first ids that name no record are still declared (RE-41) #760

Closed

Description

@DrunkOnJava

Found by @pinterbanget while landing #737 (comment), with Autodesk's Snowdon Towers samples in RVT_PROJECT_CORPUS_DIR. Since #737 reads Snowdon's Global/ElemTable in its 40-byte layout again, one corpus target fails on Architectural:

partition_record_chain::every_first_prologue_frame_starts_a_record_of_its_own_id
Snowdon Towers Sample Architectural.rvt: 47149 of 47233 declared ids have a record

What was measured. The 84 ids without a record are exactly the id_primary values of the 84 records whose two ids differ. declared_ids keeps both ids on purpose (RE-41, src/elem_table.rs), so no id declared before is dropped. On Snowdon, none of those 84 first ids is:

  • an owner in the table: 13 owners (Structural) and 42 (Architectural) are among no first id, while every owner is a second id;
  • a partition record;
  • a Tag of Revit's export.

So they look like ids that belong to no element.

Two ways to close it:

  1. declared_ids drops an id_primary that differs from its record's id_secondary. That changes what every caller of declared_ids sees, which is why it isn't in fix(elem_table): detect the record size by the ElementId, the second id #737.
  2. The test counts id_secondary only.

What decides it. Whether anything in the file names one of those first ids: a reference list, a join list, an owner, a connector entry, a parameter. If nothing does on Snowdon Architectural and Structural, option 1 is the fail-closed choice, since an id nothing refers to shouldn't count as declared. If something does, what refers to it says what the first id is. An id the element held before a copy or a re-save is one guess, and it is not measured.

CI can't see this: Snowdon isn't in CI's corpora, which is how #736 got past it. Snowdon Towers is on the same Autodesk host as the sample projects tools/fetch-autodesk-samples.sh pins by sha256, so adding it to research/autodesk-sample-projects.tsv would put it in front of the Measure workflow. That's tracked separately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:elementsarea:partitionspriority:P2type:research

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions