Curtain wall `Element Bounding Geometry` outcome not as expected

Hi there,

While using Element Bounding Geometry for curtain wall;
As image shown below, 2 elements are identical but only base level different,
the Bounding Geometry result differently… Any ideas?

CW BOUNDING.gh (6.3 KB)
CW BOUNDING.rvt (5.1 MB)

I’m seeing this as well, thanks for reporting. Its adding in the levels below to the overall height for some reason.

Using a bounding box with a plane derived from the Element will give an accurate representation.

Hi @Japhy
The bounding box method may not work with a curved curtain wall condition, hopefully it will get resolve soon :grinning:

Just found its the same result for Basic Wall type.

Yes, this is a bug and in the queue to be fixed.

Recently, I encountered the same issue.

When I examined the source code on GitHub, I noticed that the top curve is translated using the following line:

side1TopCurve.Translate(0, 0, fromPoint.Z + height);

However, since fromPoint.Z already includes the base elevation and side1TopCurve starts at that same elevation, this line adds extra elevation to a curve that’s already correctly positioned at the base. As a result, the bounding Brep becomes too tall and extends beyond the actual top of the wall in Revit.

Suggestion to Improve the Code

Translate the duplicated top curve only by the wall height, not by fromPoint.Z + height:

side1TopCurve.Translate(0, 0, height);

This ensures that the top curve moves correctly from the base elevation (already applied earlier) to the intended top elevation of the wall.

GitHub Source