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?
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.