Is there a way to assign an IfcOpeningElement into a component tagged as IfcWall?

It needs to be a separate nested component like a box or cilinder.You can check these:

I tried but although it’s a nested component it’s not exported as it should be.

It should be exported as this one