I had a look at it and I’m at loss. But I can show what I found so far.
I thought a way to do it would be to make a bounding box oriented according to one of the sides of solid. But this didn’t seem to work. In a code block you can use the function:
But the bounding box refuses to have any other orientation other than the world axes, regardless of the coordinate system I put in. It seems to be any issue with Dynamo: http://dynamobim.com/forums/topic/bounding-box-by-geometry-coordinate-system-problem/
I couldn’t find if the issue had been closed or not.
Another method would be to reorient the geometry so that it becomes aligned with world coordinate system, create a bounding box and then reorient the bounding box back to the geometry. But I couldn’t find a way to translate or rotate bounding boxes, so this didn’t work neither. The transformation nodes as Translate and Rotate does not work on BoundingBoxes, only Geometry.
If you don’t actually need a BoundingBox, but a PolySurface with the same shape, then the method above would work.