You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
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
area:ifcWork in the ifc area.priority:P3Useful follow-up work after core milestones land.type:researchReverse engineering, discovery, or design investigation.
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
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.
Find why IfcMember and IfcFurniture types keep the type's id in these files when the same function lists them.
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.
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.
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.
area:ifcWork in the ifc area.priority:P3Useful follow-up work after core milestones land.type:researchReverse engineering, discovery, or design investigation.
Activity
DrunkOnJava commentedon Nov 9, 2026
Findings from Revit's own IFC2X3 export of Vitoria's
ALD26 Before(CC BY 4.0, read locally; counts only here):IfcPlateTypes (60, 2, 2, 2 and 1 plates), and every plate's body isMapped(IfcExtrudedAreaSolid): one representation map per type. So the exporter splits a Revit panel type into oneIfcPlateTypeper distinct body, which is why rvt-rs's one type (the panel type's own ElementId) cannot match 5 types.Tagis theTagof 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 type
Tagof 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 noTagon 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.ci: main-protection.json holds strict checks off as the live ruleset …
docs: 0.17.0 is the published release, each channel checked from what…
fix(ifc): an IfcPlateType is written with no Tag, since Revit's is a …
fix(mcp): the server's type id for an IfcPlateType is documented and …
fix(ifc): an IfcPlateType is written with no Tag, since Revit's is a …
ci(re): the type objects scorer counts only a Tag rvt-rs leaves out a…
DrunkOnJava commentedon Nov 10, 2026
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
Tagof 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'sALD26 Before: right on 4 by the lowest id, wrong on the group of 60), so anIfcPlateTypeis now written with noTag, and the type's own ElementId stays itsType Idproperty and the MCP server'selement_id. #1648 makestype_objects_vs_ifc.pycount aTagthat 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, whoseTags agree, are unchanged. The convention itself, which plate's id theTagtakes, remains a thing no record gives; if a file ever stores it, it is a new issue.docs: the 1.0 criteria, export diagnostics, RELEASE, SECURITY, ifc-co…