EPDM Check Out and Open File Macro

I am looking for a macro that will check out and open a file in Solidworks EPDM. I also am looking for instructions as to what references to add. Any help would be appreciated.

Thanks,

SolidworksApi macros