Selecting a Motor

Hi All,

I'm trying to select a motor from my motion study in a macro to change it's properties, but I'm having some trouble understanding the API help (no examples!). Can anyone point me in the right direction in either C# or VB?

SolidworksMotion Studies