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
Wall bodies thicker or thinner than their type's layers: 165 Snowdon walls drawn whole (RE-53) #358
RE-53 draws a wall in its layers only where the layers add up to its body's thickness. On Snowdon Towers Architectural (Revit 2024, local only), 165 of the 1,054 walls whose layers are read fail that check and are drawn whole. Where Revit's own IFC4 body is as thick as the type's layers, the layers are right and rvt-rs's body is wrong.
Measured with examples/probe_re53_wall_layers.rs --verbose (rvt-rs body across the exterior normal against the type's layer sum), and with IfcOpenShell 0.8.5 on Revit's IFC4 export (body extent across the wall's own placement Y):
walls
example
rvt-rs body
type layers
Revit's IFC body
18
2083876 Soffit - Beam Wrap (Both Sides)
0.771 ft
0.875 ft
0.427 ft
13
2085017 Soffit - Beam Wrap 9 1/4" (One Side)
0.667 ft
0.771 ft
0.593 ft
9
1456456 Retaining - Split Face CMU
0.802 ft
0.635 ft
0.635 ft
7
2060104 Generic - 4"
7.119 ft
0.333 ft
tessellated, 22.2 ft
3 each
2140499/500/501 Exterior - 12 5/8" Rainscreen
2.28 to 2.34 ft
1.052 ft
1.052 ft
The rest are smaller groups of profiled walls, parapets and soffit wraps (e.g. 1054630 Solar Wall (Parapet), 2.10 ft body against 1.55 ft of layers).
Two cases to separate:
Our body is wrong where Revit's matches the layers: 1456456 (the CMU retaining walls) and the rainscreen walls. The body is the record box or a plan outline that includes something besides the wall's own thickness. Finding what the extra extent is (a sweep, a join, an attached element) and building the body from the location line and the type's thickness would put these in layers too.
Revit's body is cut (soffit wraps, where Revit trims the stud layer around a beam; tessellated walls with edited profiles). These stay whole until cuts are read.
Cause of the largest group: a wall body's thickness is its element record box's extent across its thin axis (element_record_wall_joins, RE-26), and only axis-parallel walls are resolved. A wall at an angle keeps its whole axis-aligned box, so its 'thickness' across its exterior normal is the box's diagonal extent (2060104, 7.1 ft for a 4 in wall). A wall with something wider than itself inside its box (the CMU retaining walls) reads that width instead.
RE-53 now gives every Revit 2024 wall its location line (RE-49's bounded line), its location-line setting (0 to 5), its flip and its type's layers. That is enough to build the body directly: the location curve, offset by the setting and the layer widths, extruded to the record box's height, with the RE-26 trims applied along it. It would fix angled walls, which are drawn as boxes today, independently of the layer drawing.
Measured the location line against Revit's IFC4 bodies on Snowdon (scratch probe, IfcOpenShell 0.8.5), towards building wall bodies from it:
Across the wall. RE-49's bounded line in a wall's data is the wall's centreline whatever its location-line setting. Revit's body spans exactly ±T/2 of it, T being the type's layer sum, on 964 of 1,054 walls: 268 with setting 0, 87 with 1, 362 with 2 and 247 with 3. The rest are profiled or cut bodies. Most of them carry 2 in the word after the setting, where every exact wall carries 1.
Along the wall. The line runs joint to joint.
A free end stops at the line end: 126 of 214 faces of angled walls.
At a joint with one other wall, Revit either mitres the two (58 of 156 faces fit the bisector) or butt-joins them, running one wall to the far face of the other. For example, 619623 runs 1.0 ft past the joint, half its 2 ft neighbour.
Plan: bodies centred on the line at the type's thickness (fixes the thickness and position of all 964 walls, including the axis-parallel ones read from the box today), with angled walls' ends mitred or butt-joined by their joints. Angled walls are drawn today as their whole axis-aligned box.
Correction to the join figures above. Re-measured on the 102 angled walls with each end face intersected against the other wall's two faces and the bisector:
at a joint of two walls, 115 of 156 end faces stop on one of the other wall's faces (a butt join: running on to its far face or stopping at its near face);
4 stop at the joint and 37 fit none of these;
none fits a mitre. The earlier 58 came from a sign-confused bisector formula.
Also, 126 of 214 faces at ends no other line shares stop at the line's end; most of the rest end on the middle of another wall, a T-junction the line ends do not show. RE-54 (report RE-54-wall-bodies.md) builds the bodies across the wall and leaves the joins to this issue.
I measured wall joins on Snowdon Towers after RE-54 to RE-63 (IfcOpenShell 0.8.5, Revit's IFC4 bodies against RE-54's centrelines). Each wall end is measured on both side faces, in feet past the centreline end, relative to half the thickness of the wall it meets.
Baseline (tools/re/wall_bodies_vs_ifc.py): ends within 0.001 ft on 338 of 976 axis-parallel walls and 13 of 102 angled walls.
Perpendicular L-joints (the ends of two centrelines meet):
end shape
ends
square, runs to the other wall's far face (++)
110
square, stops at its near face (--)
87
one side clean (+ or -), the other side irregular
617
mitre (+-)
9
The irregular side is Revit's layer-by-layer join cleanup, where finish layers wrap. Rectangular bands can't reproduce it.
Angled L-joints (end face direction against the bisector and the other wall):
end face
ends
butt, along the other wall
18
mitre
7
square
1
none of these
20
near-collinear continuation
28
Which wall runs through a butt join. Of 383 pairs with one wall through and one stopped:
the lower ElementId runs through on 293 and the higher on 90 (76%), too weak to use;
thickness does not decide it (67 of 81 clean pairs have equal thickness);
both walls name each other in their record's reference list on all 383. Those lists are ascending, so slot order says no more than id order.
The direction is not in the element record. The next carrier to look at is the walls' own element data, or separate join records.
Walls with only clean ends (butt, free or T): 197 are exact today and 239 are not. That is the gain once the direction is known.
Where two walls' centrelines end at one point, the wall that runs through names the other there and is not named back. The one named stops.
check
agree
undecided
disagree
Revit's IFC4 bodies on Snowdon, perpendicular L joints with clean ends
194
2
0
the same, angled L joints
18
0
0
record box, axis-parallel L joints, Snowdon, Core Interior, RE1, MIT house 2024 and 2025
1,110
47
2
Two things change the picture from the last comment:
The record box already carries the direction on axis-parallel walls. The through wall's box reaches half the other's thickness past the joint, and the stopped wall's ends at it. RE-26's trims read that, which is why most axis-parallel butt joins were already right. The "239 walls to gain" estimate assumed the direction was missing, and it wasn't.
Layers decide whether an end is clean. Of the perpendicular ends the lists decide, 158 of 158 are clean between single-layer walls, against 36 of 667 where either wall has several layers. Revit cleans those layer by layer, and finishes wrap the corner. Applying the rule to them made 14 walls worse, so the exporter uses it only between single-layer walls.
End to end on Snowdon: 9 walls better, none worse. Axis-parallel walls with both of Revit's ends go from 338 to 346. Core Interior, RE1 and the MIT house are unchanged.
The tag is 0x0b9f7d on Snowdon, Core Interior and RE1, and 0x039f3d on the MIT house. It's in no schema class, no declared ElementId and not tied to a build, so the reader takes the one tag whose frames name only walls.
What stays open here:
Layered L joints: 375 ends off. Each layer needs its own end, and the lists say which wall's core runs through.
Free ends and T junctions: 482 ends off.
Angled joins other than square: the rule holds on all 18 clean ends, but the end is slanted, which a rectangle can't draw.
RE-73 (#394, merged): T joints. A wall whose centreline ends part way along another wall's now stops against it layer by layer, by Revit's layer priorities. Counted from the face it meets, each layer passes the other wall's layers of a larger function number and stops at the first of an equal or smaller one; a single-layer wall stops at the face.
Snowdon Towers
before
after
axis-parallel walls with both of Revit's ends
516 of 976
675
GLB layer ends matching Revit's body
3,925 of 5,634
4,290
T ends right in every layer
280 of 313 measured
Core Interior's 202 T ends were already right through RE-26's trims. They now name the wall they stop against.
16 Snowdon T ends are clean stops at the face that nothing read predicts. The report lists what was checked: wall types, the record box, RE-26's trims, the join lists, heights and layer materials.
RE1 is not evidence against the rule. Its export (IFC2X3 Coordination View 2.0, Revit 2026.2) writes each wall as one IfcRectangleProfileDef extrusion, so it cannot show a layered end; a docs PR corrects the RE-71 and RE-73 wording to say so.
Report: reports/element-framing/RE-73-wall-tee-joins.md. Still open here: walls drawn whole (thicker or thinner than their type's layers), angled joins other than right angles, and the clean butts and stops.
Recount on main: 60 of Snowdon's walls are drawn whole, down from 165. The RE-53 census (probe_358_walls_drawn_whole, a copy of probe_re53_wall_layers that prints every wall with its body and thickness sources, on research/358-walls-drawn-whole at 977d7375, not to land) ran in Measure 43669117367 on afbaabb5. It finds 928 walls drawn in layers and 60 whose layers do not add up to the body. Beside them, Revit's own IFC4 body thickness across each wall's placement Y was read locally from Revit's export (IfcOpenShell 0.9.0.post1). On a wall whose body is not a slab of constant thickness, that extent is not a thickness.
walls
BodySource
type
rvt-rs body
layers
Revit's body extent
16
record box, join-trimmed
Soffit - Beam Wrap 10 1/2" (Two Sides)
0.771
0.875
0.167 (e.g. 2083938)
13
record box, join-trimmed
Soffit - Beam Wrap 9 1/4" (One Side)
0.667
0.771
0.593 (e.g. 2085017)
2
record box, join-trimmed
Soffit - Beam Wrap (Both Sides)
0.771
0.875
0.427 (e.g. 2083876)
1
record box, join-trimmed
Soffit - Beam Wrap Large (Both Sides)
1.438
1.542
0.865 (2144285)
15
partition_wall_arc
Planter Wall - Steel Plate 1/2"
0.064 to 2.144
0.042
0.26 to 7.68
9
partition_wall_arc
Generic - 4"
e.g. 2.434
0.333
e.g. 2.252
2
record box, join-trimmed
Exterior - 12 5/8" Rainscreen w Insulation on Metal Stud
6.881, 5.054
1.052
1.052, 1.052 (1055521, 1055871)
2
record box, join-trimmed
Chase - GWB & Metal Stud 4 1/4"
1.375
0.354
1.000 (1483746), 1.375 (1618833)
What this says:
The 24 curved walls are drawn whole because the census measures a straight body across one normal, and a ring sector has none. Drawing an arc wall in layers is a feature this issue has not asked for yet. Their numbers above are not a thickness mismatch.
The 32 soffit beam wraps have a body exactly 0.104 ft (1 1/4") thinner than their type's layers, on all four types. That points at one layer the record box leaves out. Revit's body extent is smaller still and differs by wall, because these bodies wrap a beam and are not a slab across their placement Y. The next read is which layer the 0.104 ft is.
The 2 rainscreen walls are this issue's "our body is wrong" case: Revit's body is the layers' 1.052 ft, and rvt-rs's record box is 5 to 7 ft across.
The 2 chase walls differ from each other: one where Revit's body equals rvt-rs's (1618833), one where it is neither (1483746).
Activity
DrunkOnJava commentedon Sep 24, 2026
Cause of the largest group: a wall body's thickness is its element record box's extent across its thin axis (element_record_wall_joins, RE-26), and only axis-parallel walls are resolved. A wall at an angle keeps its whole axis-aligned box, so its 'thickness' across its exterior normal is the box's diagonal extent (2060104, 7.1 ft for a 4 in wall). A wall with something wider than itself inside its box (the CMU retaining walls) reads that width instead.
RE-53 now gives every Revit 2024 wall its location line (RE-49's bounded line), its location-line setting (0 to 5), its flip and its type's layers. That is enough to build the body directly: the location curve, offset by the setting and the layer widths, extruded to the record box's height, with the RE-26 trims applied along it. It would fix angled walls, which are drawn as boxes today, independently of the layer drawing.
DrunkOnJava commentedon Sep 24, 2026
Measured the location line against Revit's IFC4 bodies on Snowdon (scratch probe, IfcOpenShell 0.8.5), towards building wall bodies from it:
Plan: bodies centred on the line at the type's thickness (fixes the thickness and position of all 964 walls, including the axis-parallel ones read from the box today), with angled walls' ends mitred or butt-joined by their joints. Angled walls are drawn today as their whole axis-aligned box.
feat(elements): draw walls as their layers, each in its material's co…
DrunkOnJava commentedon Sep 24, 2026
Correction to the join figures above. Re-measured on the 102 angled walls with each end face intersected against the other wall's two faces and the bisector:
Also, 126 of 214 faces at ends no other line shares stop at the line's end; most of the rest end on the middle of another wall, a T-junction the line ends do not show. RE-54 (report RE-54-wall-bodies.md) builds the bodies across the wall and leaves the joins to this issue.
feat(elements): build 2024 walls from their centreline at their type'…
feat(elements): read Revit 2025 walls' location lines, so they get ce…
feat(ifc): write layered walls, floors, roofs and ceilings as IfcMate…
DrunkOnJava commentedon Sep 24, 2026
I measured wall joins on Snowdon Towers after RE-54 to RE-63 (IfcOpenShell 0.8.5, Revit's IFC4 bodies against RE-54's centrelines). Each wall end is measured on both side faces, in feet past the centreline end, relative to half the thickness of the wall it meets.
Baseline (
tools/re/wall_bodies_vs_ifc.py): ends within 0.001 ft on 338 of 976 axis-parallel walls and 13 of 102 angled walls.Perpendicular L-joints (the ends of two centrelines meet):
++)--)+or-), the other side irregular+-)The irregular side is Revit's layer-by-layer join cleanup, where finish layers wrap. Rectangular bands can't reproduce it.
Angled L-joints (end face direction against the bisector and the other wall):
Which wall runs through a butt join. Of 383 pairs with one wall through and one stopped:
The direction is not in the element record. The next carrier to look at is the walls' own element data, or separate join records.
Walls with only clean ends (butt, free or T): 197 are exact today and 239 are not. That is the gain once the direction is known.
DrunkOnJava commentedon Sep 24, 2026
Found the carrier for which wall runs through a butt join (RE-70, #386). It's in each wall's own element data, not the element record.
A wall's data holds, usually twice:
Where two walls' centrelines end at one point, the wall that runs through names the other there and is not named back. The one named stops.
Two things change the picture from the last comment:
End to end on Snowdon: 9 walls better, none worse. Axis-parallel walls with both of Revit's ends go from 338 to 346. Core Interior, RE1 and the MIT house are unchanged.
The tag is
0x0b9f7don Snowdon, Core Interior and RE1, and0x039f3don the MIT house. It's in no schema class, no declared ElementId and not tied to a build, so the reader takes the one tag whose frames name only walls.What stays open here:
Report:
reports/element-framing/RE-70-wall-join-lists.md.feat(elements): run a wall through a butt join or stop it, from the w…
feat(viewer): name the walls a wall butt-joins, in the IFC and the el…
feat(elements): end each layer of a layered wall where its corner joi…
feat(elements): stop a wall layer by layer where it ends part way alo…
DrunkOnJava commentedon Sep 24, 2026
RE-73 (#394, merged): T joints. A wall whose centreline ends part way along another wall's now stops against it layer by layer, by Revit's layer priorities. Counted from the face it meets, each layer passes the other wall's layers of a larger function number and stops at the first of an equal or smaller one; a single-layer wall stops at the face.
IfcRectangleProfileDefextrusion, so it cannot show a layered end; a docs PR corrects the RE-71 and RE-73 wording to say so.Report:
reports/element-framing/RE-73-wall-tee-joins.md. Still open here: walls drawn whole (thicker or thinner than their type's layers), angled joins other than right angles, and the clean butts and stops.docs(re): RE1's export draws each wall as one rectangle, so its clean…
46 remaining items
DrunkOnJava commentedon Nov 15, 2026
Recount on
main: 60 of Snowdon's walls are drawn whole, down from 165. The RE-53 census (probe_358_walls_drawn_whole, a copy ofprobe_re53_wall_layersthat prints every wall with its body and thickness sources, onresearch/358-walls-drawn-wholeat977d7375, not to land) ran in Measure 43669117367 onafbaabb5. It finds 928 walls drawn in layers and 60 whose layers do not add up to the body. Beside them, Revit's own IFC4 body thickness across each wall's placement Y was read locally from Revit's export (IfcOpenShell 0.9.0.post1). On a wall whose body is not a slab of constant thickness, that extent is not a thickness.BodySourcepartition_wall_arcpartition_wall_arcWhat this says: