Running swp macro from c# program

Hello all,

I'm wondering if anyone can post a bit of code how to run a SWP macro from a c# application.

I'm also wondering how you can change active configuration with c# code.

thanks a bunch!

SolidworksApi macros