Skip to content

PredefinedType: Revit's export writes one that rvt-rs leaves none or NOTDEFINED on, on walls, railings, ramps, roofs, proxies, light fixtures, pipe segments and stairs (42 models with a Revit export) #1713

Closed

Description

@DrunkOnJava

Found while generalising tools/re/predefined_types_vs_ifc.py for #1692: it read eight classes and now reads every class that declares a PredefinedType (paired by Tag), every element type class and every space. Measure 43011481868 (the scorer from branch research/1692-predefined-types, code main at 5cf94975, unfiltered) on the 42 models that have a Revit IFC4 export, elements both files hold:

class in both same differs rvt-rs writes none or NOTDEFINED where Revit writes a value what Revit writes
IfcWall 4,359 517 0 3,842 PARTITIONING, SOLIDWALL, PLUMBINGWALL, SHEAR, PARAPET, POLYGONAL (the BIM4LCA files); NOTDEFINED on the rest, equal
IfcRailing 378 0 0 378 GUARDRAIL, HANDRAIL, NOTDEFINED
IfcRoof 43 18 0 25 NOTDEFINED (the roof of each of 21 R2025 models)
IfcBuildingElementProxy 116 34 0 82 NOTDEFINED, USERDEFINED
IfcRamp 38 0 0 38 NOTDEFINED, STRAIGHT_RUN_RAMP
IfcLightFixture 174 0 0 174 SECURITYLIGHTING
IfcPipeSegment 48 0 0 48 GUTTER
IfcSpace (family instances) 837 795 0 42
IfcStair, IfcStairFlight 223, 183 217, 179 0 6, 4 NOTDEFINED
IfcDoor 1,508 1,456 52 0 TRAPDOOR where rvt-rs writes DOOR

Every other class reads equal on every element (columns 1,696, beams 300, coverings 705, curtain walls 740, members 38,232, openings 3,184, plates 1,379, slabs 472, windows 1,346, the sanitary, waste, electrical and fire suppression terminals, shading devices ...). The held-out pairs (counts only, Measure 43010340133) show the same pattern on 2024 to 2026: 40 to 48 proxies, 2 railings and 1 roof NOTDEFINED in Revit's export and none in rvt-rs's, a wall type STANDARD in Revit's export (NOTDEFINED in rvt-rs's) on every pair of 2022 to 2026, a roof typed by an IfcSlabType ROOF from 2025, and all 4 spaces of every pair NOTDEFINED in Revit's export where rvt-rs writes SPACE.

Where the value comes from is not read yet for these classes: RE-45 reads "IFC Predefined Type" from an element or its type for the categories it was measured on, and RE-419 gave furniture NOTDEFINED where the element has none. The walls, railings, ramps, light fixtures and pipe segments of the BIM4LCA files carry a value Revit writes and the reader does not find; the proxies, roofs and railings of the hemanth and R2025 models carry none, and Revit writes NOTDEFINED.

