Programming of animation

Please help with the programming of animation. How to programmatically manage the animation: changing rotational speed, speed of movement along the path, changing the time of animation. Have read the FAQ, but it really did not understand. I'm making an animation of contour milling:milling cutter rotates and moves along the way.

P.S. If that sorry for my english

SolidworksApi macros