Control solidworks Motors with C#

I have a model with several motors and I d like to control motors in solidworks with C# or other programming software and see  model react to that.

I searched a lot but can't find a good resource or ways to do that.

is there any way to connect solidworks to another programming software?

if there is what is the options?

Thanks

SolidworksApi macros