Skip to content

W7: base quantities Revit computes from its joined geometry (wall areas and volumes, mullion surfaces) #1046

Open

Description

@DrunkOnJava

Most of W7's remaining base quantities are ones Revit computes when it exports, from geometry already trimmed where elements join. The file stores none of them (RE-248, RE-251). On the BIM4LCA office as built that is about 14,000 of the ~20,000 still missing:

  • curtain mullions' NetSurfaceArea (10,003): the section's perimeter times the length plus the ends the mullion's Revit solid keeps after its joins (RE-248);
  • walls' Length where it is not the location line's (186), Height, GrossSideArea, NetSideArea, GrossVolume, NetVolume and GrossFootprintArea (about 3,800): the joined wall solid's, less openings for the net values (RE-251);
  • mullions' NetVolume on curved and edited curtain walls (2,208, RE-243).

The maintainer kept these in W7 and 1.0 (2026-10-26): they are reached by reproducing Revit's joins as geometry, which also makes the bodies themselves exact.

Order:

  1. Walls. Join trimming exists for wall runs (RE-54, RE-222, RE-223: 482 of 607 office walls end where Revit's do). Measure each joined wall body's length, side area and volume against Revit's quantities, close the join cases that differ, then subtract the openings for the net values.
  2. Mullion joins. Read which mullion is continuous at each grid intersection (the curtain grid's segments named by MullionFamRef.m_edgeTag, the type's join condition, per-mullion overrides), then count each mullion's free ends (RE-248 §2).
  3. Curved and edited curtain walls' mullions. Their cut solids (RE-243 §2).

Each step lands as a measured slice: a quantity is written only where it equals Revit's on every element measured, nothing Revit's export leaves out.

Activity

  1. added
    area:ifc
    type:feature
    on Oct 26, 2026
  2. puzzbobb commented on Oct 26, 2026

    @puzzbobb
    Contributor

    Two leads from my own testing on R2025 files, for RE-251 and the spaces probe. Neither is measured against the office yet.
    -1001101. Revit's public parameter list skips this code: it jumps from -1001102 to -1001009. In 145 edits across 137 of my files, it is always recorded together with WALL_USER_HEIGHT_PARAM (-1001105) and WALL_HEIGHT_TYPE (-1001103, Top Constraint). That suggests it is the wall's resolved height, stored with its top constraint. If so, the 83 walls where Height ≠ -1001101 may be walls whose height comes from a top level plus WALL_TOP_OFFSET (-1001109), or from being attached to a roof. That would fit JoinToRoofGStep being RE-251's best separator. Worth splitting the 83 by top constraint and top offset, and checking level-to-level height plus offsets against Revit's Height.
    A room's UnboundedHeight. One controlled edit placed it in the room's record (discriminator -63370) at payload offset 1172, where it changed from 8.0 ft to 2.2067 ft. The same edit separated it from LimitOffset (offset 68), which has the same value in every single-snapshot file. It is a candidate source for spaces' Height and volumes, but it comes from one edit and hasn't been checked against a second room or document.

  3. added
    priority:P1
    on Oct 26, 2026
  4. 174 remaining items

  5. DrunkOnJava commented on Nov 12, 2026

    @DrunkOnJava
    OwnerAuthor

    #1741 has landed: a wall whose saved mesh is a vertical prism less its openings now gets GrossSideArea, NetSideArea, GrossVolume and Height, where it has at least one opening rvt-rs cuts, every vertical face beyond a prism's four is a jamb of one, and its base is not attached.

    Measured on main (Measure 43115751418, unfiltered with the held-out pairs; rows and reads on #1636):

    Model Walls with GrossSideArea equal, before to after
    office as built 299 to 379 of 579
    office at permit 317 to 404 of 565
    timber office as built 309 to 387 of 594
    timber office at permit 302 to 382 of 570
    concrete housing as built 218 to 256 of 357
    concrete housing at permit 228 to 264 of 336
    timber housing as built 224 to 235 of 354
    timber housing at permit 220 to 230 of 342

    1,771 quantities more read equal over 17 files with the held-out pairs, none different, and none that Revit omits. The same rule writes 1,880 values on files no Revit export can check (17 sample saves, Core Interior, RE1 Architecture and Einhoven), counted apart in the pull request.

    What is still missing on these walls, and why each is left out:

    • Walls with more than four vertical faces and no opening. The rule stops here because of two concrete-housing walls (1968204 and 1972068) that Revit gives a NetVolume alone, while 36 plain prisms of the same kind do get the set. Base attachment, the end joins' face count and the side alignment type each fail to separate the two (a counter-example for each is above). Nothing read tells them apart yet.
    • Walls whose base is attached (26 and 27 on the office as built and at permit). Revit does give them the set; the rule refuses them because, among prisms less their openings, an attached base is exactly what took the set away (0 of 5). The two populations need to be told apart first.
    • Walls whose extra faces come from something other than a door's or a window's rectangle: a profile opening, a wall opening nothing fills, a face-hosted cut, a floor's void.
    • Walls turned off the model's axes, where a world box is not the opening's own extent.

    Still without GrossSideArea: 161 to 207 walls per office file and 72 to 119 per housing file. The body-shape scorer that produced the tables above stays on the branch research/1046-wall-body-shape (tools/re/wall_prism_after_openings.py).

  6. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    Three slices of the prism-less-openings rule, measured (2026-11-15).

    Still without the set: walls whose base is attached, walls with more than four vertical faces and no opening, and openings that are not rectangles (a face-hosted cut, a floor's void).

  7. DrunkOnJava commented on Nov 15, 2026

    @DrunkOnJava
    OwnerAuthor

    Which walls Revit gives the set at all: measured on the eight BIM4LCA files. Negative for the body kind, plus one finding.

    Measure 43703959027 ran wall_quantities_vs_ifc on main (f6146d05) for the four office and four housing files. It covered 3,829 walls that Revit's export gives a Qto_WallBaseQuantities.

    What revit-ifc says. Read from WallExporter and PropertyUtil.CreateWallBaseQuantities at the 24.2 add-in (e5caa9b81d; CLEANROOM.md source 5, cited, not copied):

    • The wall set is written by CreateWallBaseQuantities. It is called only for a wall "exported as wall with axis": TryToCreateAsExtrusion gave the body, or the body exporter gave one vertical extrusion of a single solid.
    • That function writes Height from the depth, and GrossSideArea, NetSideArea and NetVolume from the wall's solids. GrossVolume is the width times the gross side area.
    • Any other wall gets only what the generic quantity calculators give.
    • The decisive check in TryToCreateAsExtrusion is ExporterIFCUtils.CanExportWallGeometryAsExtrusion, which is native code and cannot be read.

    Measured.

    Revit's body full set (Height, both side areas, both volumes) Length, Width and NetVolume only
    SweptSolid 2,357 7
    Tessellation 1,340 125
    • Revit's Height is on every wall that has the full set and on none of the 132 others. So the split is the one revit-ifc describes: a wall CreateWallBaseQuantities was called for, or not.
    • The body kind does not decide it, and neither do openings. 642 tessellated walls with no opening get the full set: an IFC4 Reference View wall with openings is not the only tessellated case.
    • The same wall can fall either way between saves. Concrete housing wall 1391852 gets the full set at permit and NetVolume alone as built.

    One wrong value. rvt-rs writes a Height that Revit leaves out on 5 walls: 1391852 (concrete housing as built), and 1427007 and 1427008 (timber housing as built and at permit). The source is add_wall_height's uncut rule (RE-266). Their record names nothing joined to or cutting them, but Revit's body is not the record box there: Revit's NetVolume, which rvt-rs also writes, is below the drawn box's volume (36.836 against 39.940 ft³ for 1391852).

    I tested one guard: write the Height only where the drawn volume equals that NetVolume. It would also drop 59 Height values that are Revit's, so it is not a separator, and nothing ships. The 5 values stay as they are, counted here. They are the only Height rvt-rs writes on these files that Revit omits; it writes about 2,700 that Revit also writes.

    What this leaves for the walls still without the set (an attached base, more than four vertical faces with no opening, openings that are not rectangles): whether Revit's export holds the set at all turns on a native extrusion check. A rule that writes the set needs evidence per population that Revit extruded the wall, as #1741's prism-less-openings test is for its own population.

    Scratch analysis, not to land: the scorer is on main; the table comes from its per-wall lines.

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:P1type:feature

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions