How to extract geometry from an object

Hi,

I want to extract (x,y,z) coordinate from a 3d object in solidworks into a txt file.

For example, given the following dodecahedron, I would like to extract the X-Y-Z coordinates of the vertices into a txt file and recreate it in matlab using the vertices data. If i attach dodecahedrons to form a network, can i extract x-y-z coordinates from the assembly file?

Thank you.

SolidworksDrawings And Detailing