Element.solids get different result for a family with two direction

please see below image. that is the family was opened in revit.

I create a simple dynamo file to generate the solids.

for the “vertical” cube, it looks the result is right.

but for the “horizontal” cube, the result is not I expected.

I attached my dyn and rfa file for your reference.curve.dyn (3.0 KB)
legalid.rfa (736 KB)

I guess maybe it caused by below two possible resaons
1: the limitation of the element.solids function
2: the definition of the family is not good.

however, I did not know how to troubleshooting it . your comments are appreciated. thank you.

-Ren

Unfortunately it’s a limitation of Dynamo/Revit.