Mutil bodied part body extraction

hello guys,

I am trying to extract all solid bodies form a multi bodied part and extract them onto a drawing sheet.

The macro I have at the moment falls down if the body is not parallel to a true axis.

I need the bodie to be aligned with a true axis; ideally with the largest face on the top axis.

have attached the files required.

On the last drawing sheet tis the part/drawing with the issue.

SolidworksApi/macros