Get/set key points in Motion Study from API

Hi,

There is the Linear Motor in Motion Study. The Linear Motor turns on at 2 sec and turns off at 4 sec, then turns on at 7 sec and turns off at 11 sec, etc.

The question is:

  How can I get/set key points (which turns on and turns off the Linear Motor) from API.

I can start animation from VBA macros (IMotionStudy::Play), but I can't get/set key points.

SolidworksApi macros