Skip to content

IFC export: write Revit's Category, Family/Type and Phase Created properties #754

Closed

Description

@helenkwok

rvt-rs's IFC carries no Category and no Phase Created on exported elements. Revit's own IFC4 export writes them in the Other and Phasing property sets: on the seven Autodesk Revit 2024 samples that export elements on main (120e2f9), about 25,600 values of each, none of which rvt-rs writes anywhere.

Family and type are already exported (ObjectType, the IfcTypeObject name, and the type object's Tag = type id), and they agree with Revit's on every element that has them. Only the property names differ: Revit writes Family, Family and Type, Type and Type Id in Other on the occurrence, and Family Name (Other) and Type Name (Identity Data) on the type.

Where the values are:

  • Category: the element record's BuiltInCategory at +0x12, already read as m_builtinCategory. The file stores the id, not the name. On the seven samples 57 distinct ids occur across 26,656 elements, and no id appears with two names in Revit's export, so a table of the ids with the English names Revit's export writes gives the property (sub-categories as Parent: Name, e.g. Walls: Wall Sweeps).
  • Phase Created: RE-168 (Element record reference list at +0x88: attribute the remaining slots (leading 3, family/type/level ids) #228) found that the leading slot of the element record's reference list (+0x88) is the element's phase. Phases are ProjectPhase elements whose name follows the ElementId in a fixed frame: 01 00 00 00 | u64 id | 56 x ff | 00 00 00 | u32 n | UTF-16 x n. Taking the one phase id the reference list names gives Revit's Phase Created on 38,555 elements of nine Revit 2024 samples, with none wrong. DACH is the discriminating file: it uses two phases (Phase 1 on 20 elements, Phase 2 on 2,586), and they are never confused. The other samples use one phase each, so there the check is only membership.

Limits:

Clean-room: public Autodesk Revit 2024 sample files with Revit's own IFC4 export as the oracle; the class name ProjectPhase comes from the file's own schema stream. No SDK source and no decompiled or disassembled code was used.

Activity

  1. added
    type:feature
    area:ifc
    on Oct 18, 2026
  2. added
    priority:P2
    on Oct 18, 2026
  3. DrunkOnJava commented on Oct 18, 2026

    @DrunkOnJava
    Owner

    This shipped in v0.5.0 with your #755: Category, Family and Type and Phase Created are in Revit's Other, Identity Data and Phasing sets. v0.5.1 is the latest release.

  4. added a commit that references this issue on Oct 18, 2026
    728dcaa
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:ifcpriority:P2type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions