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
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
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 IfcSlabTypeROOF 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.
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.
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.
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.
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.
Activity
fix(ifc)!: a Revit 2027 save is written without a PredefinedType on t…
fix(ifc): FENCE is not one of IFC4's railing types, so a railing hold…
docs: the railing PredefinedType rows as measured, 360 of 378 as Revi…
feat(ifc): a railing's PredefinedType is its own or its type's value (#…
DrunkOnJava commentedon Nov 11, 2026
Railings are done by #1765 (
e8a99d03): a railing takes its own or its type's "IFC Predefined Type" where that is one of IFC4'sIfcRailingTypeEnumenumerators. 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 writesNOTDEFINEDon (Measure 43089839851, unfiltered with the held-out pairs, rows registered on #1636 first). The change was one row inPREDEFINED_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
NOTDEFINEDRevit writes where an element has no value (roofs, proxies, the 18 railings), which the 2027 exporter leaves off (RE-427), and the doors'TRAPDOOR.feat(ifc): a wall's, ramp's, light fixture's and pipe segment's Prede…
DrunkOnJava commentedon Nov 11, 2026
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:
IfcWallIfcRampNOTDEFINEDonIfcLightFixtureIfcPipeSegmentOnly 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 writesTRAPDOORon.12 remaining items
fix(ifc): a roof that an "Export to IFC As" value writes as another e…
docs(ifc): RvtElementRecordGeometry.RedirectedRoof, what it marks and…
docs: an element whose partitions hold different export parameter val…
docs: the changelog says the 52 roofs whose body changes from a sketc…
fix(ifc): an element whose IFC export parameters differ between the p…
research(elements): a probe counts where a disagreeing export paramet…
DrunkOnJava commentedon Nov 14, 2026
Status after #1970, #2000, #2001 and #2002, with the census of what is left.
Landed since the last comment
29d99e29): a roof, stair, stair flight or proxy with no value isNOTDEFINEDon the releases measured (Measure 43545020975: proxies same 34 to 456, roofs 8 to 39, stairs 70 to 76, flights 58 to 62; differs 0 before and after).c9aa49c9): a railing with no value isNOTDEFINEDon 2024 to 2026; the 18 unset go to 0.e8f2eeff): a door takes its own or its type's value where that is anIfcDoorTypeEnumenumerator, so the 52TRAPDOORwall hatches of the BIM4LCA files are same.a90c9c8a): an element whose export parameters differ between a 2024 or later file's partitions takes its current copy's value: 40 permit walls, 42 spaces, 8 timber-office roofs and 1 wall read Revit's. The probe of research(elements): a probe counts where a disagreeing export parameter's owner appears and what each rule for its current copy answers (#1713) #2004 (32ed4e6a) found all 93 disagreeing pairs routed and none of them a cleared parameter.What is left on
mainat32ed4e6a(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:IfcRampNOTDEFINEDIfcGeographicElementNOTDEFINED(the other 20 of each file are same,USERDEFINED)IfcBuildingElementProxyUSERDEFINEDThe 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
USERDEFINEDcarries 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.
feat(ifc): a building element proxy takes its own or its type's prede…
feat(ifc): a ramp or a geographic element with no predefined type of …
DrunkOnJava commentedon Nov 14, 2026
Done on every model with a public Revit export, and wrong on none.
Census of
mainat70cc2ead(Measure 43596206950, unfiltered, 126 models): on the 42 models with a public Revit export, all 58,665 elements in both exports read the samePredefinedType.differs,unset in rvt-rsandNOTDEFINED where Revit writes noneare 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
differs0 andNOTDEFINED where Revit writes none0 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.
chore(release): prepare v0.24.0 (#2015)
docs(ifc): the NOTDEFINED_DEFAULTS ramp line says Revit's export of S…
docs(ifc): the gutter mapping says why every IfcFlowSegment may be ty…
docs(release): v0.24.0 is the latest release, with what each channel …