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
W7: base quantities Revit computes from its joined geometry (wall areas and volumes, mullion surfaces) #1046
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:
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.
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).
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.
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.
#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).
Openings rvt-rs cuts with nothing filling them: fix(ifc): a wall that is a prism less an opening rvt-rs cuts with nothing filling it gets its side areas (#1046) #2045. A rectangular WallCutOpening that passes through its wall now counts. On the BIM4LCA housing and office (two projects, eight files), 745 more of those four values equal Revit's. different is unchanged, and nothing appears that Revit does not write (Measure 43682970477). Snowdon Architectural gains 19 values that no export can check, counted apart: Revit's local IFC4 export of it holds no base quantities.
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).
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.
Activity
docs(elements): RE-251 adds how a wall's Length differs from its cent…
docs(elements): RE-251's reproduce commands name the commit with both…
puzzbobb commentedon Oct 26, 2026
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.
docs: W7's joined-geometry note cites only the RE report already on m…
docs: W7 keeps the quantities Revit computes from its joined geometry (…
research(elements): a wall's record keeps none of Revit's wall areas …
research(tools): the wall length scorer takes the walls joined at a w…
research(elements): the wall length probe reads the walls each end's …
research(tools): the wall length scorer takes Measure's --list (#1046)…
research(elements): the wall length probe prints every wall record's …
research(tools): the wall length scorer places each wall's exported A…
174 remaining items
feat(ifc): a wall that is a prism less its openings gets its side are…
DrunkOnJava commentedon Nov 12, 2026
#1741 has landed: a wall whose saved mesh is a vertical prism less its openings now gets
GrossSideArea,NetSideArea,GrossVolumeandHeight, 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):GrossSideAreaequal, before to after1,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:
NetVolumealone, 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.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 branchresearch/1046-wall-body-shape(tools/re/wall_prism_after_openings.py).fix(elements): of an element framed in several partitions the exporte…
fix(elements): a wall, floor, ceiling or roof type edited since an ea…
fix(ifc): a wall's mesh quantities set aside each opening at its real…
probe(probes): the mullion Length probe classifies the mullions with …
probe(probes): the mullion Length probe prints each mullion's recorde…
probe(probes): read the mullion's own axes from its fields, which the…
docs(changelog): the turned-wall fragment gives what its Measure reac…
fix(ifc): a turned wall that is a prism less its openings gets its si…
docs(changelog): the unfilled-openings fragment gives what its Measur…
fix(ifc): a wall that is a prism less an opening rvt-rs cuts with not…
DrunkOnJava commentedon Nov 15, 2026
Three slices of the prism-less-openings rule, measured (2026-11-15).
GrossSideArea,NetSideArea,GrossVolumeandHeight, each equal to Revit's. No other export moves.WallCutOpeningthat passes through its wall now counts. On the BIM4LCA housing and office (two projects, eight files), 745 more of those four values equal Revit's.differentis unchanged, and nothing appears that Revit does not write (Measure 43682970477). Snowdon Architectural gains 19 values that no export can check, counted apart: Revit's local IFC4 export of it holds no base quantities.rac_basic2024 (Measure 43687654187). Whether Revit gives a profile-edited wall these values is not shown by the wall-opening evidence. The change is archived asrefs/archive/2026-11-15/cited/3b154f75e505.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).
DrunkOnJava commentedon Nov 15, 2026
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_ifconmain(f6146d05) for the four office and four housing files. It covered 3,829 walls that Revit's export gives aQto_WallBaseQuantities.What revit-ifc says. Read from
WallExporterandPropertyUtil.CreateWallBaseQuantitiesat the 24.2 add-in (e5caa9b81d; CLEANROOM.md source 5, cited, not copied):CreateWallBaseQuantities. It is called only for a wall "exported as wall with axis":TryToCreateAsExtrusiongave the body, or the body exporter gave one vertical extrusion of a single solid.Heightfrom the depth, andGrossSideArea,NetSideAreaandNetVolumefrom the wall's solids.GrossVolumeis the width times the gross side area.TryToCreateAsExtrusionisExporterIFCUtils.CanExportWallGeometryAsExtrusion, which is native code and cannot be read.Measured.
Height, both side areas, both volumes)Length,WidthandNetVolumeonlySweptSolidTessellationHeightis 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 wallCreateWallBaseQuantitieswas called for, or not.NetVolumealone as built.One wrong value. rvt-rs writes a
Heightthat Revit leaves out on 5 walls: 1391852 (concrete housing as built), and 1427007 and 1427008 (timber housing as built and at permit). The source isadd_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'sNetVolume, 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
Heightonly where the drawn volume equals thatNetVolume. It would also drop 59Heightvalues 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 onlyHeightrvt-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.chore(release): prepare v0.25.0 (#2067)