Done when: for each class above the scorer reads unset in rvt-rs 0 and differs 0 on every model with a Revit export, by a rule that is never wrong on a file with one (holdout=true read first), or the report names the elements it cannot tell and why. Probably several changes, one per source of the value (the type parameter of a system family, the NOTDEFINED default of RE-419 extended, a family's own value).

Related: #1692 (Revit 2027 writes none on ten classes), RE-419, RE-417, #1695, #1636.

Activity

  1. added
    area:ifc
    priority:P2
    type:feature
    on Nov 11, 2026
  2. DrunkOnJava commented on Nov 11, 2026

    @DrunkOnJava
    OwnerAuthor

    Railings are done by #1765 (e8a99d03): a railing takes its own or its type's "IFC Predefined Type" where that is one of IFC4's IfcRailingTypeEnum enumerators. On the 42 models with a Revit export the railing row reads same 360 of 378 (from 0), differs 0, and 18 unset, 8 of them the BIM4LCA office railings Revit writes NOTDEFINED on (Measure 43089839851, unfiltered with the held-out pairs, rows registered on #1636 first). The change was one row in PREDEFINED_TYPE_ENUMERATORS: the reader already finds the value, and the class was not listed.

    That makes the same row the first thing to try for the walls, ramps, light fixtures and pipe segments of the table above, whose BIM4LCA elements carry a value Revit writes; each is measured on its own row before it lands. Still open after that: the NOTDEFINED Revit writes where an element has no value (roofs, proxies, the 18 railings), which the 2027 exporter leaves off (RE-427), and the doors' TRAPDOOR.

  3. DrunkOnJava commented on Nov 11, 2026

    @DrunkOnJava
    OwnerAuthor

    Walls, ramps, light fixtures and pipe segments are done by #1787 (ed57e095): each takes its own or its type's "IFC Predefined Type" where that is one of IFC4's enumerators for its class, the same one-row change #1765 made for railings.

    Measure 43100947234, unfiltered with the held-out pairs, rows registered on #1636 first; against the table above:

    Class Same as Revit Before Differs Left unset
    IfcWall 3,821 on the 12 BIM4LCA files 19 0 40 walls on the three permit files (19, 13 and 8)
    IfcRamp 5 of 5 on each office file, 6 of 6 on each office terrain file 0 0 a ramp Revit writes NOTDEFINED on
    IfcLightFixture 43, 43, 44 and 44 on the four office files 0 0 none
    IfcPipeSegment 12 of 12 on each of the four office files 0 0 none

    Only the 12 BIM4LCA exports move; every Revit 2025 model, held-out pair and sample save is byte-identical. The type objects of the four classes take the values too.

    Still open from the table: the 40 permit-file walls (not yet read), roofs (25 where Revit writes NOTDEFINED), proxies (82), family-instance spaces (42), stairs and stair flights (6 and 4), and the 52 doors Revit writes TRAPDOOR on.

  4. 12 remaining items

  5. DrunkOnJava commented on Nov 14, 2026

    @DrunkOnJava
    OwnerAuthor

    Status after #1970, #2000, #2001 and #2002, with the census of what is left.

    Landed since the last comment

    What is left on main at 32ed4e6a (Measure 43583771747, the 42 models with a public Revit export). "Differs" and "NOTDEFINED where Revit writes none" are 0 in every class. Three rows keep unset values:

    Class Where Unset Revit writes
    IfcRamp the six BIM4LCA housing files, 1 each 6 NOTDEFINED
    IfcGeographicElement the two housing terrain files, 3 each 6 NOTDEFINED (the other 20 of each file are same, USERDEFINED)
    IfcBuildingElementProxy 1 in each of the twelve BIM4LCA files (six housing, six office) 12 USERDEFINED

    The first two rows are draft #2008 (the same default as #2000, 2024 only: no other measured file and no held-out pair holds either in both exports). The proxy row is not a default: an element Revit gives USERDEFINED carries a value rvt-rs does not take as an enumerator, and a probe of its export parameters (Measure 43588996635) reads what it holds before any rule is written.

    On the held-out pairs (counts only) the unset rows left are 4 roofs, 1 stair, 1 stair flight, 12 furniture and 2 railings, all on releases outside the range of each default.

  6. DrunkOnJava commented on Nov 14, 2026

    @DrunkOnJava
    OwnerAuthor

    Done on every model with a public Revit export, and wrong on none.

    Census of main at 70cc2ead (Measure 43596206950, unfiltered, 126 models): on the 42 models with a public Revit export, all 58,665 elements in both exports read the same PredefinedType. differs, unset in rvt-rs and NOTDEFINED where Revit writes none are 0 in every class of every model. The three rows left at my last comment (6 ramps, 6 geographic elements, 12 proxies) went to 0 with #2008 and #2009; the earlier slices were #1765, #1787, #1970, #2000, #2001 and #2002.

    What stays unset is on the held-out pairs only (counts only): 4 of 12 roofs, 1 of 5 stairs, 1 of 5 stair flights, 12 of 60 furniture and 2 of 10 railings, with differs 0 and NOTDEFINED where Revit writes none 0 on all 18 pairs. They are pairs of Revit 2023 and earlier, a range no default covers (a 2022 file's export parameters are not read; RE-353), and 2015 to 2023 stay experimental under the 1.0 scope. Those are the elements this issue cannot tell and why; nothing is written wrong for them.

    Closing as completed.

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