Skip to content

research(ifc): a plate type's Tag is an instance's ElementId in Revit's export; rvt-rs writes the type's (follow-up of #1520, RE-367) #1594

Closed

Description

@DrunkOnJava

What

Revit's exporter sets the Tag of an IfcPlate type from an instance's ElementId, not the type's (FamilyExporterUtil.ExportGenericType in Autodesk's open-source exporter, read for what Revit's export writes; the same function lists IfcMember and IfcFurniture types). rvt-rs writes the type's own ElementId. type_objects_vs_ifc.py shows it as type Tag disagreements on plates alone: 269 plates of the BIM4LCA office at building permit (260 as built) against Revit's IFC4 export, and the 67 plates of Vitoria's ALD26 Before against Revit's IFC2X3 export, where Revit writes five IfcPlateTypes, each Tagged with a plate of the file. Members' and furniture's Tags agree in both files. RE-367 section 4a has the measurements; #1520 judged it the exporter's convention and not a wrong type.

To do

  1. Find which plates share a type object in Revit's export (the five of the 67; the office's) and which plate's ElementId becomes the Tag: by shape, size or material, and first, last or lowest of its group.
  2. Find why IfcMember and IfcFurniture types keep the type's id in these files when the same function lists them.
  3. Decide whether rvt-rs follows the convention. The type's own ElementId is the truthful identity of the Revit type and rvt-rs also writes it as the Type Id property, so the choice is whether a type object's Tag should equal Revit's or the type's.

Done when

type_objects_vs_ifc.py reports Tag agreement on the plates of the office and of ALD26 Before, or this issue records why rvt-rs keeps the type's id.

Activity

  1. added
    area:ifc
    priority:P3
    type:research
    on Nov 9, 2026
  2. DrunkOnJava commented on Nov 9, 2026

    @DrunkOnJava
    OwnerAuthor

    Findings from Revit's own IFC2X3 export of Vitoria's ALD26 Before (CC BY 4.0, read locally; counts only here):

    • The 67 plates fall into 5 IfcPlateTypes (60, 2, 2, 2 and 1 plates), and every plate's body is Mapped(IfcExtrudedAreaSolid): one representation map per type. So the exporter splits a Revit panel type into one IfcPlateType per distinct body, which is why rvt-rs's one type (the panel type's own ElementId) cannot match 5 types.
    • Each type's Tag is the Tag of a plate of its own group, in all 5 groups, and in all 5 it is the first plate of the group in the export's file order. In the 4 small groups that plate is also the group's lowest ElementId; in the group of 60 it is neither the lowest nor the highest: the group is written as two descending runs of 30 ElementIds, and the Tag is the highest id of the first run.
    • So the first plate of a group is Revit's traversal order of the curtain grid, which a record does not give. A rule that tags a type with its group's lowest ElementId would be right on 4 of 5 groups here and wrong on the biggest.

    So the type Tag of a plate cannot be reproduced exactly, and the standing rule applies: a value that is right on most and wrong on some is narrowed until it is never wrong. The next step is to write no Tag on a plate's type (missing, counted as such) rather than the panel type's own id, which is a wrong claim on all 67; and, separately, to split the type by body once bodies are compared. Not started: it moves the type scorer's counts on every file with panels, so it takes a Measure of its own.

  3. DrunkOnJava commented on Nov 10, 2026

    @DrunkOnJava
    OwnerAuthor

    Closing as answered, under the second half of the done-when. #1641 (merged 2026-11-10) records why rvt-rs does not keep the type's id: Revit's Tag of a plate type is the first plate of its group in an order of the curtain grid that no record holds (5 groups of Vitoria's ALD26 Before: right on 4 by the lowest id, wrong on the group of 60), so an IfcPlateType is now written with no Tag, and the type's own ElementId stays its Type Id property and the MCP server's element_id. #1648 makes type_objects_vs_ifc.py count a Tag that rvt-rs leaves out as left out and not as a disagreement, and pairs type objects by GlobalId, so the 269 and 260 disagreements of the office no longer read as differences. Members and furniture types, whose Tags agree, are unchanged. The convention itself, which plate's id the Tag takes, remains a thing no record gives; if a file ever stores it, it is a new issue.

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:P3type:research

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions