Hi,
As said Jacob, the input expected by Geometry.BoundingBox is a geometry, not an element. You should get the geometry first.
However, I remember that I had some problems with those nodes and Openings before. The best way to get the geometries you want is with Element.Geometry+ from Clockwork package. Here is a post of Alban explaining it :