Solidworks and Delphi

Good afternoon.
I want to write the small program for solidworks on delphi. For this purpose I use lazarus. I have read that it doesn't support COM the server. How to realize connection solidworks to the program by means of OLE? Whether is where the documentation or files of examples as it to realize?

SolidworksApi macros