How to export orientation of the parts into a csv file in an assembly?

I recently asked a question about how to export positional co-ordinates of parts in an assembly and it was answered by @Artem Taturevych. This is a follow up question to that. Is there a way to export orientations of the parts in an assembly? See example picture below. I am looking for creation of an orientation angles table containing X,Y,Z rotations of each part (for example: 90 deg, 45 deg, 10 deg)

Thank you for your help.

SolidworksGeneral