Saving objects to file ?

Hello there fellow SW coders,

I'm currently facing trouble saving my data.

I have a vertex selected. I want to save that object(s) in my own seperate file, which I can use later to load my selection from.

How can I "convert" and save a solidworks object into any kind of file?

I've heard of a thing called "serialisation", maybe it can be applied here?

I'm opened to any ideas and suggestions, thanks!

SolidworksApi macros