Skip to content

Opening Reference, sloped floor PitchAngle and door FireRating write values Revit leaves out on the BIM4LCA housing (RE-381, RE-384, RE-354) #1987

Open

Description

@DrunkOnJava

Three rules that hold on the BIM4LCA concrete office, where they were developed, write a value that Revit's export leaves out on the BIM4LCA housing, the second project. RE-402 section 3, census cells equal/different +written-that-Revit-omits, by file (concrete as built, concrete permit, timber as built, timber permit, terrain concrete, terrain timber):

Rule Housing Verdict
RE-381/382 opening Reference 35/0 +1, 20/0 +1, 19/0 +1, 19/0 +1, -, - does not hold on 4
RE-384 sloped floor PitchAngle 26/0, 32/0, 34/0 +1, 34/0, 1/0 +2, 1/0 +2 does not hold on 3
RE-354 door FireRating 17/0, 17/0 +1, 18/0, 18/0, -, - does not hold on 1

None reads "different": each is a value rvt-rs writes on an element where Revit writes none. The concrete office already counts the opening Reference this way (+3, +4, +2, +2, RE-402 section 3), so that rule fails on its first project too.

Done when each of the 10 elements is named (PSETS_MISSING, or the census's list of values Revit does not write), the reason Revit leaves its value out is found, and the rule is narrowed so it writes none of them, with no equal value lost on the office or the housing. Or, where Revit's exporters disagree on the value, it is left out by the standing rule.

Listed in "Measured on another project, and wrong there" on Rules that rest on one project (#1636, #1979).

Activity

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

    @DrunkOnJava
    OwnerAuthor

    Named, on main 8da5d029 (Measure 43554418103). psets_vs_ifc now lists, for each property PSETS_MISSING names, every object where rvt-rs writes the property and Revit does not, and whether Revit writes the object at all (branch research/1987-extra-values at 3ecfe1d4). Since RE-402, the terrain files' two PitchAngle values are gone. What is left:

    Property Where What it is
    Pset_OpeningElementCommon.Reference housing, all four large files the void of element 1732546 in wall 1427469, an IfcOpeningElement Revit's export does not write at all
    Pset_OpeningElementCommon.Reference office: 3 as built, 4 at permit likewise openings Revit does not write, in walls 1815838, 1892039 and 1494012 (as built), 1728013 (2), 2114950 and 3363820 (permit)
    Pset_SlabCommon.PitchAngle timber housing as built 0 on 2337931, Compound Ceiling:AK-4.EI60, a ceiling exported as IfcSlab: RE-238's level-slab rule, measured on floors, roofs and landings only. Draft #1992 leaves ceilings out.
    Pset_DoorCommon.FireRating concrete housing at permit EI30 on door type 1743417, a type object Revit writes without it

    So RE-381's Reference is not wrong where it is written: each of these values sits on an opening Revit does not write, and the fix is the opening, not the property. That is the reverse of #1165 (openings Revit writes and rvt-rs does not). Next: why Revit writes no opening for element 1732546 in wall 1427469, and the door type's FireRating.

  3. DrunkOnJava commented on Nov 14, 2026

    @DrunkOnJava
    OwnerAuthor

    On the door type's FireRating (1743417, EI30, concrete housing at permit): the export's diagnostics for that file (43554519222) carry no "type text parameter(s) ... are left" warning, so the type's saved copies of "Fire Rating" agree. The value is what the file holds, and a stale copy (RE-431, RE-446) is not the cause. Revit's export writes the type object 1743417 with Pset_DoorCommon and no FireRating, on this file only: as built and on the timber files RE-354's door FireRating reads equal. Next: what Revit writes on that type's doors (their own FireRating and the parameter it comes from), which needs this file's two exports side by side.

  4. DrunkOnJava commented on Nov 14, 2026

    @DrunkOnJava
    OwnerAuthor

    Door type 1743417's FireRating: Revit writes it on the type in the two timber housing files and leaves it out in the concrete housing at permit. Nothing either export holds tells the files apart.

    A scorer on research/1987-extra-values (tools/re/door_type_fire_rating_vs_ifc.py, at 8c2087e6) lists each door or window type whose Pset_DoorCommon.FireRating / Pset_WindowCommon.FireRating rvt-rs writes. It sets every fire property of both exports beside each other, on the type and on each of its doors. Measure 43560756545, BIM4LCA housing and offices:

    file type 1743417 O-2.10+4x21, Revit rvt-rs its one door 1507966, Revit rvt-rs
    housing concrete, permit Pset_DoorCommon with no FireRating EI30 EI30 EI30
    housing timber, as built EI30 EI30 EI30 EI30
    housing timber, permit EI30 EI30 EI30 EI30
    housing concrete, as built no type FireRating on either side
    • The type's name, value and door are the same in the three files that list it, and so are the door's own values (FireRating EI30, FireExit true). Revit writes the type's Pset_DoorCommon in all three.
    • On the offices, every type whose FireRating rvt-rs writes is written by Revit with the same value: 6 types as built, 5 in the timber office. That includes O-1.12x21, whose doors carry EI60 against the type's EI30.
    • No "type text parameter(s) ... are left" warning on any of these files: rvt-rs reads one value from the type.

    So it is the one extra FireRating left on the census, and it is not a reading error: the file holds EI30 on the type, and Revit's export of a sibling project writes the same type with it.

    The concrete as-built file's empty row is not read yet. It is either rvt-rs writing no FireRating on that type there, or the type being absent from one export.

    Next: what the concrete files hold on that type that the timber files do not, read by a probe of the type's parameters in all four files. Until a difference is found, the value stays counted under "values Revit does not write" and nothing is narrowed.

  5. DrunkOnJava commented on Nov 14, 2026

    @DrunkOnJava
    OwnerAuthor

    Door type 1743417: what the four housing files hold. probe_re207_element_parameters on main (Measure 43587566137) prints door 1507966 with its own parameters and its type's, in all four large housing files.

    • Every type-level parameter of 1507966 is the same in all four files, Fire Rating included. So is every instance parameter but one.
    • That one is a shared instance parameter named Pset_DoorCommon.IsExternal (id 1350278), which the two timber files hold on the door and the two concrete files do not.

    Revit's export writes the type's FireRating in both timber files and leaves it out in the concrete file at permit. So the one difference in the saved parameters lines up with the export's choice, but it rests on two pairs of states of one building, and nothing ties a door's IsExternal parameter to its type's FireRating. No rule is written on that.

    A second question on our side: rvt-rs writes the type's FireRating in the concrete file at permit and none in the concrete file as built, from type parameters that are the same. The kept exports of the two concrete files (run 43588600114) should show which path writes the type object in each.

  6. DrunkOnJava commented on Nov 14, 2026

    @DrunkOnJava
    OwnerAuthor

    Why rvt-rs writes the type's FireRating at permit and not as built (kept exports, run 43588600114): the door type object 1743417 carries Other and Identity Data in both concrete files, and Pset_DoorCommon FireRating EI30 only at permit. Neither file's diagnostics carries the RE-354 "type text parameter(s) ... are left out" warning, so no copies disagree. The type's FireRating comes from the byte reader of family type table entries (partition_type_parameters, RE-354), which finds an entry for this type at permit and none as built, where the native parameter read (native_element_parameters, the probe above) finds the same Fire Rating in both.

    So as built, rvt-rs matches Revit's export only because its table reader misses the entry, not because it knows to leave the value out. At permit the reader finds it, and Revit's export leaves it out. What decides Revit's choice is still not found, and the value stays counted under values Revit does not write.

  7. DrunkOnJava commented on Nov 14, 2026

    @DrunkOnJava
    OwnerAuthor

    The openings rvt-rs writes and Revit's export does not: how Revit draws their hosts. A scorer on research/1987-extra-values (tools/re/extra_opening_hosts_vs_ifc.py, at ce948168) lists each unfilled opening rvt-rs writes that Revit's export lacks, with Revit's host body, the host's openings in Revit's export and the class Revit gives the cutter. It also splits the openings both write by host body and cutter class. Measure 43589175961 and 43589555232, main 32ed4e6a:

    file extra (cutter in host) Revit's host body host's openings in Revit's export cutter in Revit's export
    housing concrete as built 1732546 in 1427469 Tessellation 0 none
    office as built 1815871 in 1815838 Tessellation 0 IfcCurtainWall
    office as built 1892067 in 1892039 Tessellation 0 IfcCurtainWall
    office as built 3388647 in 1494012 Tessellation 0 IfcFireSuppressionTerminal
    office permit 1728679 in 1728013 Tessellation 0 IfcDoor
    office permit 2793737 in 2114950 Tessellation 3 none
    office permit 3387194 in 3363820 Tessellation 1 IfcFireSuppressionTerminal
    office permit 3390319 in 1728013 Tessellation 0 IfcFireSuppressionTerminal
    timber office, both states 1832410 in 1727582 Tessellation 1 IfcDoor
    timber office, both states 3673827 in 1728013 Tessellation 0 IfcFireSuppressionTerminal

    Every host is a tessellated body in Revit's export. That doesn't decide it, though: of the openings both write, on tessellated hosts, Revit writes 39, 38 and 39 cut by a cabinet (office as built, permit, timber), 13, 6 and 7 by a curtain wall, 13, 21 and 1 by a door, and 25, 19 and 14 by no element it writes. So no host body and cutter class pairing separates the extras from the openings Revit writes. Six of the extras are in a host where Revit's export writes no opening at all, but that is the result, not something the file says.

    No rule is written. These stay counted as the opening Reference values Revit does not write, as before. A new signal would be needed to go further: the cutter's or host's native record, or Revit's tessellated host checked for whether the hole is cut into its mesh.

  8. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    Next signal, rows registered before the run is read: is the hole cut into Revit's tessellated host? A scorer on research/1987-hole-cut (tools/re/opening_holes_vs_ifc.py, 6fb94307; Measure 43691906949, the BIM4LCA office and housing on main 5f442efc) takes, for each unfilled opening rvt-rs writes, the grid points inside both the opening's body and rvt-rs's host body with no opening subtracted: the material the opening removes. It then gives the share of those points inside Revit's body of the same host, also with no opening subtracted. A share near 0 means Revit drew the hole into its body, and near 1 means it did not.

    A dry run on Snowdon Towers (local, against Revit's own IFC4 export) shows the measure alone does not separate. Of the openings both exports write on tessellated hosts, 10 read cut, 6 part and 6 not scored. Of the 3 extras, the one scored reads cut (0.000).

    Rows:

    1. Known answer. Of the openings both exports write on a tessellated host, at least 90% of those scored read below 0.5 on each file. Otherwise the measure is not reading the hole, and nothing below is read.
    2. Separates. At least 8 of the 10 extras listed above score above 0.95 (the hole is not in Revit's body). Then Revit's export leaves out the openings it did not cut into its body, and the next step is a record-side signal for a cut that does not happen: the host's saved mesh, read the same way.
    3. Does not separate. The extras score below 0.5 as the both-written openings do. Then Revit cut those holes and left the opening out for another reason, and that is recorded as a negative for this signal.
  9. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    The hole is cut: row 3 holds, so this signal does not separate (Measure 43691906949, opening_holes_vs_ifc at 6fb94307, archived at refs/archive/2026-11-15/cited/6fb943077fe4).

    • Row 1 (known answer) holds. Of the openings both exports write on a tessellated host, every one scored reads below 0.5 on all eight files: 76 of 77 cut and 1 part on the office as built, and 17 of 18 cut and 1 part on the concrete housing.
    • Row 2 does not hold. Row 3 does. 9 of the 10 extras can be scored, and each of the 9 reads 0.000: 1732546 in all four housing files, 1815871, 1892067, 3388647, 2793737, 3387194, 3390319 and 3673827. Revit drew each hole into its own body of the host and still wrote no IfcOpeningElement for it. 1728679 and 1832410 (both cut by a door) have no points inside both rvt-rs's opening and its host, so they are not scored.

    What revit-ifc says about which openings are written (CLEANROOM.md source 5, read and cited only, at 7fe314fd):

    • OpeningUtil.AddOpeningsToElement writes the openings ExporterIFCUtils.GetOpeningData returns for the host. That call is native and cannot be read.
    • Beyond it, an opening is left out only for:
      • a WallSweep cutter whose category is not exported;
      • a door or window hosted by the wall, whose opening is left to its own export (DoorWindowDelayedOpeningCreator);
      • an opening solid with no body;
      • an extrusion with no loops or no plane.
    • One reading of WallExporter: a wall that is neither an extrusion along its axis nor a vertical extrusion of its body is given openings only if it is an in-place wall. That would predict no opening on any basic wall Revit draws tessellated. It fails on Snowdon Towers, against Revit's own IFC4 export (local, counts only), with tools/re/opening_host_kinds_vs_ifc.py (944fc015, archived). Revit's export writes 20 unfilled openings on basic walls it draws as a Tessellation, and its 3 extras are on such walls too. That reading does not separate them.

    So which unfilled openings Revit's export writes is decided in native code. Neither the host's body, nor the cutter's class, nor whether the hole is cut tells the 10 apart from the openings it writes. The opening Reference values on them stay counted as values Revit does not write, and no rule is written. Two further signals would be: the cutter's native record (what it is in the file and how it names its host), and whether GetOpeningData's result depends on the cut's own record, the host's m_cutList or similar, read from the bytes.

  10. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    Correction to the two comments above: Snowdon's 3 "extras" are not extras. rvt-rs's 1993286, 1993355 and 1993375 in wall 698364 are the same openings Revit's export writes as 1993278, 1993305 and 1993365. Each pair's box is equal to 0.001 ft (local, against Revit's own IFC4 export).

    The Tags differ because both are lines of the wall's edited elevation profile (CurveElem records of its VarSketch 1993272; probe probe_1987_cut_ids at 69a83c79, Measure 43693331497), and each export names another line of the pocket's stretch. That is RE-380's known gap: Revit names the stretch's first line on 12 of 15 pockets and its last on these 3.

    So this issue's openings Revit does not write are the BIM4LCA files' 10, and the Snowdon dry-run row of the hole check above is about these 3 paired openings, not extras. The rest of the hole-check result stands: all 9 of the BIM4LCA extras that could be scored are cut into Revit's body.

  11. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    RE-380's Tag question, one more signal ruled out: the direction a sketch line is drawn in. RE-380 checked the polygon's winding, the extrusion direction, the profile axis and the sketch list's order, but not the drawn direction of each CurveElem's GLine (origin + direction × each end parameter). On wall 698364 the line Revit names is the one whose drawn end is the stretch's end, so that was tested on every pocket.

    Probe probe_380_sketch_line_directions (35c3ccaf, archived at refs/archive/2026-11-15/cited/35c3ccafa3dd; Measure 43696351482), with each sketch's loop, convex hull and pockets rebuilt locally. Snowdon is read against Revit's own IFC4 export, local, counts only. Core Interior and the terrain office are read against RE-380's Tags 55859 and 1389018.

    rule for the Tag Snowdon, 13 pockets Core Interior 55840 terrain 1387731
    first line of the counter-clockwise stretch 9 yes yes
    last line 4 no no
    the end line whose drawn end is the stretch's end 7 alone, 2 tied yes yes
    lowest id 8 no no
    highest id 4 yes yes

    The drawn direction does not decide it. On wall 698364 the lines run with the walk and Revit names the last line. On sketch 1992769 every line runs against the walk, and Revit names the last line there too. On sketches 1271797 and 2270836 the lines run with the walk, and Revit names the first.

    So what makes Revit name the other end on 698364 and 1992769 is still not read. These openings pair by box, not by Tag. Nothing is written, and the RE-380 rule stays as it is.

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:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions