Skip to content

RE-38 names: tell a type's own family from families nested in it #324

Closed

Description

@DrunkOnJava

RE-38 names an element Family:Type:ElementId only when its type's partition record holds exactly one other named id of the same category (the family). Nested families break that. On RE1 Electrical, 142 of 168 placed instances resolve a type, but only 76 resolve a family, because the type record also names the families nested inside it:

type candidates (same category, named, in the type's record) Revit's family
439260 6" (lighting) 51892 Recessed Fixture, 756708 265100-LIGHT-CAN 265100-LIGHT-CAN
444100 24"x24" (lighting) 51892 Recessed Fixture, 755868 265100-LIGHT-LED 265100-LIGHT-LED
476009 120V Duplex (electrical fixtures) 51955 Recessed Back Box, 475198 Receptacle Duplex, 681952 262726-RECEPT to measure

So RE1 Electrical's 12 lighting fixtures keep Class-ElementId names. Revit names them 265100-LIGHT-CAN:6":441149 and so on.

To do

  • Find what separates the host family from nested families in the type's record: the slot position (on Snowdon, type 21944's slot list is [21943 family, 21944 type, 28431]), or the nested family's own record.
  • Check the rule against Revit's Name on RE1 Electrical (CI tier 2 fetches it) and extend tests/element_names.rs to it.

Refs RE-38 (#321).

Activity

  1. DrunkOnJava commented on Sep 23, 2026

    @DrunkOnJava
    OwnerAuthor

    Two rules ruled out on RE1 Electrical (measured 2026-09-23):

    • Position in the type's reference list. In 2025 type records the candidates sit in one ascending ElementId list, so position is ElementId order, not role. For type 439260 the nested family 51892 comes before the type's own id and the host family 756708 after it.
    • The family's own record naming the type. None of the candidate family records (51892, 756708, 755868, 51955, 475198, 681952, 506469, 851975) contains the type's ElementId anywhere in its record chain body.

    Next candidates: the family-to-type link in schema-serialised data (the same object data #322 needs), or which candidate the type's placed instances also reference.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions